[2025-02-20 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:00:07 [end_date_ymd] => 2025-02-20 00:00:07 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:00:07' and `end` < '2025-02-20 00: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-02-20 00:00:19] Production.INFO: count ==698 [2025-02-20 00:00:20] Production.ERROR: pbx CDR StartTime 2025-02-19 21:00:07 - End Time 2025-02-20 00:00:07 [2025-02-20 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513920', 'tblTempUsageDetail_20' ) start [2025-02-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513920', 'tblTempUsageDetail_20' ) end [2025-02-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513920', 'tblTempVendorCDR_20' ) start [2025-02-20 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513920', 'tblTempVendorCDR_20' ) end [2025-02-20 00:00:20] Production.INFO: ProcessCDR(1,14513920,1,1,2) [2025-02-20 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513920', 'tblTempUsageDetail_20' ) start [2025-02-20 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513920', 'tblTempUsageDetail_20' ) end [2025-02-20 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:00:26] Production.INFO: ==11445== Releasing lock... [2025-02-20 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:00:26] Production.INFO: 35 MB #Memory Used# [2025-02-20 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:01:05 [end_date_ymd] => 2025-02-20 00:01:05 [RateCDR] => 1 ) [2025-02-20 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:01:05' and `end` < '2025-02-20 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:01:17] Production.INFO: count ==704 [2025-02-20 00:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:01:05 - End Time 2025-02-20 00:01:05 [2025-02-20 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513925', 'tblTempUsageDetail_20' ) start [2025-02-20 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513925', 'tblTempUsageDetail_20' ) end [2025-02-20 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513925', 'tblTempVendorCDR_20' ) start [2025-02-20 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513925', 'tblTempVendorCDR_20' ) end [2025-02-20 00:01:17] Production.INFO: ProcessCDR(1,14513925,1,1,2) [2025-02-20 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513925', 'tblTempUsageDetail_20' ) start [2025-02-20 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513925', 'tblTempUsageDetail_20' ) end [2025-02-20 00:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:01:21] Production.INFO: ==11533== Releasing lock... [2025-02-20 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-20 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:02:05 [end_date_ymd] => 2025-02-20 00:02:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:02:05' and `end` < '2025-02-20 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-02-20 00:02:17] Production.INFO: count ==274 [2025-02-20 00:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:02:05 - End Time 2025-02-20 00:02:05 [2025-02-20 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513930', 'tblTempUsageDetail_20' ) start [2025-02-20 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513930', 'tblTempUsageDetail_20' ) end [2025-02-20 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513930', 'tblTempVendorCDR_20' ) start [2025-02-20 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513930', 'tblTempVendorCDR_20' ) end [2025-02-20 00:02:17] Production.INFO: ProcessCDR(1,14513930,1,1,2) [2025-02-20 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513930', 'tblTempUsageDetail_20' ) start [2025-02-20 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513930', 'tblTempUsageDetail_20' ) end [2025-02-20 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:02:21] Production.INFO: ==11603== Releasing lock... [2025-02-20 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:03:05 [end_date_ymd] => 2025-02-20 00:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:03:05' and `end` < '2025-02-20 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-02-20 00:03:17] Production.INFO: count ==274 [2025-02-20 00:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:03:05 - End Time 2025-02-20 00:03:05 [2025-02-20 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513935', 'tblTempUsageDetail_20' ) start [2025-02-20 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513935', 'tblTempUsageDetail_20' ) end [2025-02-20 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513935', 'tblTempVendorCDR_20' ) start [2025-02-20 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513935', 'tblTempVendorCDR_20' ) end [2025-02-20 00:03:17] Production.INFO: ProcessCDR(1,14513935,1,1,2) [2025-02-20 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513935', 'tblTempUsageDetail_20' ) start [2025-02-20 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513935', 'tblTempUsageDetail_20' ) end [2025-02-20 00:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:03:20] Production.INFO: ==11677== Releasing lock... [2025-02-20 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:03:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:04:06 [end_date_ymd] => 2025-02-20 00:04:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:04:06' and `end` < '2025-02-20 00: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-02-20 00:04:18] Production.INFO: count ==274 [2025-02-20 00:04:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:04:06 - End Time 2025-02-20 00:04:06 [2025-02-20 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513940', 'tblTempUsageDetail_20' ) start [2025-02-20 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513940', 'tblTempUsageDetail_20' ) end [2025-02-20 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513940', 'tblTempVendorCDR_20' ) start [2025-02-20 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513940', 'tblTempVendorCDR_20' ) end [2025-02-20 00:04:18] Production.INFO: ProcessCDR(1,14513940,1,1,2) [2025-02-20 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513940', 'tblTempUsageDetail_20' ) start [2025-02-20 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513940', 'tblTempUsageDetail_20' ) end [2025-02-20 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:04:21] Production.INFO: ==11750== Releasing lock... [2025-02-20 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:05:05 [end_date_ymd] => 2025-02-20 00:05:05 [RateCDR] => 1 ) [2025-02-20 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:05:05' and `end` < '2025-02-20 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:05:17] Production.INFO: count ==274 [2025-02-20 00:05:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:05:05 - End Time 2025-02-20 00:05:05 [2025-02-20 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513945', 'tblTempUsageDetail_20' ) start [2025-02-20 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513945', 'tblTempUsageDetail_20' ) end [2025-02-20 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513945', 'tblTempVendorCDR_20' ) start [2025-02-20 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513945', 'tblTempVendorCDR_20' ) end [2025-02-20 00:05:17] Production.INFO: ProcessCDR(1,14513945,1,1,2) [2025-02-20 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513945', 'tblTempUsageDetail_20' ) start [2025-02-20 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513945', 'tblTempUsageDetail_20' ) end [2025-02-20 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:05:21] Production.INFO: ==11820== Releasing lock... [2025-02-20 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:06:05 [end_date_ymd] => 2025-02-20 00:06:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:06:05' and `end` < '2025-02-20 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-02-20 00:06:17] Production.INFO: count ==274 [2025-02-20 00:06:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:06:05 - End Time 2025-02-20 00:06:05 [2025-02-20 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513950', 'tblTempUsageDetail_20' ) start [2025-02-20 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513950', 'tblTempUsageDetail_20' ) end [2025-02-20 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513950', 'tblTempVendorCDR_20' ) start [2025-02-20 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513950', 'tblTempVendorCDR_20' ) end [2025-02-20 00:06:17] Production.INFO: ProcessCDR(1,14513950,1,1,2) [2025-02-20 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513950', 'tblTempUsageDetail_20' ) start [2025-02-20 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513950', 'tblTempUsageDetail_20' ) end [2025-02-20 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:06:20] Production.INFO: ==11894== Releasing lock... [2025-02-20 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:07:05 [end_date_ymd] => 2025-02-20 00:07:05 [RateCDR] => 1 ) [2025-02-20 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:07:05' and `end` < '2025-02-20 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:07:17] Production.INFO: count ==274 [2025-02-20 00:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:07:05 - End Time 2025-02-20 00:07:05 [2025-02-20 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513955', 'tblTempUsageDetail_20' ) start [2025-02-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513955', 'tblTempUsageDetail_20' ) end [2025-02-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513955', 'tblTempVendorCDR_20' ) start [2025-02-20 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513955', 'tblTempVendorCDR_20' ) end [2025-02-20 00:07:17] Production.INFO: ProcessCDR(1,14513955,1,1,2) [2025-02-20 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513955', 'tblTempUsageDetail_20' ) start [2025-02-20 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513955', 'tblTempUsageDetail_20' ) end [2025-02-20 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:07:20] Production.INFO: ==12002== Releasing lock... [2025-02-20 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:08:06 [end_date_ymd] => 2025-02-20 00:08:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:08:06' and `end` < '2025-02-20 00: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-02-20 00:08:17] Production.INFO: count ==274 [2025-02-20 00:08:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:08:06 - End Time 2025-02-20 00:08:06 [2025-02-20 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513960', 'tblTempUsageDetail_20' ) start [2025-02-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513960', 'tblTempUsageDetail_20' ) end [2025-02-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513960', 'tblTempVendorCDR_20' ) start [2025-02-20 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513960', 'tblTempVendorCDR_20' ) end [2025-02-20 00:08:17] Production.INFO: ProcessCDR(1,14513960,1,1,2) [2025-02-20 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513960', 'tblTempUsageDetail_20' ) start [2025-02-20 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513960', 'tblTempUsageDetail_20' ) end [2025-02-20 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:08:21] Production.INFO: ==12075== Releasing lock... [2025-02-20 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:09:05 [end_date_ymd] => 2025-02-20 00:09:05 [RateCDR] => 1 ) [2025-02-20 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:09:05' and `end` < '2025-02-20 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:09:17] Production.INFO: count ==274 [2025-02-20 00:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:09:05 - End Time 2025-02-20 00:09:05 [2025-02-20 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513965', 'tblTempUsageDetail_20' ) start [2025-02-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513965', 'tblTempUsageDetail_20' ) end [2025-02-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513965', 'tblTempVendorCDR_20' ) start [2025-02-20 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513965', 'tblTempVendorCDR_20' ) end [2025-02-20 00:09:17] Production.INFO: ProcessCDR(1,14513965,1,1,2) [2025-02-20 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513965', 'tblTempUsageDetail_20' ) start [2025-02-20 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513965', 'tblTempUsageDetail_20' ) end [2025-02-20 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:09:20] Production.INFO: ==12144== Releasing lock... [2025-02-20 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:10:06 [end_date_ymd] => 2025-02-20 00:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:10:06' and `end` < '2025-02-20 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-02-20 00:10:18] Production.INFO: count ==268 [2025-02-20 00:10:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:10:06 - End Time 2025-02-20 00:10:06 [2025-02-20 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513971', 'tblTempUsageDetail_20' ) start [2025-02-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513971', 'tblTempUsageDetail_20' ) end [2025-02-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513971', 'tblTempVendorCDR_20' ) start [2025-02-20 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513971', 'tblTempVendorCDR_20' ) end [2025-02-20 00:10:18] Production.INFO: ProcessCDR(1,14513971,1,1,2) [2025-02-20 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513971', 'tblTempUsageDetail_20' ) start [2025-02-20 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513971', 'tblTempUsageDetail_20' ) end [2025-02-20 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:10:22] Production.INFO: ==12216== Releasing lock... [2025-02-20 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:11:05 [end_date_ymd] => 2025-02-20 00:11:05 [RateCDR] => 1 ) [2025-02-20 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:11:05' and `end` < '2025-02-20 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:11:17] Production.INFO: count ==294 [2025-02-20 00:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:11:05 - End Time 2025-02-20 00:11:05 [2025-02-20 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513976', 'tblTempUsageDetail_20' ) start [2025-02-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513976', 'tblTempUsageDetail_20' ) end [2025-02-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513976', 'tblTempVendorCDR_20' ) start [2025-02-20 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513976', 'tblTempVendorCDR_20' ) end [2025-02-20 00:11:17] Production.INFO: ProcessCDR(1,14513976,1,1,2) [2025-02-20 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513976', 'tblTempUsageDetail_20' ) start [2025-02-20 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513976', 'tblTempUsageDetail_20' ) end [2025-02-20 00:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:11:20] Production.INFO: ==12288== Releasing lock... [2025-02-20 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:12:06 [end_date_ymd] => 2025-02-20 00:12:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:12:06' and `end` < '2025-02-20 00: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-02-20 00:12:18] Production.INFO: count ==295 [2025-02-20 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:12:06 - End Time 2025-02-20 00:12:06 [2025-02-20 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513981', 'tblTempUsageDetail_20' ) start [2025-02-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513981', 'tblTempUsageDetail_20' ) end [2025-02-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513981', 'tblTempVendorCDR_20' ) start [2025-02-20 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513981', 'tblTempVendorCDR_20' ) end [2025-02-20 00:12:18] Production.INFO: ProcessCDR(1,14513981,1,1,2) [2025-02-20 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513981', 'tblTempUsageDetail_20' ) start [2025-02-20 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513981', 'tblTempUsageDetail_20' ) end [2025-02-20 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:12:21] Production.INFO: ==12359== Releasing lock... [2025-02-20 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:13:04 [end_date_ymd] => 2025-02-20 00:13:04 [RateCDR] => 1 ) [2025-02-20 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:13:04' and `end` < '2025-02-20 00: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-02-20 00:13:16] Production.INFO: count ==292 [2025-02-20 00:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:13:04 - End Time 2025-02-20 00:13:04 [2025-02-20 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513986', 'tblTempUsageDetail_20' ) start [2025-02-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513986', 'tblTempUsageDetail_20' ) end [2025-02-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513986', 'tblTempVendorCDR_20' ) start [2025-02-20 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513986', 'tblTempVendorCDR_20' ) end [2025-02-20 00:13:17] Production.INFO: ProcessCDR(1,14513986,1,1,2) [2025-02-20 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513986', 'tblTempUsageDetail_20' ) start [2025-02-20 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513986', 'tblTempUsageDetail_20' ) end [2025-02-20 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:13:20] Production.INFO: ==12429== Releasing lock... [2025-02-20 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:13:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:14:05 [end_date_ymd] => 2025-02-20 00:14:05 [RateCDR] => 1 ) [2025-02-20 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:14:05' and `end` < '2025-02-20 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:14:17] Production.INFO: count ==290 [2025-02-20 00:14:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:14:05 - End Time 2025-02-20 00:14:05 [2025-02-20 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513991', 'tblTempUsageDetail_20' ) start [2025-02-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513991', 'tblTempUsageDetail_20' ) end [2025-02-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513991', 'tblTempVendorCDR_20' ) start [2025-02-20 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513991', 'tblTempVendorCDR_20' ) end [2025-02-20 00:14:17] Production.INFO: ProcessCDR(1,14513991,1,1,2) [2025-02-20 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513991', 'tblTempUsageDetail_20' ) start [2025-02-20 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513991', 'tblTempUsageDetail_20' ) end [2025-02-20 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:14:20] Production.INFO: ==12533== Releasing lock... [2025-02-20 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:14:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:15:06 [end_date_ymd] => 2025-02-20 00:15:06 [RateCDR] => 1 ) [2025-02-20 00:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:15:06' and `end` < '2025-02-20 00:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:15:17] Production.INFO: count ==289 [2025-02-20 00:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:15:06 - End Time 2025-02-20 00:15:06 [2025-02-20 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513996', 'tblTempUsageDetail_20' ) start [2025-02-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14513996', 'tblTempUsageDetail_20' ) end [2025-02-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513996', 'tblTempVendorCDR_20' ) start [2025-02-20 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14513996', 'tblTempVendorCDR_20' ) end [2025-02-20 00:15:17] Production.INFO: ProcessCDR(1,14513996,1,1,2) [2025-02-20 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14513996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14513996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14513996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14513996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513996', 'tblTempUsageDetail_20' ) start [2025-02-20 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14513996', 'tblTempUsageDetail_20' ) end [2025-02-20 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:15:20] Production.INFO: ==12642== Releasing lock... [2025-02-20 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:15:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:16:05 [end_date_ymd] => 2025-02-20 00:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:16:05' and `end` < '2025-02-20 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-02-20 00:16:17] Production.INFO: count ==287 [2025-02-20 00:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:16:05 - End Time 2025-02-20 00:16:05 [2025-02-20 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514001', 'tblTempUsageDetail_20' ) start [2025-02-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514001', 'tblTempUsageDetail_20' ) end [2025-02-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514001', 'tblTempVendorCDR_20' ) start [2025-02-20 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514001', 'tblTempVendorCDR_20' ) end [2025-02-20 00:16:17] Production.INFO: ProcessCDR(1,14514001,1,1,2) [2025-02-20 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514001', 'tblTempUsageDetail_20' ) start [2025-02-20 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514001', 'tblTempUsageDetail_20' ) end [2025-02-20 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:16:20] Production.INFO: ==12736== Releasing lock... [2025-02-20 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:16:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:17:05 [end_date_ymd] => 2025-02-20 00:17:05 [RateCDR] => 1 ) [2025-02-20 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:17:05' and `end` < '2025-02-20 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:17:17] Production.INFO: count ==286 [2025-02-20 00:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:17:05 - End Time 2025-02-20 00:17:05 [2025-02-20 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514006', 'tblTempUsageDetail_20' ) start [2025-02-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514006', 'tblTempUsageDetail_20' ) end [2025-02-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514006', 'tblTempVendorCDR_20' ) start [2025-02-20 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514006', 'tblTempVendorCDR_20' ) end [2025-02-20 00:17:17] Production.INFO: ProcessCDR(1,14514006,1,1,2) [2025-02-20 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514006', 'tblTempUsageDetail_20' ) start [2025-02-20 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514006', 'tblTempUsageDetail_20' ) end [2025-02-20 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:17:21] Production.INFO: ==12805== Releasing lock... [2025-02-20 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:18:05 [end_date_ymd] => 2025-02-20 00:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:18:05' and `end` < '2025-02-20 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-02-20 00:18:17] Production.INFO: count ==286 [2025-02-20 00:18:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:18:05 - End Time 2025-02-20 00:18:05 [2025-02-20 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514011', 'tblTempUsageDetail_20' ) start [2025-02-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514011', 'tblTempUsageDetail_20' ) end [2025-02-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514011', 'tblTempVendorCDR_20' ) start [2025-02-20 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514011', 'tblTempVendorCDR_20' ) end [2025-02-20 00:18:17] Production.INFO: ProcessCDR(1,14514011,1,1,2) [2025-02-20 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514011', 'tblTempUsageDetail_20' ) start [2025-02-20 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514011', 'tblTempUsageDetail_20' ) end [2025-02-20 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:18:20] Production.INFO: ==12885== Releasing lock... [2025-02-20 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:18:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:19:05 [end_date_ymd] => 2025-02-20 00:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:19:05' and `end` < '2025-02-20 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-02-20 00:19:17] Production.INFO: count ==286 [2025-02-20 00:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:19:05 - End Time 2025-02-20 00:19:05 [2025-02-20 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514016', 'tblTempUsageDetail_20' ) start [2025-02-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514016', 'tblTempUsageDetail_20' ) end [2025-02-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514016', 'tblTempVendorCDR_20' ) start [2025-02-20 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514016', 'tblTempVendorCDR_20' ) end [2025-02-20 00:19:17] Production.INFO: ProcessCDR(1,14514016,1,1,2) [2025-02-20 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514016', 'tblTempUsageDetail_20' ) start [2025-02-20 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514016', 'tblTempUsageDetail_20' ) end [2025-02-20 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:19:20] Production.INFO: ==12956== Releasing lock... [2025-02-20 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:19:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:20:06 [end_date_ymd] => 2025-02-20 00:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:20:06' and `end` < '2025-02-20 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-02-20 00:20:18] Production.INFO: count ==294 [2025-02-20 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:20:06 - End Time 2025-02-20 00:20:06 [2025-02-20 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514021', 'tblTempUsageDetail_20' ) start [2025-02-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514021', 'tblTempUsageDetail_20' ) end [2025-02-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514021', 'tblTempVendorCDR_20' ) start [2025-02-20 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514021', 'tblTempVendorCDR_20' ) end [2025-02-20 00:20:18] Production.INFO: ProcessCDR(1,14514021,1,1,2) [2025-02-20 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514021', 'tblTempUsageDetail_20' ) start [2025-02-20 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514021', 'tblTempUsageDetail_20' ) end [2025-02-20 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:20:21] Production.INFO: ==13046== Releasing lock... [2025-02-20 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:20:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:21:06 [end_date_ymd] => 2025-02-20 00:21:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:21:06' and `end` < '2025-02-20 00: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-02-20 00:21:17] Production.INFO: count ==314 [2025-02-20 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:21:06 - End Time 2025-02-20 00:21:06 [2025-02-20 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514027', 'tblTempUsageDetail_20' ) start [2025-02-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514027', 'tblTempUsageDetail_20' ) end [2025-02-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514027', 'tblTempVendorCDR_20' ) start [2025-02-20 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514027', 'tblTempVendorCDR_20' ) end [2025-02-20 00:21:18] Production.INFO: ProcessCDR(1,14514027,1,1,2) [2025-02-20 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514027', 'tblTempUsageDetail_20' ) start [2025-02-20 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514027', 'tblTempUsageDetail_20' ) end [2025-02-20 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:21:21] Production.INFO: ==13119== Releasing lock... [2025-02-20 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:22:06 [end_date_ymd] => 2025-02-20 00:22:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:22:06' and `end` < '2025-02-20 00: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-02-20 00:22:17] Production.INFO: count ==317 [2025-02-20 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:22:06 - End Time 2025-02-20 00:22:06 [2025-02-20 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514032', 'tblTempUsageDetail_20' ) start [2025-02-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514032', 'tblTempUsageDetail_20' ) end [2025-02-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514032', 'tblTempVendorCDR_20' ) start [2025-02-20 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514032', 'tblTempVendorCDR_20' ) end [2025-02-20 00:22:17] Production.INFO: ProcessCDR(1,14514032,1,1,2) [2025-02-20 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514032', 'tblTempUsageDetail_20' ) start [2025-02-20 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514032', 'tblTempUsageDetail_20' ) end [2025-02-20 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:22:21] Production.INFO: ==13194== Releasing lock... [2025-02-20 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:22:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:23:04 [end_date_ymd] => 2025-02-20 00:23:04 [RateCDR] => 1 ) [2025-02-20 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:23:04' and `end` < '2025-02-20 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:23:16] Production.INFO: count ==316 [2025-02-20 00:23:16] Production.ERROR: pbx CDR StartTime 2025-02-19 21:23:04 - End Time 2025-02-20 00:23:04 [2025-02-20 00:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514037', 'tblTempUsageDetail_20' ) start [2025-02-20 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514037', 'tblTempUsageDetail_20' ) end [2025-02-20 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514037', 'tblTempVendorCDR_20' ) start [2025-02-20 00:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514037', 'tblTempVendorCDR_20' ) end [2025-02-20 00:23:16] Production.INFO: ProcessCDR(1,14514037,1,1,2) [2025-02-20 00:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514037', 'tblTempUsageDetail_20' ) start [2025-02-20 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514037', 'tblTempUsageDetail_20' ) end [2025-02-20 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:23:20] Production.INFO: ==13305== Releasing lock... [2025-02-20 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:23:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:24:05 [end_date_ymd] => 2025-02-20 00:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:24:05' and `end` < '2025-02-20 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-02-20 00:24:17] Production.INFO: count ==314 [2025-02-20 00:24:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:24:05 - End Time 2025-02-20 00:24:05 [2025-02-20 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514042', 'tblTempUsageDetail_20' ) start [2025-02-20 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514042', 'tblTempUsageDetail_20' ) end [2025-02-20 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514042', 'tblTempVendorCDR_20' ) start [2025-02-20 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514042', 'tblTempVendorCDR_20' ) end [2025-02-20 00:24:17] Production.INFO: ProcessCDR(1,14514042,1,1,2) [2025-02-20 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514042', 'tblTempUsageDetail_20' ) start [2025-02-20 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514042', 'tblTempUsageDetail_20' ) end [2025-02-20 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:24:20] Production.INFO: ==13379== Releasing lock... [2025-02-20 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:24:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:25:04 [end_date_ymd] => 2025-02-20 00:25:04 [RateCDR] => 1 ) [2025-02-20 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:25:04' and `end` < '2025-02-20 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:25:16] Production.INFO: count ==311 [2025-02-20 00:25:16] Production.ERROR: pbx CDR StartTime 2025-02-19 21:25:04 - End Time 2025-02-20 00:25:04 [2025-02-20 00:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514047', 'tblTempUsageDetail_20' ) start [2025-02-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514047', 'tblTempUsageDetail_20' ) end [2025-02-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514047', 'tblTempVendorCDR_20' ) start [2025-02-20 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514047', 'tblTempVendorCDR_20' ) end [2025-02-20 00:25:16] Production.INFO: ProcessCDR(1,14514047,1,1,2) [2025-02-20 00:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514047', 'tblTempUsageDetail_20' ) start [2025-02-20 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514047', 'tblTempUsageDetail_20' ) end [2025-02-20 00:25:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:25:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:25:19] Production.INFO: ==13451== Releasing lock... [2025-02-20 00:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:25:19] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:26:05 [end_date_ymd] => 2025-02-20 00:26:05 [RateCDR] => 1 ) [2025-02-20 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:26:05' and `end` < '2025-02-20 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:26:17] Production.INFO: count ==305 [2025-02-20 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:26:05 - End Time 2025-02-20 00:26:05 [2025-02-20 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514052', 'tblTempUsageDetail_20' ) start [2025-02-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514052', 'tblTempUsageDetail_20' ) end [2025-02-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514052', 'tblTempVendorCDR_20' ) start [2025-02-20 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514052', 'tblTempVendorCDR_20' ) end [2025-02-20 00:26:17] Production.INFO: ProcessCDR(1,14514052,1,1,2) [2025-02-20 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514052', 'tblTempUsageDetail_20' ) start [2025-02-20 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514052', 'tblTempUsageDetail_20' ) end [2025-02-20 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:26:22] Production.INFO: ==13524== Releasing lock... [2025-02-20 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:26:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:27:05 [end_date_ymd] => 2025-02-20 00:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:27:05' and `end` < '2025-02-20 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-02-20 00:27:17] Production.INFO: count ==302 [2025-02-20 00:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:27:05 - End Time 2025-02-20 00:27:05 [2025-02-20 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514057', 'tblTempUsageDetail_20' ) start [2025-02-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514057', 'tblTempUsageDetail_20' ) end [2025-02-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514057', 'tblTempVendorCDR_20' ) start [2025-02-20 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514057', 'tblTempVendorCDR_20' ) end [2025-02-20 00:27:17] Production.INFO: ProcessCDR(1,14514057,1,1,2) [2025-02-20 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514057', 'tblTempUsageDetail_20' ) start [2025-02-20 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514057', 'tblTempUsageDetail_20' ) end [2025-02-20 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:27:22] Production.INFO: ==13594== Releasing lock... [2025-02-20 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:28:05 [end_date_ymd] => 2025-02-20 00:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:28:05' and `end` < '2025-02-20 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-02-20 00:28:17] Production.INFO: count ==301 [2025-02-20 00:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:28:05 - End Time 2025-02-20 00:28:05 [2025-02-20 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514062', 'tblTempUsageDetail_20' ) start [2025-02-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514062', 'tblTempUsageDetail_20' ) end [2025-02-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514062', 'tblTempVendorCDR_20' ) start [2025-02-20 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514062', 'tblTempVendorCDR_20' ) end [2025-02-20 00:28:17] Production.INFO: ProcessCDR(1,14514062,1,1,2) [2025-02-20 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514062', 'tblTempUsageDetail_20' ) start [2025-02-20 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514062', 'tblTempUsageDetail_20' ) end [2025-02-20 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:28:22] Production.INFO: ==13669== Releasing lock... [2025-02-20 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:28:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:29:06 [end_date_ymd] => 2025-02-20 00:29:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:29:06' and `end` < '2025-02-20 00: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-02-20 00:29:17] Production.INFO: count ==298 [2025-02-20 00:29:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:29:06 - End Time 2025-02-20 00:29:06 [2025-02-20 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514067', 'tblTempUsageDetail_20' ) start [2025-02-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514067', 'tblTempUsageDetail_20' ) end [2025-02-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514067', 'tblTempVendorCDR_20' ) start [2025-02-20 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514067', 'tblTempVendorCDR_20' ) end [2025-02-20 00:29:18] Production.INFO: ProcessCDR(1,14514067,1,1,2) [2025-02-20 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514067', 'tblTempUsageDetail_20' ) start [2025-02-20 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514067', 'tblTempUsageDetail_20' ) end [2025-02-20 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:29:21] Production.INFO: ==13743== Releasing lock... [2025-02-20 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:30:06 [end_date_ymd] => 2025-02-20 00:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:30:06' and `end` < '2025-02-20 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-02-20 00:30:18] Production.INFO: count ==306 [2025-02-20 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:30:06 - End Time 2025-02-20 00:30:06 [2025-02-20 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514073', 'tblTempUsageDetail_20' ) start [2025-02-20 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514073', 'tblTempUsageDetail_20' ) end [2025-02-20 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514073', 'tblTempVendorCDR_20' ) start [2025-02-20 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514073', 'tblTempVendorCDR_20' ) end [2025-02-20 00:30:18] Production.INFO: ProcessCDR(1,14514073,1,1,2) [2025-02-20 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514073', 'tblTempUsageDetail_20' ) start [2025-02-20 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514073', 'tblTempUsageDetail_20' ) end [2025-02-20 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:30:21] Production.INFO: ==13815== Releasing lock... [2025-02-20 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:31:06 [end_date_ymd] => 2025-02-20 00:31:06 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:31:06' and `end` < '2025-02-20 00: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-02-20 00:31:17] Production.INFO: count ==308 [2025-02-20 00:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:31:06 - End Time 2025-02-20 00:31:06 [2025-02-20 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514078', 'tblTempUsageDetail_20' ) start [2025-02-20 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514078', 'tblTempUsageDetail_20' ) end [2025-02-20 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514078', 'tblTempVendorCDR_20' ) start [2025-02-20 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514078', 'tblTempVendorCDR_20' ) end [2025-02-20 00:31:17] Production.INFO: ProcessCDR(1,14514078,1,1,2) [2025-02-20 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514078', 'tblTempUsageDetail_20' ) start [2025-02-20 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514078', 'tblTempUsageDetail_20' ) end [2025-02-20 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:31:21] Production.INFO: ==13888== Releasing lock... [2025-02-20 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:32:05 [end_date_ymd] => 2025-02-20 00:32:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:32:05' and `end` < '2025-02-20 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-02-20 00:32:17] Production.INFO: count ==307 [2025-02-20 00:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:32:05 - End Time 2025-02-20 00:32:05 [2025-02-20 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514083', 'tblTempUsageDetail_20' ) start [2025-02-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514083', 'tblTempUsageDetail_20' ) end [2025-02-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514083', 'tblTempVendorCDR_20' ) start [2025-02-20 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514083', 'tblTempVendorCDR_20' ) end [2025-02-20 00:32:17] Production.INFO: ProcessCDR(1,14514083,1,1,2) [2025-02-20 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514083', 'tblTempUsageDetail_20' ) start [2025-02-20 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514083', 'tblTempUsageDetail_20' ) end [2025-02-20 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:32:20] Production.INFO: ==13957== Releasing lock... [2025-02-20 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:32:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:33:05 [end_date_ymd] => 2025-02-20 00:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:33:05' and `end` < '2025-02-20 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-02-20 00:33:17] Production.INFO: count ==307 [2025-02-20 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:33:05 - End Time 2025-02-20 00:33:05 [2025-02-20 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514088', 'tblTempUsageDetail_20' ) start [2025-02-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514088', 'tblTempUsageDetail_20' ) end [2025-02-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514088', 'tblTempVendorCDR_20' ) start [2025-02-20 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514088', 'tblTempVendorCDR_20' ) end [2025-02-20 00:33:17] Production.INFO: ProcessCDR(1,14514088,1,1,2) [2025-02-20 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514088', 'tblTempUsageDetail_20' ) start [2025-02-20 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514088', 'tblTempUsageDetail_20' ) end [2025-02-20 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:33:20] Production.INFO: ==14028== Releasing lock... [2025-02-20 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:34:05 [end_date_ymd] => 2025-02-20 00:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:34:05' and `end` < '2025-02-20 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-02-20 00:34:17] Production.INFO: count ==307 [2025-02-20 00:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:34:05 - End Time 2025-02-20 00:34:05 [2025-02-20 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514093', 'tblTempUsageDetail_20' ) start [2025-02-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514093', 'tblTempUsageDetail_20' ) end [2025-02-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514093', 'tblTempVendorCDR_20' ) start [2025-02-20 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514093', 'tblTempVendorCDR_20' ) end [2025-02-20 00:34:17] Production.INFO: ProcessCDR(1,14514093,1,1,2) [2025-02-20 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514093', 'tblTempUsageDetail_20' ) start [2025-02-20 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514093', 'tblTempUsageDetail_20' ) end [2025-02-20 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:34:20] Production.INFO: ==14100== Releasing lock... [2025-02-20 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:34:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:35:05 [end_date_ymd] => 2025-02-20 00:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:35:05' and `end` < '2025-02-20 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-02-20 00:35:17] Production.INFO: count ==306 [2025-02-20 00:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:35:05 - End Time 2025-02-20 00:35:05 [2025-02-20 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514098', 'tblTempUsageDetail_20' ) start [2025-02-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514098', 'tblTempUsageDetail_20' ) end [2025-02-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514098', 'tblTempVendorCDR_20' ) start [2025-02-20 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514098', 'tblTempVendorCDR_20' ) end [2025-02-20 00:35:17] Production.INFO: ProcessCDR(1,14514098,1,1,2) [2025-02-20 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514098', 'tblTempUsageDetail_20' ) start [2025-02-20 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514098', 'tblTempUsageDetail_20' ) end [2025-02-20 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:35:20] Production.INFO: ==14173== Releasing lock... [2025-02-20 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:35:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:36:05 [end_date_ymd] => 2025-02-20 00:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:36:05' and `end` < '2025-02-20 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-02-20 00:36:17] Production.INFO: count ==306 [2025-02-20 00:36:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:36:05 - End Time 2025-02-20 00:36:05 [2025-02-20 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514103', 'tblTempUsageDetail_20' ) start [2025-02-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514103', 'tblTempUsageDetail_20' ) end [2025-02-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514103', 'tblTempVendorCDR_20' ) start [2025-02-20 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514103', 'tblTempVendorCDR_20' ) end [2025-02-20 00:36:17] Production.INFO: ProcessCDR(1,14514103,1,1,2) [2025-02-20 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514103', 'tblTempUsageDetail_20' ) start [2025-02-20 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514103', 'tblTempUsageDetail_20' ) end [2025-02-20 00:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:36:20] Production.INFO: ==14245== Releasing lock... [2025-02-20 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:36:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:37:05 [end_date_ymd] => 2025-02-20 00:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:37:05' and `end` < '2025-02-20 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-02-20 00:37:17] Production.INFO: count ==305 [2025-02-20 00:37:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:37:05 - End Time 2025-02-20 00:37:05 [2025-02-20 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514108', 'tblTempUsageDetail_20' ) start [2025-02-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514108', 'tblTempUsageDetail_20' ) end [2025-02-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514108', 'tblTempVendorCDR_20' ) start [2025-02-20 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514108', 'tblTempVendorCDR_20' ) end [2025-02-20 00:37:17] Production.INFO: ProcessCDR(1,14514108,1,1,2) [2025-02-20 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514108', 'tblTempUsageDetail_20' ) start [2025-02-20 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514108', 'tblTempUsageDetail_20' ) end [2025-02-20 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:37:20] Production.INFO: ==14321== Releasing lock... [2025-02-20 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:37:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:38:05 [end_date_ymd] => 2025-02-20 00:38:05 [RateCDR] => 1 ) [2025-02-20 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:38:05' and `end` < '2025-02-20 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:38:16] Production.INFO: count ==303 [2025-02-20 00:38:16] Production.ERROR: pbx CDR StartTime 2025-02-19 21:38:05 - End Time 2025-02-20 00:38:05 [2025-02-20 00:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514113', 'tblTempUsageDetail_20' ) start [2025-02-20 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514113', 'tblTempUsageDetail_20' ) end [2025-02-20 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514113', 'tblTempVendorCDR_20' ) start [2025-02-20 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514113', 'tblTempVendorCDR_20' ) end [2025-02-20 00:38:16] Production.INFO: ProcessCDR(1,14514113,1,1,2) [2025-02-20 00:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514113', 'tblTempUsageDetail_20' ) start [2025-02-20 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514113', 'tblTempUsageDetail_20' ) end [2025-02-20 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:38:20] Production.INFO: ==14431== Releasing lock... [2025-02-20 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:38:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:39:05 [end_date_ymd] => 2025-02-20 00:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:39:05' and `end` < '2025-02-20 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-02-20 00:39:17] Production.INFO: count ==303 [2025-02-20 00:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:39:05 - End Time 2025-02-20 00:39:05 [2025-02-20 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514118', 'tblTempUsageDetail_20' ) start [2025-02-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514118', 'tblTempUsageDetail_20' ) end [2025-02-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514118', 'tblTempVendorCDR_20' ) start [2025-02-20 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514118', 'tblTempVendorCDR_20' ) end [2025-02-20 00:39:17] Production.INFO: ProcessCDR(1,14514118,1,1,2) [2025-02-20 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514118', 'tblTempUsageDetail_20' ) start [2025-02-20 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514118', 'tblTempUsageDetail_20' ) end [2025-02-20 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:39:20] Production.INFO: ==14505== Releasing lock... [2025-02-20 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:39:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:40:06 [end_date_ymd] => 2025-02-20 00:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:40:06' and `end` < '2025-02-20 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-02-20 00:40:17] Production.INFO: count ==308 [2025-02-20 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:40:06 - End Time 2025-02-20 00:40:06 [2025-02-20 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514124', 'tblTempUsageDetail_20' ) start [2025-02-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514124', 'tblTempUsageDetail_20' ) end [2025-02-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514124', 'tblTempVendorCDR_20' ) start [2025-02-20 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514124', 'tblTempVendorCDR_20' ) end [2025-02-20 00:40:18] Production.INFO: ProcessCDR(1,14514124,1,1,2) [2025-02-20 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514124', 'tblTempUsageDetail_20' ) start [2025-02-20 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514124', 'tblTempUsageDetail_20' ) end [2025-02-20 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:40:21] Production.INFO: ==14585== Releasing lock... [2025-02-20 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:41:05 [end_date_ymd] => 2025-02-20 00:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:41:05' and `end` < '2025-02-20 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-02-20 00:41:17] Production.INFO: count ==312 [2025-02-20 00:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:41:05 - End Time 2025-02-20 00:41:05 [2025-02-20 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514129', 'tblTempUsageDetail_20' ) start [2025-02-20 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514129', 'tblTempUsageDetail_20' ) end [2025-02-20 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514129', 'tblTempVendorCDR_20' ) start [2025-02-20 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514129', 'tblTempVendorCDR_20' ) end [2025-02-20 00:41:17] Production.INFO: ProcessCDR(1,14514129,1,1,2) [2025-02-20 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514129', 'tblTempUsageDetail_20' ) start [2025-02-20 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514129', 'tblTempUsageDetail_20' ) end [2025-02-20 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:41:20] Production.INFO: ==14683== Releasing lock... [2025-02-20 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:41:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:42:05 [end_date_ymd] => 2025-02-20 00:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:42:05' and `end` < '2025-02-20 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-02-20 00:42:17] Production.INFO: count ==312 [2025-02-20 00:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:42:05 - End Time 2025-02-20 00:42:05 [2025-02-20 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514134', 'tblTempUsageDetail_20' ) start [2025-02-20 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514134', 'tblTempUsageDetail_20' ) end [2025-02-20 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514134', 'tblTempVendorCDR_20' ) start [2025-02-20 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514134', 'tblTempVendorCDR_20' ) end [2025-02-20 00:42:17] Production.INFO: ProcessCDR(1,14514134,1,1,2) [2025-02-20 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514134', 'tblTempUsageDetail_20' ) start [2025-02-20 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514134', 'tblTempUsageDetail_20' ) end [2025-02-20 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:42:20] Production.INFO: ==14772== Releasing lock... [2025-02-20 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:42:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:43:05 [end_date_ymd] => 2025-02-20 00:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:43:05' and `end` < '2025-02-20 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-02-20 00:43:17] Production.INFO: count ==312 [2025-02-20 00:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:43:05 - End Time 2025-02-20 00:43:05 [2025-02-20 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514139', 'tblTempUsageDetail_20' ) start [2025-02-20 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514139', 'tblTempUsageDetail_20' ) end [2025-02-20 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514139', 'tblTempVendorCDR_20' ) start [2025-02-20 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514139', 'tblTempVendorCDR_20' ) end [2025-02-20 00:43:17] Production.INFO: ProcessCDR(1,14514139,1,1,2) [2025-02-20 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514139', 'tblTempUsageDetail_20' ) start [2025-02-20 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514139', 'tblTempUsageDetail_20' ) end [2025-02-20 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:43:20] Production.INFO: ==14856== Releasing lock... [2025-02-20 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:43:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:44:05 [end_date_ymd] => 2025-02-20 00:44:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:44:05' and `end` < '2025-02-20 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-02-20 00:44:17] Production.INFO: count ==308 [2025-02-20 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:44:05 - End Time 2025-02-20 00:44:05 [2025-02-20 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514144', 'tblTempUsageDetail_20' ) start [2025-02-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514144', 'tblTempUsageDetail_20' ) end [2025-02-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514144', 'tblTempVendorCDR_20' ) start [2025-02-20 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514144', 'tblTempVendorCDR_20' ) end [2025-02-20 00:44:17] Production.INFO: ProcessCDR(1,14514144,1,1,2) [2025-02-20 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514144', 'tblTempUsageDetail_20' ) start [2025-02-20 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514144', 'tblTempUsageDetail_20' ) end [2025-02-20 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:44:20] Production.INFO: ==14942== Releasing lock... [2025-02-20 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:44:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:45:05 [end_date_ymd] => 2025-02-20 00:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:45:05' and `end` < '2025-02-20 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:45:17] Production.INFO: count ==308 [2025-02-20 00:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:45:05 - End Time 2025-02-20 00:45:05 [2025-02-20 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514149', 'tblTempUsageDetail_20' ) start [2025-02-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514149', 'tblTempUsageDetail_20' ) end [2025-02-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514149', 'tblTempVendorCDR_20' ) start [2025-02-20 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514149', 'tblTempVendorCDR_20' ) end [2025-02-20 00:45:17] Production.INFO: ProcessCDR(1,14514149,1,1,2) [2025-02-20 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514149', 'tblTempUsageDetail_20' ) start [2025-02-20 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514149', 'tblTempUsageDetail_20' ) end [2025-02-20 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:45:20] Production.INFO: ==15039== Releasing lock... [2025-02-20 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:45:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:46:05 [end_date_ymd] => 2025-02-20 00:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:46:05' and `end` < '2025-02-20 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-02-20 00:46:17] Production.INFO: count ==304 [2025-02-20 00:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:46:05 - End Time 2025-02-20 00:46:05 [2025-02-20 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514154', 'tblTempUsageDetail_20' ) start [2025-02-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514154', 'tblTempUsageDetail_20' ) end [2025-02-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514154', 'tblTempVendorCDR_20' ) start [2025-02-20 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514154', 'tblTempVendorCDR_20' ) end [2025-02-20 00:46:17] Production.INFO: ProcessCDR(1,14514154,1,1,2) [2025-02-20 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514154', 'tblTempUsageDetail_20' ) start [2025-02-20 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514154', 'tblTempUsageDetail_20' ) end [2025-02-20 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:46:20] Production.INFO: ==15128== Releasing lock... [2025-02-20 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:47:05 [end_date_ymd] => 2025-02-20 00:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:47:05' and `end` < '2025-02-20 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-02-20 00:47:17] Production.INFO: count ==304 [2025-02-20 00:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:47:05 - End Time 2025-02-20 00:47:05 [2025-02-20 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514159', 'tblTempUsageDetail_20' ) start [2025-02-20 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514159', 'tblTempUsageDetail_20' ) end [2025-02-20 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514159', 'tblTempVendorCDR_20' ) start [2025-02-20 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514159', 'tblTempVendorCDR_20' ) end [2025-02-20 00:47:17] Production.INFO: ProcessCDR(1,14514159,1,1,2) [2025-02-20 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514159', 'tblTempUsageDetail_20' ) start [2025-02-20 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514159', 'tblTempUsageDetail_20' ) end [2025-02-20 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:47:20] Production.INFO: ==15213== Releasing lock... [2025-02-20 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:48:05 [end_date_ymd] => 2025-02-20 00:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:48:05' and `end` < '2025-02-20 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-02-20 00:48:17] Production.INFO: count ==304 [2025-02-20 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:48:05 - End Time 2025-02-20 00:48:05 [2025-02-20 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514164', 'tblTempUsageDetail_20' ) start [2025-02-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514164', 'tblTempUsageDetail_20' ) end [2025-02-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514164', 'tblTempVendorCDR_20' ) start [2025-02-20 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514164', 'tblTempVendorCDR_20' ) end [2025-02-20 00:48:17] Production.INFO: ProcessCDR(1,14514164,1,1,2) [2025-02-20 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514164', 'tblTempUsageDetail_20' ) start [2025-02-20 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514164', 'tblTempUsageDetail_20' ) end [2025-02-20 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:48:21] Production.INFO: ==15299== Releasing lock... [2025-02-20 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:49:05 [end_date_ymd] => 2025-02-20 00:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:49:05' and `end` < '2025-02-20 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-02-20 00:49:17] Production.INFO: count ==304 [2025-02-20 00:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:49:05 - End Time 2025-02-20 00:49:05 [2025-02-20 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514169', 'tblTempUsageDetail_20' ) start [2025-02-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514169', 'tblTempUsageDetail_20' ) end [2025-02-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514169', 'tblTempVendorCDR_20' ) start [2025-02-20 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514169', 'tblTempVendorCDR_20' ) end [2025-02-20 00:49:17] Production.INFO: ProcessCDR(1,14514169,1,1,2) [2025-02-20 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514169', 'tblTempUsageDetail_20' ) start [2025-02-20 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514169', 'tblTempUsageDetail_20' ) end [2025-02-20 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:49:20] Production.INFO: ==15387== Releasing lock... [2025-02-20 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:49:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:50:06 [end_date_ymd] => 2025-02-20 00:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:50:06' and `end` < '2025-02-20 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-02-20 00:50:18] Production.INFO: count ==319 [2025-02-20 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-19 21:50:06 - End Time 2025-02-20 00:50:06 [2025-02-20 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514175', 'tblTempUsageDetail_20' ) start [2025-02-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514175', 'tblTempUsageDetail_20' ) end [2025-02-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514175', 'tblTempVendorCDR_20' ) start [2025-02-20 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514175', 'tblTempVendorCDR_20' ) end [2025-02-20 00:50:18] Production.INFO: ProcessCDR(1,14514175,1,1,2) [2025-02-20 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514175', 'tblTempUsageDetail_20' ) start [2025-02-20 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514175', 'tblTempUsageDetail_20' ) end [2025-02-20 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:50:21] Production.INFO: ==15476== Releasing lock... [2025-02-20 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:50:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:51:05 [end_date_ymd] => 2025-02-20 00:51:05 [RateCDR] => 1 ) [2025-02-20 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:51:05' and `end` < '2025-02-20 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:51:17] Production.INFO: count ==331 [2025-02-20 00:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:51:05 - End Time 2025-02-20 00:51:05 [2025-02-20 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514180', 'tblTempUsageDetail_20' ) start [2025-02-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514180', 'tblTempUsageDetail_20' ) end [2025-02-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514180', 'tblTempVendorCDR_20' ) start [2025-02-20 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514180', 'tblTempVendorCDR_20' ) end [2025-02-20 00:51:17] Production.INFO: ProcessCDR(1,14514180,1,1,2) [2025-02-20 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514180', 'tblTempUsageDetail_20' ) start [2025-02-20 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514180', 'tblTempUsageDetail_20' ) end [2025-02-20 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:51:20] Production.INFO: ==15566== Releasing lock... [2025-02-20 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:51:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:52:05 [end_date_ymd] => 2025-02-20 00:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:52:05' and `end` < '2025-02-20 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-02-20 00:52:17] Production.INFO: count ==328 [2025-02-20 00:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:52:05 - End Time 2025-02-20 00:52:05 [2025-02-20 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514185', 'tblTempUsageDetail_20' ) start [2025-02-20 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514185', 'tblTempUsageDetail_20' ) end [2025-02-20 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514185', 'tblTempVendorCDR_20' ) start [2025-02-20 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514185', 'tblTempVendorCDR_20' ) end [2025-02-20 00:52:17] Production.INFO: ProcessCDR(1,14514185,1,1,2) [2025-02-20 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514185', 'tblTempUsageDetail_20' ) start [2025-02-20 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514185', 'tblTempUsageDetail_20' ) end [2025-02-20 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:52:20] Production.INFO: ==15654== Releasing lock... [2025-02-20 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:52:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:53:05 [end_date_ymd] => 2025-02-20 00:53:05 [RateCDR] => 1 ) [2025-02-20 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:53:05' and `end` < '2025-02-20 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:53:17] Production.INFO: count ==328 [2025-02-20 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:53:05 - End Time 2025-02-20 00:53:05 [2025-02-20 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514190', 'tblTempUsageDetail_20' ) start [2025-02-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514190', 'tblTempUsageDetail_20' ) end [2025-02-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514190', 'tblTempVendorCDR_20' ) start [2025-02-20 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514190', 'tblTempVendorCDR_20' ) end [2025-02-20 00:53:17] Production.INFO: ProcessCDR(1,14514190,1,1,2) [2025-02-20 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514190', 'tblTempUsageDetail_20' ) start [2025-02-20 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514190', 'tblTempUsageDetail_20' ) end [2025-02-20 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:53:21] Production.INFO: ==15739== Releasing lock... [2025-02-20 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:54:05 [end_date_ymd] => 2025-02-20 00:54:05 [RateCDR] => 1 ) [2025-02-20 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 21:54:05' and `end` < '2025-02-20 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 00:54:17] Production.INFO: count ==334 [2025-02-20 00:54:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:54:05 - End Time 2025-02-20 00:54:05 [2025-02-20 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514195', 'tblTempUsageDetail_20' ) start [2025-02-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514195', 'tblTempUsageDetail_20' ) end [2025-02-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514195', 'tblTempVendorCDR_20' ) start [2025-02-20 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514195', 'tblTempVendorCDR_20' ) end [2025-02-20 00:54:17] Production.INFO: ProcessCDR(1,14514195,1,1,2) [2025-02-20 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514195', 'tblTempUsageDetail_20' ) start [2025-02-20 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514195', 'tblTempUsageDetail_20' ) end [2025-02-20 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:54:21] Production.INFO: ==15866== Releasing lock... [2025-02-20 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:55:04 [end_date_ymd] => 2025-02-20 00:55:04 [RateCDR] => 1 ) [2025-02-20 00: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-02-19 21:55:04' and `end` < '2025-02-20 00: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-02-20 00:55:16] Production.INFO: count ==335 [2025-02-20 00:55:16] Production.ERROR: pbx CDR StartTime 2025-02-19 21:55:04 - End Time 2025-02-20 00:55:04 [2025-02-20 00:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514200', 'tblTempUsageDetail_20' ) start [2025-02-20 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514200', 'tblTempUsageDetail_20' ) end [2025-02-20 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514200', 'tblTempVendorCDR_20' ) start [2025-02-20 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514200', 'tblTempVendorCDR_20' ) end [2025-02-20 00:55:16] Production.INFO: ProcessCDR(1,14514200,1,1,2) [2025-02-20 00:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514200', 'tblTempUsageDetail_20' ) start [2025-02-20 00:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514200', 'tblTempUsageDetail_20' ) end [2025-02-20 00:55:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:55:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:55:19] Production.INFO: ==15955== Releasing lock... [2025-02-20 00:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:55:19] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:56:05 [end_date_ymd] => 2025-02-20 00:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:56:05' and `end` < '2025-02-20 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-02-20 00:56:16] Production.INFO: count ==332 [2025-02-20 00:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:56:05 - End Time 2025-02-20 00:56:05 [2025-02-20 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514205', 'tblTempUsageDetail_20' ) start [2025-02-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514205', 'tblTempUsageDetail_20' ) end [2025-02-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514205', 'tblTempVendorCDR_20' ) start [2025-02-20 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514205', 'tblTempVendorCDR_20' ) end [2025-02-20 00:56:17] Production.INFO: ProcessCDR(1,14514205,1,1,2) [2025-02-20 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514205', 'tblTempUsageDetail_20' ) start [2025-02-20 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514205', 'tblTempUsageDetail_20' ) end [2025-02-20 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:56:20] Production.INFO: ==16038== Releasing lock... [2025-02-20 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:56:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:57:05 [end_date_ymd] => 2025-02-20 00:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:57:05' and `end` < '2025-02-20 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-02-20 00:57:16] Production.INFO: count ==330 [2025-02-20 00:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:57:05 - End Time 2025-02-20 00:57:05 [2025-02-20 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514210', 'tblTempUsageDetail_20' ) start [2025-02-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514210', 'tblTempUsageDetail_20' ) end [2025-02-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514210', 'tblTempVendorCDR_20' ) start [2025-02-20 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514210', 'tblTempVendorCDR_20' ) end [2025-02-20 00:57:17] Production.INFO: ProcessCDR(1,14514210,1,1,2) [2025-02-20 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514210', 'tblTempUsageDetail_20' ) start [2025-02-20 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514210', 'tblTempUsageDetail_20' ) end [2025-02-20 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:57:20] Production.INFO: ==16123== Releasing lock... [2025-02-20 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:57:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:58:05 [end_date_ymd] => 2025-02-20 00:58:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:58:05' and `end` < '2025-02-20 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-02-20 00:58:17] Production.INFO: count ==327 [2025-02-20 00:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:58:05 - End Time 2025-02-20 00:58:05 [2025-02-20 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514215', 'tblTempUsageDetail_20' ) start [2025-02-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514215', 'tblTempUsageDetail_20' ) end [2025-02-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514215', 'tblTempVendorCDR_20' ) start [2025-02-20 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514215', 'tblTempVendorCDR_20' ) end [2025-02-20 00:58:17] Production.INFO: ProcessCDR(1,14514215,1,1,2) [2025-02-20 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514215', 'tblTempUsageDetail_20' ) start [2025-02-20 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514215', 'tblTempUsageDetail_20' ) end [2025-02-20 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:58:20] Production.INFO: ==16213== Releasing lock... [2025-02-20 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:58:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 21:59:05 [end_date_ymd] => 2025-02-20 00:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 21:59:05' and `end` < '2025-02-20 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-02-20 00:59:17] Production.INFO: count ==326 [2025-02-20 00:59:17] Production.ERROR: pbx CDR StartTime 2025-02-19 21:59:05 - End Time 2025-02-20 00:59:05 [2025-02-20 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514220', 'tblTempUsageDetail_20' ) start [2025-02-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514220', 'tblTempUsageDetail_20' ) end [2025-02-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514220', 'tblTempVendorCDR_20' ) start [2025-02-20 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514220', 'tblTempVendorCDR_20' ) end [2025-02-20 00:59:17] Production.INFO: ProcessCDR(1,14514220,1,1,2) [2025-02-20 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514220', 'tblTempUsageDetail_20' ) start [2025-02-20 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514220', 'tblTempUsageDetail_20' ) end [2025-02-20 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 00:59:20] Production.INFO: ==16301== Releasing lock... [2025-02-20 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 00:59:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:00:06 [end_date_ymd] => 2025-02-20 01:00:06 [RateCDR] => 1 ) [2025-02-20 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:00:06' and `end` < '2025-02-20 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:00:18] Production.INFO: count ==327 [2025-02-20 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:00:06 - End Time 2025-02-20 01:00:06 [2025-02-20 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514225', 'tblTempUsageDetail_20' ) start [2025-02-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514225', 'tblTempUsageDetail_20' ) end [2025-02-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514225', 'tblTempVendorCDR_20' ) start [2025-02-20 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514225', 'tblTempVendorCDR_20' ) end [2025-02-20 01:00:18] Production.INFO: ProcessCDR(1,14514225,1,1,2) [2025-02-20 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514225', 'tblTempUsageDetail_20' ) start [2025-02-20 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514225', 'tblTempUsageDetail_20' ) end [2025-02-20 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:00:22] Production.INFO: ==16389== Releasing lock... [2025-02-20 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:01:05 [end_date_ymd] => 2025-02-20 01:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:01:05' and `end` < '2025-02-20 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-02-20 01:01:17] Production.INFO: count ==320 [2025-02-20 01:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:01:05 - End Time 2025-02-20 01:01:05 [2025-02-20 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514231', 'tblTempUsageDetail_20' ) start [2025-02-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514231', 'tblTempUsageDetail_20' ) end [2025-02-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514231', 'tblTempVendorCDR_20' ) start [2025-02-20 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514231', 'tblTempVendorCDR_20' ) end [2025-02-20 01:01:17] Production.INFO: ProcessCDR(1,14514231,1,1,2) [2025-02-20 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514231', 'tblTempUsageDetail_20' ) start [2025-02-20 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514231', 'tblTempUsageDetail_20' ) end [2025-02-20 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:01:20] Production.INFO: ==16495== Releasing lock... [2025-02-20 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:01:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:02:05 [end_date_ymd] => 2025-02-20 01:02:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:02:05' and `end` < '2025-02-20 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-02-20 01:02:17] Production.INFO: count ==312 [2025-02-20 01:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:02:05 - End Time 2025-02-20 01:02:05 [2025-02-20 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514236', 'tblTempUsageDetail_20' ) start [2025-02-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514236', 'tblTempUsageDetail_20' ) end [2025-02-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514236', 'tblTempVendorCDR_20' ) start [2025-02-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514236', 'tblTempVendorCDR_20' ) end [2025-02-20 01:02:17] Production.INFO: ProcessCDR(1,14514236,1,1,2) [2025-02-20 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514236', 'tblTempUsageDetail_20' ) start [2025-02-20 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514236', 'tblTempUsageDetail_20' ) end [2025-02-20 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:02:21] Production.INFO: ==16586== Releasing lock... [2025-02-20 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:03:05 [end_date_ymd] => 2025-02-20 01:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:03:05' and `end` < '2025-02-20 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-02-20 01:03:16] Production.INFO: count ==312 [2025-02-20 01:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:03:05 - End Time 2025-02-20 01:03:05 [2025-02-20 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514241', 'tblTempUsageDetail_20' ) start [2025-02-20 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514241', 'tblTempUsageDetail_20' ) end [2025-02-20 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514241', 'tblTempVendorCDR_20' ) start [2025-02-20 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514241', 'tblTempVendorCDR_20' ) end [2025-02-20 01:03:17] Production.INFO: ProcessCDR(1,14514241,1,1,2) [2025-02-20 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514241', 'tblTempUsageDetail_20' ) start [2025-02-20 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514241', 'tblTempUsageDetail_20' ) end [2025-02-20 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:03:20] Production.INFO: ==16668== Releasing lock... [2025-02-20 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:03:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:04:05 [end_date_ymd] => 2025-02-20 01:04:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:04:05' and `end` < '2025-02-20 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-02-20 01:04:17] Production.INFO: count ==308 [2025-02-20 01:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:04:05 - End Time 2025-02-20 01:04:05 [2025-02-20 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514246', 'tblTempUsageDetail_20' ) start [2025-02-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514246', 'tblTempUsageDetail_20' ) end [2025-02-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514246', 'tblTempVendorCDR_20' ) start [2025-02-20 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514246', 'tblTempVendorCDR_20' ) end [2025-02-20 01:04:17] Production.INFO: ProcessCDR(1,14514246,1,1,2) [2025-02-20 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514246', 'tblTempUsageDetail_20' ) start [2025-02-20 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514246', 'tblTempUsageDetail_20' ) end [2025-02-20 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:04:20] Production.INFO: ==16756== Releasing lock... [2025-02-20 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:04:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:05:04 [end_date_ymd] => 2025-02-20 01:05:04 [RateCDR] => 1 ) [2025-02-20 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:05:04' and `end` < '2025-02-20 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:05:16] Production.INFO: count ==306 [2025-02-20 01:05:16] Production.ERROR: pbx CDR StartTime 2025-02-19 22:05:04 - End Time 2025-02-20 01:05:04 [2025-02-20 01:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514251', 'tblTempUsageDetail_20' ) start [2025-02-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514251', 'tblTempUsageDetail_20' ) end [2025-02-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514251', 'tblTempVendorCDR_20' ) start [2025-02-20 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514251', 'tblTempVendorCDR_20' ) end [2025-02-20 01:05:16] Production.INFO: ProcessCDR(1,14514251,1,1,2) [2025-02-20 01:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514251', 'tblTempUsageDetail_20' ) start [2025-02-20 01:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514251', 'tblTempUsageDetail_20' ) end [2025-02-20 01:05:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:05:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:05:19] Production.INFO: ==16840== Releasing lock... [2025-02-20 01:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:05:19] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:06:05 [end_date_ymd] => 2025-02-20 01:06:05 [RateCDR] => 1 ) [2025-02-20 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:06:05' and `end` < '2025-02-20 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:06:16] Production.INFO: count ==296 [2025-02-20 01:06:16] Production.ERROR: pbx CDR StartTime 2025-02-19 22:06:05 - End Time 2025-02-20 01:06:05 [2025-02-20 01:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514256', 'tblTempUsageDetail_20' ) start [2025-02-20 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514256', 'tblTempUsageDetail_20' ) end [2025-02-20 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514256', 'tblTempVendorCDR_20' ) start [2025-02-20 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514256', 'tblTempVendorCDR_20' ) end [2025-02-20 01:06:16] Production.INFO: ProcessCDR(1,14514256,1,1,2) [2025-02-20 01:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514256', 'tblTempUsageDetail_20' ) start [2025-02-20 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514256', 'tblTempUsageDetail_20' ) end [2025-02-20 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:06:20] Production.INFO: ==16932== Releasing lock... [2025-02-20 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:06:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:07:05 [end_date_ymd] => 2025-02-20 01:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:07:05' and `end` < '2025-02-20 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-02-20 01:07:17] Production.INFO: count ==289 [2025-02-20 01:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:07:05 - End Time 2025-02-20 01:07:05 [2025-02-20 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514261', 'tblTempUsageDetail_20' ) start [2025-02-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514261', 'tblTempUsageDetail_20' ) end [2025-02-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514261', 'tblTempVendorCDR_20' ) start [2025-02-20 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514261', 'tblTempVendorCDR_20' ) end [2025-02-20 01:07:17] Production.INFO: ProcessCDR(1,14514261,1,1,2) [2025-02-20 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514261', 'tblTempUsageDetail_20' ) start [2025-02-20 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514261', 'tblTempUsageDetail_20' ) end [2025-02-20 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:07:21] Production.INFO: ==17013== Releasing lock... [2025-02-20 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:08:05 [end_date_ymd] => 2025-02-20 01:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:08:05' and `end` < '2025-02-20 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-02-20 01:08:17] Production.INFO: count ==279 [2025-02-20 01:08:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:08:05 - End Time 2025-02-20 01:08:05 [2025-02-20 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514266', 'tblTempUsageDetail_20' ) start [2025-02-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514266', 'tblTempUsageDetail_20' ) end [2025-02-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514266', 'tblTempVendorCDR_20' ) start [2025-02-20 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514266', 'tblTempVendorCDR_20' ) end [2025-02-20 01:08:17] Production.INFO: ProcessCDR(1,14514266,1,1,2) [2025-02-20 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514266', 'tblTempUsageDetail_20' ) start [2025-02-20 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514266', 'tblTempUsageDetail_20' ) end [2025-02-20 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:08:20] Production.INFO: ==17099== Releasing lock... [2025-02-20 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:08:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:09:05 [end_date_ymd] => 2025-02-20 01:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:09:05' and `end` < '2025-02-20 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-02-20 01:09:17] Production.INFO: count ==279 [2025-02-20 01:09:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:09:05 - End Time 2025-02-20 01:09:05 [2025-02-20 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514271', 'tblTempUsageDetail_20' ) start [2025-02-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514271', 'tblTempUsageDetail_20' ) end [2025-02-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514271', 'tblTempVendorCDR_20' ) start [2025-02-20 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514271', 'tblTempVendorCDR_20' ) end [2025-02-20 01:09:17] Production.INFO: ProcessCDR(1,14514271,1,1,2) [2025-02-20 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514271', 'tblTempUsageDetail_20' ) start [2025-02-20 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514271', 'tblTempUsageDetail_20' ) end [2025-02-20 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:09:20] Production.INFO: ==17231== Releasing lock... [2025-02-20 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:10:05 [end_date_ymd] => 2025-02-20 01:10:05 [RateCDR] => 1 ) [2025-02-20 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:10:05' and `end` < '2025-02-20 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:10:17] Production.INFO: count ==281 [2025-02-20 01:10:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:10:05 - End Time 2025-02-20 01:10:05 [2025-02-20 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514276', 'tblTempUsageDetail_20' ) start [2025-02-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514276', 'tblTempUsageDetail_20' ) end [2025-02-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514276', 'tblTempVendorCDR_20' ) start [2025-02-20 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514276', 'tblTempVendorCDR_20' ) end [2025-02-20 01:10:17] Production.INFO: ProcessCDR(1,14514276,1,1,2) [2025-02-20 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514276', 'tblTempUsageDetail_20' ) start [2025-02-20 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514276', 'tblTempUsageDetail_20' ) end [2025-02-20 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:10:21] Production.INFO: ==17325== Releasing lock... [2025-02-20 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:11:06 [end_date_ymd] => 2025-02-20 01:11:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:11:06' and `end` < '2025-02-20 01: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-02-20 01:11:17] Production.INFO: count ==279 [2025-02-20 01:11:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:11:06 - End Time 2025-02-20 01:11:06 [2025-02-20 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514282', 'tblTempUsageDetail_20' ) start [2025-02-20 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514282', 'tblTempUsageDetail_20' ) end [2025-02-20 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514282', 'tblTempVendorCDR_20' ) start [2025-02-20 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514282', 'tblTempVendorCDR_20' ) end [2025-02-20 01:11:17] Production.INFO: ProcessCDR(1,14514282,1,1,2) [2025-02-20 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514282', 'tblTempUsageDetail_20' ) start [2025-02-20 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514282', 'tblTempUsageDetail_20' ) end [2025-02-20 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:11:21] Production.INFO: ==17420== Releasing lock... [2025-02-20 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:12:05 [end_date_ymd] => 2025-02-20 01:12:05 [RateCDR] => 1 ) [2025-02-20 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:12:05' and `end` < '2025-02-20 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:12:17] Production.INFO: count ==278 [2025-02-20 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:12:05 - End Time 2025-02-20 01:12:05 [2025-02-20 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514287', 'tblTempUsageDetail_20' ) start [2025-02-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514287', 'tblTempUsageDetail_20' ) end [2025-02-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514287', 'tblTempVendorCDR_20' ) start [2025-02-20 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514287', 'tblTempVendorCDR_20' ) end [2025-02-20 01:12:17] Production.INFO: ProcessCDR(1,14514287,1,1,2) [2025-02-20 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514287', 'tblTempUsageDetail_20' ) start [2025-02-20 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514287', 'tblTempUsageDetail_20' ) end [2025-02-20 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:12:20] Production.INFO: ==17509== Releasing lock... [2025-02-20 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:12:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:13:05 [end_date_ymd] => 2025-02-20 01:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:13:05' and `end` < '2025-02-20 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-02-20 01:13:17] Production.INFO: count ==278 [2025-02-20 01:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:13:05 - End Time 2025-02-20 01:13:05 [2025-02-20 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514292', 'tblTempUsageDetail_20' ) start [2025-02-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514292', 'tblTempUsageDetail_20' ) end [2025-02-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514292', 'tblTempVendorCDR_20' ) start [2025-02-20 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514292', 'tblTempVendorCDR_20' ) end [2025-02-20 01:13:17] Production.INFO: ProcessCDR(1,14514292,1,1,2) [2025-02-20 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514292', 'tblTempUsageDetail_20' ) start [2025-02-20 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514292', 'tblTempUsageDetail_20' ) end [2025-02-20 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:13:21] Production.INFO: ==17597== Releasing lock... [2025-02-20 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:14:05 [end_date_ymd] => 2025-02-20 01:14:05 [RateCDR] => 1 ) [2025-02-20 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:14:05' and `end` < '2025-02-20 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:14:17] Production.INFO: count ==278 [2025-02-20 01:14:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:14:05 - End Time 2025-02-20 01:14:05 [2025-02-20 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514297', 'tblTempUsageDetail_20' ) start [2025-02-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514297', 'tblTempUsageDetail_20' ) end [2025-02-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514297', 'tblTempVendorCDR_20' ) start [2025-02-20 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514297', 'tblTempVendorCDR_20' ) end [2025-02-20 01:14:17] Production.INFO: ProcessCDR(1,14514297,1,1,2) [2025-02-20 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514297', 'tblTempUsageDetail_20' ) start [2025-02-20 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514297', 'tblTempUsageDetail_20' ) end [2025-02-20 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:14:20] Production.INFO: ==17679== Releasing lock... [2025-02-20 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:14:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:15:05 [end_date_ymd] => 2025-02-20 01:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:15:05' and `end` < '2025-02-20 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-02-20 01:15:17] Production.INFO: count ==278 [2025-02-20 01:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:15:05 - End Time 2025-02-20 01:15:05 [2025-02-20 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514302', 'tblTempUsageDetail_20' ) start [2025-02-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514302', 'tblTempUsageDetail_20' ) end [2025-02-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514302', 'tblTempVendorCDR_20' ) start [2025-02-20 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514302', 'tblTempVendorCDR_20' ) end [2025-02-20 01:15:17] Production.INFO: ProcessCDR(1,14514302,1,1,2) [2025-02-20 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514302', 'tblTempUsageDetail_20' ) start [2025-02-20 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514302', 'tblTempUsageDetail_20' ) end [2025-02-20 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:15:20] Production.INFO: ==17770== Releasing lock... [2025-02-20 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:16:05 [end_date_ymd] => 2025-02-20 01:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:16:05' and `end` < '2025-02-20 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-02-20 01:16:17] Production.INFO: count ==278 [2025-02-20 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:16:05 - End Time 2025-02-20 01:16:05 [2025-02-20 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514307', 'tblTempUsageDetail_20' ) start [2025-02-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514307', 'tblTempUsageDetail_20' ) end [2025-02-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514307', 'tblTempVendorCDR_20' ) start [2025-02-20 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514307', 'tblTempVendorCDR_20' ) end [2025-02-20 01:16:17] Production.INFO: ProcessCDR(1,14514307,1,1,2) [2025-02-20 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514307', 'tblTempUsageDetail_20' ) start [2025-02-20 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514307', 'tblTempUsageDetail_20' ) end [2025-02-20 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:16:20] Production.INFO: ==17857== Releasing lock... [2025-02-20 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:16:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:17:05 [end_date_ymd] => 2025-02-20 01:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:17:05' and `end` < '2025-02-20 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-02-20 01:17:17] Production.INFO: count ==278 [2025-02-20 01:17:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:17:05 - End Time 2025-02-20 01:17:05 [2025-02-20 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514312', 'tblTempUsageDetail_20' ) start [2025-02-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514312', 'tblTempUsageDetail_20' ) end [2025-02-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514312', 'tblTempVendorCDR_20' ) start [2025-02-20 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514312', 'tblTempVendorCDR_20' ) end [2025-02-20 01:17:17] Production.INFO: ProcessCDR(1,14514312,1,1,2) [2025-02-20 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514312', 'tblTempUsageDetail_20' ) start [2025-02-20 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514312', 'tblTempUsageDetail_20' ) end [2025-02-20 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:17:20] Production.INFO: ==17945== Releasing lock... [2025-02-20 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:18:05 [end_date_ymd] => 2025-02-20 01:18:05 [RateCDR] => 1 ) [2025-02-20 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:18:05' and `end` < '2025-02-20 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:18:16] Production.INFO: count ==279 [2025-02-20 01:18:16] Production.ERROR: pbx CDR StartTime 2025-02-19 22:18:05 - End Time 2025-02-20 01:18:05 [2025-02-20 01:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514317', 'tblTempUsageDetail_20' ) start [2025-02-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514317', 'tblTempUsageDetail_20' ) end [2025-02-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514317', 'tblTempVendorCDR_20' ) start [2025-02-20 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514317', 'tblTempVendorCDR_20' ) end [2025-02-20 01:18:17] Production.INFO: ProcessCDR(1,14514317,1,1,2) [2025-02-20 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514317', 'tblTempUsageDetail_20' ) start [2025-02-20 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514317', 'tblTempUsageDetail_20' ) end [2025-02-20 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:18:20] Production.INFO: ==18031== Releasing lock... [2025-02-20 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:18:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:19:05 [end_date_ymd] => 2025-02-20 01:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:19:05' and `end` < '2025-02-20 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-02-20 01:19:17] Production.INFO: count ==283 [2025-02-20 01:19:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:19:05 - End Time 2025-02-20 01:19:05 [2025-02-20 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514322', 'tblTempUsageDetail_20' ) start [2025-02-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514322', 'tblTempUsageDetail_20' ) end [2025-02-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514322', 'tblTempVendorCDR_20' ) start [2025-02-20 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514322', 'tblTempVendorCDR_20' ) end [2025-02-20 01:19:17] Production.INFO: ProcessCDR(1,14514322,1,1,2) [2025-02-20 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514322', 'tblTempUsageDetail_20' ) start [2025-02-20 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514322', 'tblTempUsageDetail_20' ) end [2025-02-20 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:19:20] Production.INFO: ==18117== Releasing lock... [2025-02-20 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:19:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:20:06 [end_date_ymd] => 2025-02-20 01:20:06 [RateCDR] => 1 ) [2025-02-20 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:20:06' and `end` < '2025-02-20 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:20:17] Production.INFO: count ==280 [2025-02-20 01:20:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:20:06 - End Time 2025-02-20 01:20:06 [2025-02-20 01:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514328', 'tblTempUsageDetail_20' ) start [2025-02-20 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514328', 'tblTempUsageDetail_20' ) end [2025-02-20 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514328', 'tblTempVendorCDR_20' ) start [2025-02-20 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514328', 'tblTempVendorCDR_20' ) end [2025-02-20 01:20:17] Production.INFO: ProcessCDR(1,14514328,1,1,2) [2025-02-20 01:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514328', 'tblTempUsageDetail_20' ) start [2025-02-20 01:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514328', 'tblTempUsageDetail_20' ) end [2025-02-20 01:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:20:20] Production.INFO: ==18207== Releasing lock... [2025-02-20 01:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:20:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:21:05 [end_date_ymd] => 2025-02-20 01:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:21:05' and `end` < '2025-02-20 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-02-20 01:21:17] Production.INFO: count ==280 [2025-02-20 01:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:21:05 - End Time 2025-02-20 01:21:05 [2025-02-20 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514333', 'tblTempUsageDetail_20' ) start [2025-02-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514333', 'tblTempUsageDetail_20' ) end [2025-02-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514333', 'tblTempVendorCDR_20' ) start [2025-02-20 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514333', 'tblTempVendorCDR_20' ) end [2025-02-20 01:21:17] Production.INFO: ProcessCDR(1,14514333,1,1,2) [2025-02-20 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514333', 'tblTempUsageDetail_20' ) start [2025-02-20 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514333', 'tblTempUsageDetail_20' ) end [2025-02-20 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:21:20] Production.INFO: ==18289== Releasing lock... [2025-02-20 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:21:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:22:05 [end_date_ymd] => 2025-02-20 01:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:22:05' and `end` < '2025-02-20 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-02-20 01:22:17] Production.INFO: count ==279 [2025-02-20 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:22:05 - End Time 2025-02-20 01:22:05 [2025-02-20 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514338', 'tblTempUsageDetail_20' ) start [2025-02-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514338', 'tblTempUsageDetail_20' ) end [2025-02-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514338', 'tblTempVendorCDR_20' ) start [2025-02-20 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514338', 'tblTempVendorCDR_20' ) end [2025-02-20 01:22:17] Production.INFO: ProcessCDR(1,14514338,1,1,2) [2025-02-20 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514338', 'tblTempUsageDetail_20' ) start [2025-02-20 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514338', 'tblTempUsageDetail_20' ) end [2025-02-20 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:22:20] Production.INFO: ==18367== Releasing lock... [2025-02-20 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:23:05 [end_date_ymd] => 2025-02-20 01:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:23:05' and `end` < '2025-02-20 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-02-20 01:23:17] Production.INFO: count ==279 [2025-02-20 01:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:23:05 - End Time 2025-02-20 01:23:05 [2025-02-20 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514343', 'tblTempUsageDetail_20' ) start [2025-02-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514343', 'tblTempUsageDetail_20' ) end [2025-02-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514343', 'tblTempVendorCDR_20' ) start [2025-02-20 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514343', 'tblTempVendorCDR_20' ) end [2025-02-20 01:23:17] Production.INFO: ProcessCDR(1,14514343,1,1,2) [2025-02-20 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514343', 'tblTempUsageDetail_20' ) start [2025-02-20 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514343', 'tblTempUsageDetail_20' ) end [2025-02-20 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:23:20] Production.INFO: ==18450== Releasing lock... [2025-02-20 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:24:05 [end_date_ymd] => 2025-02-20 01:24:05 [RateCDR] => 1 ) [2025-02-20 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:24:05' and `end` < '2025-02-20 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:24:17] Production.INFO: count ==279 [2025-02-20 01:24:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:24:05 - End Time 2025-02-20 01:24:05 [2025-02-20 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514348', 'tblTempUsageDetail_20' ) start [2025-02-20 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514348', 'tblTempUsageDetail_20' ) end [2025-02-20 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514348', 'tblTempVendorCDR_20' ) start [2025-02-20 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514348', 'tblTempVendorCDR_20' ) end [2025-02-20 01:24:17] Production.INFO: ProcessCDR(1,14514348,1,1,2) [2025-02-20 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514348', 'tblTempUsageDetail_20' ) start [2025-02-20 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514348', 'tblTempUsageDetail_20' ) end [2025-02-20 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:24:20] Production.INFO: ==18533== Releasing lock... [2025-02-20 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:24:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:25:06 [end_date_ymd] => 2025-02-20 01:25:06 [RateCDR] => 1 ) [2025-02-20 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:25:06' and `end` < '2025-02-20 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:25:17] Production.INFO: count ==279 [2025-02-20 01:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:25:06 - End Time 2025-02-20 01:25:06 [2025-02-20 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514353', 'tblTempUsageDetail_20' ) start [2025-02-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514353', 'tblTempUsageDetail_20' ) end [2025-02-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514353', 'tblTempVendorCDR_20' ) start [2025-02-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514353', 'tblTempVendorCDR_20' ) end [2025-02-20 01:25:17] Production.INFO: ProcessCDR(1,14514353,1,1,2) [2025-02-20 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514353', 'tblTempUsageDetail_20' ) start [2025-02-20 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514353', 'tblTempUsageDetail_20' ) end [2025-02-20 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:25:21] Production.INFO: ==18651== Releasing lock... [2025-02-20 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:26:05 [end_date_ymd] => 2025-02-20 01:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:26:05' and `end` < '2025-02-20 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-02-20 01:26:17] Production.INFO: count ==276 [2025-02-20 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:26:05 - End Time 2025-02-20 01:26:05 [2025-02-20 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514358', 'tblTempUsageDetail_20' ) start [2025-02-20 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514358', 'tblTempUsageDetail_20' ) end [2025-02-20 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514358', 'tblTempVendorCDR_20' ) start [2025-02-20 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514358', 'tblTempVendorCDR_20' ) end [2025-02-20 01:26:17] Production.INFO: ProcessCDR(1,14514358,1,1,2) [2025-02-20 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514358', 'tblTempUsageDetail_20' ) start [2025-02-20 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514358', 'tblTempUsageDetail_20' ) end [2025-02-20 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:26:20] Production.INFO: ==18725== Releasing lock... [2025-02-20 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:27:05 [end_date_ymd] => 2025-02-20 01:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:27:05' and `end` < '2025-02-20 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-02-20 01:27:17] Production.INFO: count ==276 [2025-02-20 01:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:27:05 - End Time 2025-02-20 01:27:05 [2025-02-20 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514363', 'tblTempUsageDetail_20' ) start [2025-02-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514363', 'tblTempUsageDetail_20' ) end [2025-02-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514363', 'tblTempVendorCDR_20' ) start [2025-02-20 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514363', 'tblTempVendorCDR_20' ) end [2025-02-20 01:27:17] Production.INFO: ProcessCDR(1,14514363,1,1,2) [2025-02-20 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514363', 'tblTempUsageDetail_20' ) start [2025-02-20 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514363', 'tblTempUsageDetail_20' ) end [2025-02-20 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:27:20] Production.INFO: ==18799== Releasing lock... [2025-02-20 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:28:06 [end_date_ymd] => 2025-02-20 01:28:06 [RateCDR] => 1 ) [2025-02-20 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:28:06' and `end` < '2025-02-20 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:28:17] Production.INFO: count ==276 [2025-02-20 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:28:06 - End Time 2025-02-20 01:28:06 [2025-02-20 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514368', 'tblTempUsageDetail_20' ) start [2025-02-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514368', 'tblTempUsageDetail_20' ) end [2025-02-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514368', 'tblTempVendorCDR_20' ) start [2025-02-20 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514368', 'tblTempVendorCDR_20' ) end [2025-02-20 01:28:17] Production.INFO: ProcessCDR(1,14514368,1,1,2) [2025-02-20 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514368', 'tblTempUsageDetail_20' ) start [2025-02-20 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514368', 'tblTempUsageDetail_20' ) end [2025-02-20 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:28:21] Production.INFO: ==18883== Releasing lock... [2025-02-20 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:29:05 [end_date_ymd] => 2025-02-20 01:29:05 [RateCDR] => 1 ) [2025-02-20 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:29:05' and `end` < '2025-02-20 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:29:17] Production.INFO: count ==276 [2025-02-20 01:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:29:05 - End Time 2025-02-20 01:29:05 [2025-02-20 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514373', 'tblTempUsageDetail_20' ) start [2025-02-20 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514373', 'tblTempUsageDetail_20' ) end [2025-02-20 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514373', 'tblTempVendorCDR_20' ) start [2025-02-20 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514373', 'tblTempVendorCDR_20' ) end [2025-02-20 01:29:17] Production.INFO: ProcessCDR(1,14514373,1,1,2) [2025-02-20 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514373', 'tblTempUsageDetail_20' ) start [2025-02-20 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514373', 'tblTempUsageDetail_20' ) end [2025-02-20 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:29:21] Production.INFO: ==18957== Releasing lock... [2025-02-20 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:30:06 [end_date_ymd] => 2025-02-20 01:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:30:06' and `end` < '2025-02-20 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-02-20 01:30:18] Production.INFO: count ==282 [2025-02-20 01:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:30:06 - End Time 2025-02-20 01:30:06 [2025-02-20 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514379', 'tblTempUsageDetail_20' ) start [2025-02-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514379', 'tblTempUsageDetail_20' ) end [2025-02-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514379', 'tblTempVendorCDR_20' ) start [2025-02-20 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514379', 'tblTempVendorCDR_20' ) end [2025-02-20 01:30:18] Production.INFO: ProcessCDR(1,14514379,1,1,2) [2025-02-20 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514379', 'tblTempUsageDetail_20' ) start [2025-02-20 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514379', 'tblTempUsageDetail_20' ) end [2025-02-20 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:30:21] Production.INFO: ==19063== Releasing lock... [2025-02-20 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:31:05 [end_date_ymd] => 2025-02-20 01:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:31:05' and `end` < '2025-02-20 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-02-20 01:31:17] Production.INFO: count ==283 [2025-02-20 01:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:31:05 - End Time 2025-02-20 01:31:05 [2025-02-20 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514384', 'tblTempUsageDetail_20' ) start [2025-02-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514384', 'tblTempUsageDetail_20' ) end [2025-02-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514384', 'tblTempVendorCDR_20' ) start [2025-02-20 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514384', 'tblTempVendorCDR_20' ) end [2025-02-20 01:31:17] Production.INFO: ProcessCDR(1,14514384,1,1,2) [2025-02-20 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514384', 'tblTempUsageDetail_20' ) start [2025-02-20 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514384', 'tblTempUsageDetail_20' ) end [2025-02-20 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:31:22] Production.INFO: ==19149== Releasing lock... [2025-02-20 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:32:06 [end_date_ymd] => 2025-02-20 01:32:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:32:06' and `end` < '2025-02-20 01: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-02-20 01:32:18] Production.INFO: count ==283 [2025-02-20 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:32:06 - End Time 2025-02-20 01:32:06 [2025-02-20 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514389', 'tblTempUsageDetail_20' ) start [2025-02-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514389', 'tblTempUsageDetail_20' ) end [2025-02-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514389', 'tblTempVendorCDR_20' ) start [2025-02-20 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514389', 'tblTempVendorCDR_20' ) end [2025-02-20 01:32:18] Production.INFO: ProcessCDR(1,14514389,1,1,2) [2025-02-20 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514389', 'tblTempUsageDetail_20' ) start [2025-02-20 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514389', 'tblTempUsageDetail_20' ) end [2025-02-20 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:32:21] Production.INFO: ==19229== Releasing lock... [2025-02-20 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:33:05 [end_date_ymd] => 2025-02-20 01:33:05 [RateCDR] => 1 ) [2025-02-20 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:33:05' and `end` < '2025-02-20 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:33:17] Production.INFO: count ==283 [2025-02-20 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:33:05 - End Time 2025-02-20 01:33:05 [2025-02-20 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514394', 'tblTempUsageDetail_20' ) start [2025-02-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514394', 'tblTempUsageDetail_20' ) end [2025-02-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514394', 'tblTempVendorCDR_20' ) start [2025-02-20 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514394', 'tblTempVendorCDR_20' ) end [2025-02-20 01:33:17] Production.INFO: ProcessCDR(1,14514394,1,1,2) [2025-02-20 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514394', 'tblTempUsageDetail_20' ) start [2025-02-20 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514394', 'tblTempUsageDetail_20' ) end [2025-02-20 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:33:20] Production.INFO: ==19305== Releasing lock... [2025-02-20 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:34:06 [end_date_ymd] => 2025-02-20 01:34:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:34:06' and `end` < '2025-02-20 01: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-02-20 01:34:17] Production.INFO: count ==283 [2025-02-20 01:34:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:34:06 - End Time 2025-02-20 01:34:06 [2025-02-20 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514399', 'tblTempUsageDetail_20' ) start [2025-02-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514399', 'tblTempUsageDetail_20' ) end [2025-02-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514399', 'tblTempVendorCDR_20' ) start [2025-02-20 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514399', 'tblTempVendorCDR_20' ) end [2025-02-20 01:34:18] Production.INFO: ProcessCDR(1,14514399,1,1,2) [2025-02-20 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514399', 'tblTempUsageDetail_20' ) start [2025-02-20 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514399', 'tblTempUsageDetail_20' ) end [2025-02-20 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:34:21] Production.INFO: ==19384== Releasing lock... [2025-02-20 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:35:05 [end_date_ymd] => 2025-02-20 01:35:05 [RateCDR] => 1 ) [2025-02-20 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:35:05' and `end` < '2025-02-20 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:35:17] Production.INFO: count ==279 [2025-02-20 01:35:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:35:05 - End Time 2025-02-20 01:35:05 [2025-02-20 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514404', 'tblTempUsageDetail_20' ) start [2025-02-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514404', 'tblTempUsageDetail_20' ) end [2025-02-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514404', 'tblTempVendorCDR_20' ) start [2025-02-20 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514404', 'tblTempVendorCDR_20' ) end [2025-02-20 01:35:17] Production.INFO: ProcessCDR(1,14514404,1,1,2) [2025-02-20 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514404', 'tblTempUsageDetail_20' ) start [2025-02-20 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514404', 'tblTempUsageDetail_20' ) end [2025-02-20 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:35:21] Production.INFO: ==19463== Releasing lock... [2025-02-20 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:36:06 [end_date_ymd] => 2025-02-20 01:36:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:36:06' and `end` < '2025-02-20 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:36:17] Production.INFO: count ==279 [2025-02-20 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:36:06 - End Time 2025-02-20 01:36:06 [2025-02-20 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514409', 'tblTempUsageDetail_20' ) start [2025-02-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514409', 'tblTempUsageDetail_20' ) end [2025-02-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514409', 'tblTempVendorCDR_20' ) start [2025-02-20 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514409', 'tblTempVendorCDR_20' ) end [2025-02-20 01:36:18] Production.INFO: ProcessCDR(1,14514409,1,1,2) [2025-02-20 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514409', 'tblTempUsageDetail_20' ) start [2025-02-20 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514409', 'tblTempUsageDetail_20' ) end [2025-02-20 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:36:21] Production.INFO: ==19547== Releasing lock... [2025-02-20 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:37:05 [end_date_ymd] => 2025-02-20 01:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:37:05' and `end` < '2025-02-20 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-02-20 01:37:17] Production.INFO: count ==279 [2025-02-20 01:37:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:37:05 - End Time 2025-02-20 01:37:05 [2025-02-20 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514414', 'tblTempUsageDetail_20' ) start [2025-02-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514414', 'tblTempUsageDetail_20' ) end [2025-02-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514414', 'tblTempVendorCDR_20' ) start [2025-02-20 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514414', 'tblTempVendorCDR_20' ) end [2025-02-20 01:37:17] Production.INFO: ProcessCDR(1,14514414,1,1,2) [2025-02-20 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514414', 'tblTempUsageDetail_20' ) start [2025-02-20 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514414', 'tblTempUsageDetail_20' ) end [2025-02-20 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:37:21] Production.INFO: ==19619== Releasing lock... [2025-02-20 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:38:05 [end_date_ymd] => 2025-02-20 01:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:38:05' and `end` < '2025-02-20 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-02-20 01:38:17] Production.INFO: count ==278 [2025-02-20 01:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:38:05 - End Time 2025-02-20 01:38:05 [2025-02-20 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514419', 'tblTempUsageDetail_20' ) start [2025-02-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514419', 'tblTempUsageDetail_20' ) end [2025-02-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514419', 'tblTempVendorCDR_20' ) start [2025-02-20 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514419', 'tblTempVendorCDR_20' ) end [2025-02-20 01:38:17] Production.INFO: ProcessCDR(1,14514419,1,1,2) [2025-02-20 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514419', 'tblTempUsageDetail_20' ) start [2025-02-20 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514419', 'tblTempUsageDetail_20' ) end [2025-02-20 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:38:21] Production.INFO: ==19699== Releasing lock... [2025-02-20 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:39:05 [end_date_ymd] => 2025-02-20 01:39:05 [RateCDR] => 1 ) [2025-02-20 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:39:05' and `end` < '2025-02-20 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:39:17] Production.INFO: count ==282 [2025-02-20 01:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:39:05 - End Time 2025-02-20 01:39:05 [2025-02-20 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514424', 'tblTempUsageDetail_20' ) start [2025-02-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514424', 'tblTempUsageDetail_20' ) end [2025-02-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514424', 'tblTempVendorCDR_20' ) start [2025-02-20 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514424', 'tblTempVendorCDR_20' ) end [2025-02-20 01:39:17] Production.INFO: ProcessCDR(1,14514424,1,1,2) [2025-02-20 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514424', 'tblTempUsageDetail_20' ) start [2025-02-20 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514424', 'tblTempUsageDetail_20' ) end [2025-02-20 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:39:21] Production.INFO: ==19781== Releasing lock... [2025-02-20 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:40:06 [end_date_ymd] => 2025-02-20 01:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:40:06' and `end` < '2025-02-20 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-02-20 01:40:18] Production.INFO: count ==284 [2025-02-20 01:40:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:40:06 - End Time 2025-02-20 01:40:06 [2025-02-20 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514430', 'tblTempUsageDetail_20' ) start [2025-02-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514430', 'tblTempUsageDetail_20' ) end [2025-02-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514430', 'tblTempVendorCDR_20' ) start [2025-02-20 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514430', 'tblTempVendorCDR_20' ) end [2025-02-20 01:40:18] Production.INFO: ProcessCDR(1,14514430,1,1,2) [2025-02-20 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514430', 'tblTempUsageDetail_20' ) start [2025-02-20 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514430', 'tblTempUsageDetail_20' ) end [2025-02-20 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:40:22] Production.INFO: ==19902== Releasing lock... [2025-02-20 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:41:06 [end_date_ymd] => 2025-02-20 01:41:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:41:06' and `end` < '2025-02-20 01: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-02-20 01:41:17] Production.INFO: count ==280 [2025-02-20 01:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:41:06 - End Time 2025-02-20 01:41:06 [2025-02-20 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514435', 'tblTempUsageDetail_20' ) start [2025-02-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514435', 'tblTempUsageDetail_20' ) end [2025-02-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514435', 'tblTempVendorCDR_20' ) start [2025-02-20 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514435', 'tblTempVendorCDR_20' ) end [2025-02-20 01:41:17] Production.INFO: ProcessCDR(1,14514435,1,1,2) [2025-02-20 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514435', 'tblTempUsageDetail_20' ) start [2025-02-20 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514435', 'tblTempUsageDetail_20' ) end [2025-02-20 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:41:21] Production.INFO: ==19977== Releasing lock... [2025-02-20 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:42:05 [end_date_ymd] => 2025-02-20 01:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:42:05' and `end` < '2025-02-20 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-02-20 01:42:17] Production.INFO: count ==280 [2025-02-20 01:42:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:42:05 - End Time 2025-02-20 01:42:05 [2025-02-20 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514440', 'tblTempUsageDetail_20' ) start [2025-02-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514440', 'tblTempUsageDetail_20' ) end [2025-02-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514440', 'tblTempVendorCDR_20' ) start [2025-02-20 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514440', 'tblTempVendorCDR_20' ) end [2025-02-20 01:42:17] Production.INFO: ProcessCDR(1,14514440,1,1,2) [2025-02-20 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514440', 'tblTempUsageDetail_20' ) start [2025-02-20 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514440', 'tblTempUsageDetail_20' ) end [2025-02-20 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:42:21] Production.INFO: ==20056== Releasing lock... [2025-02-20 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:43:05 [end_date_ymd] => 2025-02-20 01:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:43:05' and `end` < '2025-02-20 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-02-20 01:43:17] Production.INFO: count ==279 [2025-02-20 01:43:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:43:05 - End Time 2025-02-20 01:43:05 [2025-02-20 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514445', 'tblTempUsageDetail_20' ) start [2025-02-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514445', 'tblTempUsageDetail_20' ) end [2025-02-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514445', 'tblTempVendorCDR_20' ) start [2025-02-20 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514445', 'tblTempVendorCDR_20' ) end [2025-02-20 01:43:17] Production.INFO: ProcessCDR(1,14514445,1,1,2) [2025-02-20 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514445', 'tblTempUsageDetail_20' ) start [2025-02-20 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514445', 'tblTempUsageDetail_20' ) end [2025-02-20 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:43:20] Production.INFO: ==20136== Releasing lock... [2025-02-20 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:44:06 [end_date_ymd] => 2025-02-20 01:44:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:44:06' and `end` < '2025-02-20 01: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-02-20 01:44:17] Production.INFO: count ==279 [2025-02-20 01:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:44:06 - End Time 2025-02-20 01:44:06 [2025-02-20 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514450', 'tblTempUsageDetail_20' ) start [2025-02-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514450', 'tblTempUsageDetail_20' ) end [2025-02-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514450', 'tblTempVendorCDR_20' ) start [2025-02-20 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514450', 'tblTempVendorCDR_20' ) end [2025-02-20 01:44:17] Production.INFO: ProcessCDR(1,14514450,1,1,2) [2025-02-20 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514450', 'tblTempUsageDetail_20' ) start [2025-02-20 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514450', 'tblTempUsageDetail_20' ) end [2025-02-20 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:44:21] Production.INFO: ==20214== Releasing lock... [2025-02-20 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:45:05 [end_date_ymd] => 2025-02-20 01:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:45:05' and `end` < '2025-02-20 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-02-20 01:45:17] Production.INFO: count ==279 [2025-02-20 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:45:05 - End Time 2025-02-20 01:45:05 [2025-02-20 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514455', 'tblTempUsageDetail_20' ) start [2025-02-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514455', 'tblTempUsageDetail_20' ) end [2025-02-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514455', 'tblTempVendorCDR_20' ) start [2025-02-20 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514455', 'tblTempVendorCDR_20' ) end [2025-02-20 01:45:17] Production.INFO: ProcessCDR(1,14514455,1,1,2) [2025-02-20 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514455', 'tblTempUsageDetail_20' ) start [2025-02-20 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514455', 'tblTempUsageDetail_20' ) end [2025-02-20 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:45:21] Production.INFO: ==20292== Releasing lock... [2025-02-20 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:46:06 [end_date_ymd] => 2025-02-20 01:46:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:46:06' and `end` < '2025-02-20 01: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-02-20 01:46:17] Production.INFO: count ==274 [2025-02-20 01:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:46:06 - End Time 2025-02-20 01:46:06 [2025-02-20 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514460', 'tblTempUsageDetail_20' ) start [2025-02-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514460', 'tblTempUsageDetail_20' ) end [2025-02-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514460', 'tblTempVendorCDR_20' ) start [2025-02-20 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514460', 'tblTempVendorCDR_20' ) end [2025-02-20 01:46:17] Production.INFO: ProcessCDR(1,14514460,1,1,2) [2025-02-20 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514460', 'tblTempUsageDetail_20' ) start [2025-02-20 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514460', 'tblTempUsageDetail_20' ) end [2025-02-20 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:46:21] Production.INFO: ==20374== Releasing lock... [2025-02-20 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:46:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:47:05 [end_date_ymd] => 2025-02-20 01:47:05 [RateCDR] => 1 ) [2025-02-20 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:47:05' and `end` < '2025-02-20 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:47:17] Production.INFO: count ==274 [2025-02-20 01:47:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:47:05 - End Time 2025-02-20 01:47:05 [2025-02-20 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514465', 'tblTempUsageDetail_20' ) start [2025-02-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514465', 'tblTempUsageDetail_20' ) end [2025-02-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514465', 'tblTempVendorCDR_20' ) start [2025-02-20 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514465', 'tblTempVendorCDR_20' ) end [2025-02-20 01:47:17] Production.INFO: ProcessCDR(1,14514465,1,1,2) [2025-02-20 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514465', 'tblTempUsageDetail_20' ) start [2025-02-20 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514465', 'tblTempUsageDetail_20' ) end [2025-02-20 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:47:20] Production.INFO: ==20453== Releasing lock... [2025-02-20 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:47:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:48:06 [end_date_ymd] => 2025-02-20 01:48:06 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:48:06' and `end` < '2025-02-20 01: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-02-20 01:48:18] Production.INFO: count ==266 [2025-02-20 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:48:06 - End Time 2025-02-20 01:48:06 [2025-02-20 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514470', 'tblTempUsageDetail_20' ) start [2025-02-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514470', 'tblTempUsageDetail_20' ) end [2025-02-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514470', 'tblTempVendorCDR_20' ) start [2025-02-20 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514470', 'tblTempVendorCDR_20' ) end [2025-02-20 01:48:18] Production.INFO: ProcessCDR(1,14514470,1,1,2) [2025-02-20 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514470', 'tblTempUsageDetail_20' ) start [2025-02-20 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514470', 'tblTempUsageDetail_20' ) end [2025-02-20 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:48:21] Production.INFO: ==20532== Releasing lock... [2025-02-20 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:49:05 [end_date_ymd] => 2025-02-20 01:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:49:05' and `end` < '2025-02-20 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-02-20 01:49:17] Production.INFO: count ==262 [2025-02-20 01:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:49:05 - End Time 2025-02-20 01:49:05 [2025-02-20 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514475', 'tblTempUsageDetail_20' ) start [2025-02-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514475', 'tblTempUsageDetail_20' ) end [2025-02-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514475', 'tblTempVendorCDR_20' ) start [2025-02-20 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514475', 'tblTempVendorCDR_20' ) end [2025-02-20 01:49:17] Production.INFO: ProcessCDR(1,14514475,1,1,2) [2025-02-20 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514475', 'tblTempUsageDetail_20' ) start [2025-02-20 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514475', 'tblTempUsageDetail_20' ) end [2025-02-20 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:49:21] Production.INFO: ==20610== Releasing lock... [2025-02-20 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:50:07 [end_date_ymd] => 2025-02-20 01:50:07 [RateCDR] => 1 ) [2025-02-20 01: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-02-19 22:50:07' and `end` < '2025-02-20 01: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-02-20 01:50:18] Production.INFO: count ==256 [2025-02-20 01:50:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:50:07 - End Time 2025-02-20 01:50:07 [2025-02-20 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514481', 'tblTempUsageDetail_20' ) start [2025-02-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514481', 'tblTempUsageDetail_20' ) end [2025-02-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514481', 'tblTempVendorCDR_20' ) start [2025-02-20 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514481', 'tblTempVendorCDR_20' ) end [2025-02-20 01:50:18] Production.INFO: ProcessCDR(1,14514481,1,1,2) [2025-02-20 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514481', 'tblTempUsageDetail_20' ) start [2025-02-20 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514481', 'tblTempUsageDetail_20' ) end [2025-02-20 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:50:22] Production.INFO: ==20693== Releasing lock... [2025-02-20 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:51:05 [end_date_ymd] => 2025-02-20 01:51:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:51:05' and `end` < '2025-02-20 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-02-20 01:51:17] Production.INFO: count ==247 [2025-02-20 01:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:51:05 - End Time 2025-02-20 01:51:05 [2025-02-20 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514486', 'tblTempUsageDetail_20' ) start [2025-02-20 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514486', 'tblTempUsageDetail_20' ) end [2025-02-20 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514486', 'tblTempVendorCDR_20' ) start [2025-02-20 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514486', 'tblTempVendorCDR_20' ) end [2025-02-20 01:51:17] Production.INFO: ProcessCDR(1,14514486,1,1,2) [2025-02-20 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514486', 'tblTempUsageDetail_20' ) start [2025-02-20 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514486', 'tblTempUsageDetail_20' ) end [2025-02-20 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:51:21] Production.INFO: ==20770== Releasing lock... [2025-02-20 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:51:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:52:05 [end_date_ymd] => 2025-02-20 01:52:05 [RateCDR] => 1 ) [2025-02-20 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:52:05' and `end` < '2025-02-20 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:52:17] Production.INFO: count ==247 [2025-02-20 01:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:52:05 - End Time 2025-02-20 01:52:05 [2025-02-20 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514491', 'tblTempUsageDetail_20' ) start [2025-02-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514491', 'tblTempUsageDetail_20' ) end [2025-02-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514491', 'tblTempVendorCDR_20' ) start [2025-02-20 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514491', 'tblTempVendorCDR_20' ) end [2025-02-20 01:52:17] Production.INFO: ProcessCDR(1,14514491,1,1,2) [2025-02-20 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514491', 'tblTempUsageDetail_20' ) start [2025-02-20 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514491', 'tblTempUsageDetail_20' ) end [2025-02-20 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:52:21] Production.INFO: ==20850== Releasing lock... [2025-02-20 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:52:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:53:05 [end_date_ymd] => 2025-02-20 01:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:53:05' and `end` < '2025-02-20 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-02-20 01:53:17] Production.INFO: count ==247 [2025-02-20 01:53:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:53:05 - End Time 2025-02-20 01:53:05 [2025-02-20 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514496', 'tblTempUsageDetail_20' ) start [2025-02-20 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514496', 'tblTempUsageDetail_20' ) end [2025-02-20 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514496', 'tblTempVendorCDR_20' ) start [2025-02-20 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514496', 'tblTempVendorCDR_20' ) end [2025-02-20 01:53:17] Production.INFO: ProcessCDR(1,14514496,1,1,2) [2025-02-20 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514496', 'tblTempUsageDetail_20' ) start [2025-02-20 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514496', 'tblTempUsageDetail_20' ) end [2025-02-20 01:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:53:20] Production.INFO: ==20928== Releasing lock... [2025-02-20 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:53:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:54:06 [end_date_ymd] => 2025-02-20 01:54:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:54:06' and `end` < '2025-02-20 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-02-20 01:54:18] Production.INFO: count ==251 [2025-02-20 01:54:18] Production.ERROR: pbx CDR StartTime 2025-02-19 22:54:06 - End Time 2025-02-20 01:54:06 [2025-02-20 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514501', 'tblTempUsageDetail_20' ) start [2025-02-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514501', 'tblTempUsageDetail_20' ) end [2025-02-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514501', 'tblTempVendorCDR_20' ) start [2025-02-20 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514501', 'tblTempVendorCDR_20' ) end [2025-02-20 01:54:18] Production.INFO: ProcessCDR(1,14514501,1,1,2) [2025-02-20 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514501', 'tblTempUsageDetail_20' ) start [2025-02-20 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514501', 'tblTempUsageDetail_20' ) end [2025-02-20 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:54:22] Production.INFO: ==21003== Releasing lock... [2025-02-20 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:54:22] Production.INFO: 30 MB #Memory Used# [2025-02-20 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:55:05 [end_date_ymd] => 2025-02-20 01:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:55:05' and `end` < '2025-02-20 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-02-20 01:55:17] Production.INFO: count ==250 [2025-02-20 01:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:55:05 - End Time 2025-02-20 01:55:05 [2025-02-20 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514506', 'tblTempUsageDetail_20' ) start [2025-02-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514506', 'tblTempUsageDetail_20' ) end [2025-02-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514506', 'tblTempVendorCDR_20' ) start [2025-02-20 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514506', 'tblTempVendorCDR_20' ) end [2025-02-20 01:55:17] Production.INFO: ProcessCDR(1,14514506,1,1,2) [2025-02-20 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514506', 'tblTempUsageDetail_20' ) start [2025-02-20 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514506', 'tblTempUsageDetail_20' ) end [2025-02-20 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:55:21] Production.INFO: ==21085== Releasing lock... [2025-02-20 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:56:06 [end_date_ymd] => 2025-02-20 01:56:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:56:06' and `end` < '2025-02-20 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-02-20 01:56:17] Production.INFO: count ==258 [2025-02-20 01:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:56:06 - End Time 2025-02-20 01:56:06 [2025-02-20 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514511', 'tblTempUsageDetail_20' ) start [2025-02-20 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514511', 'tblTempUsageDetail_20' ) end [2025-02-20 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514511', 'tblTempVendorCDR_20' ) start [2025-02-20 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514511', 'tblTempVendorCDR_20' ) end [2025-02-20 01:56:17] Production.INFO: ProcessCDR(1,14514511,1,1,2) [2025-02-20 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514511', 'tblTempUsageDetail_20' ) start [2025-02-20 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514511', 'tblTempUsageDetail_20' ) end [2025-02-20 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:56:21] Production.INFO: ==21202== Releasing lock... [2025-02-20 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:57:05 [end_date_ymd] => 2025-02-20 01:57:05 [RateCDR] => 1 ) [2025-02-20 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 22:57:05' and `end` < '2025-02-20 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 01:57:17] Production.INFO: count ==266 [2025-02-20 01:57:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:57:05 - End Time 2025-02-20 01:57:05 [2025-02-20 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514516', 'tblTempUsageDetail_20' ) start [2025-02-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514516', 'tblTempUsageDetail_20' ) end [2025-02-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514516', 'tblTempVendorCDR_20' ) start [2025-02-20 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514516', 'tblTempVendorCDR_20' ) end [2025-02-20 01:57:17] Production.INFO: ProcessCDR(1,14514516,1,1,2) [2025-02-20 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514516', 'tblTempUsageDetail_20' ) start [2025-02-20 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514516', 'tblTempUsageDetail_20' ) end [2025-02-20 01:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:57:21] Production.INFO: ==21299== Releasing lock... [2025-02-20 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:58:06 [end_date_ymd] => 2025-02-20 01:58:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:58:06' and `end` < '2025-02-20 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-02-20 01:58:17] Production.INFO: count ==281 [2025-02-20 01:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 22:58:06 - End Time 2025-02-20 01:58:06 [2025-02-20 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514521', 'tblTempUsageDetail_20' ) start [2025-02-20 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514521', 'tblTempUsageDetail_20' ) end [2025-02-20 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514521', 'tblTempVendorCDR_20' ) start [2025-02-20 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514521', 'tblTempVendorCDR_20' ) end [2025-02-20 01:58:17] Production.INFO: ProcessCDR(1,14514521,1,1,2) [2025-02-20 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514521', 'tblTempUsageDetail_20' ) start [2025-02-20 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514521', 'tblTempUsageDetail_20' ) end [2025-02-20 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:58:21] Production.INFO: ==21394== Releasing lock... [2025-02-20 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 22:59:05 [end_date_ymd] => 2025-02-20 01:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 22:59:05' and `end` < '2025-02-20 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-02-20 01:59:16] Production.INFO: count ==281 [2025-02-20 01:59:16] Production.ERROR: pbx CDR StartTime 2025-02-19 22:59:05 - End Time 2025-02-20 01:59:05 [2025-02-20 01:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514526', 'tblTempUsageDetail_20' ) start [2025-02-20 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514526', 'tblTempUsageDetail_20' ) end [2025-02-20 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514526', 'tblTempVendorCDR_20' ) start [2025-02-20 01:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514526', 'tblTempVendorCDR_20' ) end [2025-02-20 01:59:16] Production.INFO: ProcessCDR(1,14514526,1,1,2) [2025-02-20 01:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514526', 'tblTempUsageDetail_20' ) start [2025-02-20 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514526', 'tblTempUsageDetail_20' ) end [2025-02-20 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 01:59:20] Production.INFO: ==21497== Releasing lock... [2025-02-20 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 01:59:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:00:07 [end_date_ymd] => 2025-02-20 02:00:07 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:00:07' and `end` < '2025-02-20 02: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-02-20 02:00:19] Production.INFO: count ==296 [2025-02-20 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-19 23:00:07 - End Time 2025-02-20 02:00:07 [2025-02-20 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514532', 'tblTempUsageDetail_20' ) start [2025-02-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514532', 'tblTempUsageDetail_20' ) end [2025-02-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514532', 'tblTempVendorCDR_20' ) start [2025-02-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514532', 'tblTempVendorCDR_20' ) end [2025-02-20 02:00:19] Production.INFO: ProcessCDR(1,14514532,1,1,2) [2025-02-20 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514532', 'tblTempUsageDetail_20' ) start [2025-02-20 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514532', 'tblTempUsageDetail_20' ) end [2025-02-20 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:00:24] Production.INFO: ==21591== Releasing lock... [2025-02-20 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:00:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:01:05 [end_date_ymd] => 2025-02-20 02:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:01:05' and `end` < '2025-02-20 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-02-20 02:01:17] Production.INFO: count ==304 [2025-02-20 02:01:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:01:05 - End Time 2025-02-20 02:01:05 [2025-02-20 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514537', 'tblTempUsageDetail_20' ) start [2025-02-20 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514537', 'tblTempUsageDetail_20' ) end [2025-02-20 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514537', 'tblTempVendorCDR_20' ) start [2025-02-20 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514537', 'tblTempVendorCDR_20' ) end [2025-02-20 02:01:17] Production.INFO: ProcessCDR(1,14514537,1,1,2) [2025-02-20 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514537', 'tblTempUsageDetail_20' ) start [2025-02-20 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514537', 'tblTempUsageDetail_20' ) end [2025-02-20 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:01:21] Production.INFO: ==21795== Releasing lock... [2025-02-20 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:01:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:02:06 [end_date_ymd] => 2025-02-20 02:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:02:06' and `end` < '2025-02-20 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-02-20 02:02:17] Production.INFO: count ==311 [2025-02-20 02:02:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:02:06 - End Time 2025-02-20 02:02:06 [2025-02-20 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514542', 'tblTempUsageDetail_20' ) start [2025-02-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514542', 'tblTempUsageDetail_20' ) end [2025-02-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514542', 'tblTempVendorCDR_20' ) start [2025-02-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514542', 'tblTempVendorCDR_20' ) end [2025-02-20 02:02:18] Production.INFO: ProcessCDR(1,14514542,1,1,2) [2025-02-20 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514542', 'tblTempUsageDetail_20' ) start [2025-02-20 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514542', 'tblTempUsageDetail_20' ) end [2025-02-20 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:02:21] Production.INFO: ==21902== Releasing lock... [2025-02-20 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:03:05 [end_date_ymd] => 2025-02-20 02:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:03:05' and `end` < '2025-02-20 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-02-20 02:03:17] Production.INFO: count ==312 [2025-02-20 02:03:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:03:05 - End Time 2025-02-20 02:03:05 [2025-02-20 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514547', 'tblTempUsageDetail_20' ) start [2025-02-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514547', 'tblTempUsageDetail_20' ) end [2025-02-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514547', 'tblTempVendorCDR_20' ) start [2025-02-20 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514547', 'tblTempVendorCDR_20' ) end [2025-02-20 02:03:17] Production.INFO: ProcessCDR(1,14514547,1,1,2) [2025-02-20 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514547', 'tblTempUsageDetail_20' ) start [2025-02-20 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514547', 'tblTempUsageDetail_20' ) end [2025-02-20 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:03:21] Production.INFO: ==22011== Releasing lock... [2025-02-20 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:04:06 [end_date_ymd] => 2025-02-20 02:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:04:06' and `end` < '2025-02-20 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-02-20 02:04:17] Production.INFO: count ==320 [2025-02-20 02:04:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:04:06 - End Time 2025-02-20 02:04:06 [2025-02-20 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514552', 'tblTempUsageDetail_20' ) start [2025-02-20 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514552', 'tblTempUsageDetail_20' ) end [2025-02-20 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514552', 'tblTempVendorCDR_20' ) start [2025-02-20 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514552', 'tblTempVendorCDR_20' ) end [2025-02-20 02:04:18] Production.INFO: ProcessCDR(1,14514552,1,1,2) [2025-02-20 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514552', 'tblTempUsageDetail_20' ) start [2025-02-20 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514552', 'tblTempUsageDetail_20' ) end [2025-02-20 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:04:21] Production.INFO: ==22119== Releasing lock... [2025-02-20 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:04:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:05:06 [end_date_ymd] => 2025-02-20 02:05:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:05:06' and `end` < '2025-02-20 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-02-20 02:05:18] Production.INFO: count ==331 [2025-02-20 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:05:06 - End Time 2025-02-20 02:05:06 [2025-02-20 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514557', 'tblTempUsageDetail_20' ) start [2025-02-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514557', 'tblTempUsageDetail_20' ) end [2025-02-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514557', 'tblTempVendorCDR_20' ) start [2025-02-20 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514557', 'tblTempVendorCDR_20' ) end [2025-02-20 02:05:18] Production.INFO: ProcessCDR(1,14514557,1,1,2) [2025-02-20 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514557', 'tblTempUsageDetail_20' ) start [2025-02-20 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514557', 'tblTempUsageDetail_20' ) end [2025-02-20 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:05:22] Production.INFO: ==22220== Releasing lock... [2025-02-20 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:06:05 [end_date_ymd] => 2025-02-20 02:06:05 [RateCDR] => 1 ) [2025-02-20 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:06:05' and `end` < '2025-02-20 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:06:17] Production.INFO: count ==341 [2025-02-20 02:06:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:06:05 - End Time 2025-02-20 02:06:05 [2025-02-20 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514562', 'tblTempUsageDetail_20' ) start [2025-02-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514562', 'tblTempUsageDetail_20' ) end [2025-02-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514562', 'tblTempVendorCDR_20' ) start [2025-02-20 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514562', 'tblTempVendorCDR_20' ) end [2025-02-20 02:06:17] Production.INFO: ProcessCDR(1,14514562,1,1,2) [2025-02-20 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514562', 'tblTempUsageDetail_20' ) start [2025-02-20 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514562', 'tblTempUsageDetail_20' ) end [2025-02-20 02:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:06:20] Production.INFO: ==22325== Releasing lock... [2025-02-20 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:06:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:07:05 [end_date_ymd] => 2025-02-20 02:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:07:05' and `end` < '2025-02-20 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-02-20 02:07:17] Production.INFO: count ==341 [2025-02-20 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:07:05 - End Time 2025-02-20 02:07:05 [2025-02-20 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514567', 'tblTempUsageDetail_20' ) start [2025-02-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514567', 'tblTempUsageDetail_20' ) end [2025-02-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514567', 'tblTempVendorCDR_20' ) start [2025-02-20 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514567', 'tblTempVendorCDR_20' ) end [2025-02-20 02:07:17] Production.INFO: ProcessCDR(1,14514567,1,1,2) [2025-02-20 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514567', 'tblTempUsageDetail_20' ) start [2025-02-20 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514567', 'tblTempUsageDetail_20' ) end [2025-02-20 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:07:21] Production.INFO: ==22421== Releasing lock... [2025-02-20 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:08:05 [end_date_ymd] => 2025-02-20 02:08:05 [RateCDR] => 1 ) [2025-02-20 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:08:05' and `end` < '2025-02-20 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:08:17] Production.INFO: count ==329 [2025-02-20 02:08:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:08:05 - End Time 2025-02-20 02:08:05 [2025-02-20 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514572', 'tblTempUsageDetail_20' ) start [2025-02-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514572', 'tblTempUsageDetail_20' ) end [2025-02-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514572', 'tblTempVendorCDR_20' ) start [2025-02-20 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514572', 'tblTempVendorCDR_20' ) end [2025-02-20 02:08:17] Production.INFO: ProcessCDR(1,14514572,1,1,2) [2025-02-20 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514572', 'tblTempUsageDetail_20' ) start [2025-02-20 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514572', 'tblTempUsageDetail_20' ) end [2025-02-20 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:08:21] Production.INFO: ==22522== Releasing lock... [2025-02-20 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:08:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:09:06 [end_date_ymd] => 2025-02-20 02:09:06 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:09:06' and `end` < '2025-02-20 02: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-02-20 02:09:18] Production.INFO: count ==333 [2025-02-20 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:09:06 - End Time 2025-02-20 02:09:06 [2025-02-20 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514577', 'tblTempUsageDetail_20' ) start [2025-02-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514577', 'tblTempUsageDetail_20' ) end [2025-02-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514577', 'tblTempVendorCDR_20' ) start [2025-02-20 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514577', 'tblTempVendorCDR_20' ) end [2025-02-20 02:09:18] Production.INFO: ProcessCDR(1,14514577,1,1,2) [2025-02-20 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514577', 'tblTempUsageDetail_20' ) start [2025-02-20 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514577', 'tblTempUsageDetail_20' ) end [2025-02-20 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:09:21] Production.INFO: ==22633== Releasing lock... [2025-02-20 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:09:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:10:06 [end_date_ymd] => 2025-02-20 02:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:10:06' and `end` < '2025-02-20 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-02-20 02:10:17] Production.INFO: count ==335 [2025-02-20 02:10:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:10:06 - End Time 2025-02-20 02:10:06 [2025-02-20 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514583', 'tblTempUsageDetail_20' ) start [2025-02-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514583', 'tblTempUsageDetail_20' ) end [2025-02-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514583', 'tblTempVendorCDR_20' ) start [2025-02-20 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514583', 'tblTempVendorCDR_20' ) end [2025-02-20 02:10:18] Production.INFO: ProcessCDR(1,14514583,1,1,2) [2025-02-20 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514583', 'tblTempUsageDetail_20' ) start [2025-02-20 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514583', 'tblTempUsageDetail_20' ) end [2025-02-20 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:10:21] Production.INFO: ==22727== Releasing lock... [2025-02-20 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:10:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:11:06 [end_date_ymd] => 2025-02-20 02:11:06 [RateCDR] => 1 ) [2025-02-20 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:11:06' and `end` < '2025-02-20 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:11:18] Production.INFO: count ==332 [2025-02-20 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:11:06 - End Time 2025-02-20 02:11:06 [2025-02-20 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514588', 'tblTempUsageDetail_20' ) start [2025-02-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514588', 'tblTempUsageDetail_20' ) end [2025-02-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514588', 'tblTempVendorCDR_20' ) start [2025-02-20 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514588', 'tblTempVendorCDR_20' ) end [2025-02-20 02:11:18] Production.INFO: ProcessCDR(1,14514588,1,1,2) [2025-02-20 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514588', 'tblTempUsageDetail_20' ) start [2025-02-20 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514588', 'tblTempUsageDetail_20' ) end [2025-02-20 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:11:22] Production.INFO: ==22848== Releasing lock... [2025-02-20 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:11:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:12:06 [end_date_ymd] => 2025-02-20 02:12:06 [RateCDR] => 1 ) [2025-02-20 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:12:06' and `end` < '2025-02-20 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:12:18] Production.INFO: count ==332 [2025-02-20 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:12:06 - End Time 2025-02-20 02:12:06 [2025-02-20 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514593', 'tblTempUsageDetail_20' ) start [2025-02-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514593', 'tblTempUsageDetail_20' ) end [2025-02-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514593', 'tblTempVendorCDR_20' ) start [2025-02-20 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514593', 'tblTempVendorCDR_20' ) end [2025-02-20 02:12:18] Production.INFO: ProcessCDR(1,14514593,1,1,2) [2025-02-20 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514593', 'tblTempUsageDetail_20' ) start [2025-02-20 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514593', 'tblTempUsageDetail_20' ) end [2025-02-20 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:12:21] Production.INFO: ==22929== Releasing lock... [2025-02-20 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:12:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:13:06 [end_date_ymd] => 2025-02-20 02:13:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:13:06' and `end` < '2025-02-20 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-02-20 02:13:17] Production.INFO: count ==332 [2025-02-20 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:13:06 - End Time 2025-02-20 02:13:06 [2025-02-20 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514598', 'tblTempUsageDetail_20' ) start [2025-02-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514598', 'tblTempUsageDetail_20' ) end [2025-02-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514598', 'tblTempVendorCDR_20' ) start [2025-02-20 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514598', 'tblTempVendorCDR_20' ) end [2025-02-20 02:13:17] Production.INFO: ProcessCDR(1,14514598,1,1,2) [2025-02-20 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514598', 'tblTempUsageDetail_20' ) start [2025-02-20 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514598', 'tblTempUsageDetail_20' ) end [2025-02-20 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:13:21] Production.INFO: ==23013== Releasing lock... [2025-02-20 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:13:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:14:05 [end_date_ymd] => 2025-02-20 02:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:14:05' and `end` < '2025-02-20 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-02-20 02:14:17] Production.INFO: count ==331 [2025-02-20 02:14:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:14:05 - End Time 2025-02-20 02:14:05 [2025-02-20 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514603', 'tblTempUsageDetail_20' ) start [2025-02-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514603', 'tblTempUsageDetail_20' ) end [2025-02-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514603', 'tblTempVendorCDR_20' ) start [2025-02-20 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514603', 'tblTempVendorCDR_20' ) end [2025-02-20 02:14:17] Production.INFO: ProcessCDR(1,14514603,1,1,2) [2025-02-20 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514603', 'tblTempUsageDetail_20' ) start [2025-02-20 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514603', 'tblTempUsageDetail_20' ) end [2025-02-20 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:14:20] Production.INFO: ==23089== Releasing lock... [2025-02-20 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:14:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:15:05 [end_date_ymd] => 2025-02-20 02:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:15:05' and `end` < '2025-02-20 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-02-20 02:15:17] Production.INFO: count ==330 [2025-02-20 02:15:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:15:05 - End Time 2025-02-20 02:15:05 [2025-02-20 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514608', 'tblTempUsageDetail_20' ) start [2025-02-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514608', 'tblTempUsageDetail_20' ) end [2025-02-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514608', 'tblTempVendorCDR_20' ) start [2025-02-20 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514608', 'tblTempVendorCDR_20' ) end [2025-02-20 02:15:17] Production.INFO: ProcessCDR(1,14514608,1,1,2) [2025-02-20 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514608', 'tblTempUsageDetail_20' ) start [2025-02-20 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514608', 'tblTempUsageDetail_20' ) end [2025-02-20 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:15:20] Production.INFO: ==23168== Releasing lock... [2025-02-20 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:15:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:16:05 [end_date_ymd] => 2025-02-20 02:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:16:05' and `end` < '2025-02-20 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-02-20 02:16:17] Production.INFO: count ==330 [2025-02-20 02:16:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:16:05 - End Time 2025-02-20 02:16:05 [2025-02-20 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514609', 'tblTempUsageDetail_20' ) start [2025-02-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514609', 'tblTempUsageDetail_20' ) end [2025-02-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514609', 'tblTempVendorCDR_20' ) start [2025-02-20 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514609', 'tblTempVendorCDR_20' ) end [2025-02-20 02:16:17] Production.INFO: ProcessCDR(1,14514609,1,1,2) [2025-02-20 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514609', 'tblTempUsageDetail_20' ) start [2025-02-20 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514609', 'tblTempUsageDetail_20' ) end [2025-02-20 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:16:20] Production.INFO: ==23245== Releasing lock... [2025-02-20 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:17:06 [end_date_ymd] => 2025-02-20 02:17:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:17:06' and `end` < '2025-02-20 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-02-20 02:17:18] Production.INFO: count ==331 [2025-02-20 02:17:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:17:06 - End Time 2025-02-20 02:17:06 [2025-02-20 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514618', 'tblTempUsageDetail_20' ) start [2025-02-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514618', 'tblTempUsageDetail_20' ) end [2025-02-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514618', 'tblTempVendorCDR_20' ) start [2025-02-20 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514618', 'tblTempVendorCDR_20' ) end [2025-02-20 02:17:18] Production.INFO: ProcessCDR(1,14514618,1,1,2) [2025-02-20 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514618', 'tblTempUsageDetail_20' ) start [2025-02-20 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514618', 'tblTempUsageDetail_20' ) end [2025-02-20 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:17:23] Production.INFO: ==23324== Releasing lock... [2025-02-20 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:17:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:18:05 [end_date_ymd] => 2025-02-20 02:18:05 [RateCDR] => 1 ) [2025-02-20 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:18:05' and `end` < '2025-02-20 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:18:16] Production.INFO: count ==327 [2025-02-20 02:18:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:18:05 - End Time 2025-02-20 02:18:05 [2025-02-20 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514623', 'tblTempUsageDetail_20' ) start [2025-02-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514623', 'tblTempUsageDetail_20' ) end [2025-02-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514623', 'tblTempVendorCDR_20' ) start [2025-02-20 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514623', 'tblTempVendorCDR_20' ) end [2025-02-20 02:18:17] Production.INFO: ProcessCDR(1,14514623,1,1,2) [2025-02-20 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514623', 'tblTempUsageDetail_20' ) start [2025-02-20 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514623', 'tblTempUsageDetail_20' ) end [2025-02-20 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:18:20] Production.INFO: ==23406== Releasing lock... [2025-02-20 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:18:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:19:06 [end_date_ymd] => 2025-02-20 02:19:06 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:19:06' and `end` < '2025-02-20 02: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-02-20 02:19:18] Production.INFO: count ==327 [2025-02-20 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:19:06 - End Time 2025-02-20 02:19:06 [2025-02-20 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514628', 'tblTempUsageDetail_20' ) start [2025-02-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514628', 'tblTempUsageDetail_20' ) end [2025-02-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514628', 'tblTempVendorCDR_20' ) start [2025-02-20 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514628', 'tblTempVendorCDR_20' ) end [2025-02-20 02:19:18] Production.INFO: ProcessCDR(1,14514628,1,1,2) [2025-02-20 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514628', 'tblTempUsageDetail_20' ) start [2025-02-20 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514628', 'tblTempUsageDetail_20' ) end [2025-02-20 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:19:21] Production.INFO: ==23486== Releasing lock... [2025-02-20 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:19:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:20:06 [end_date_ymd] => 2025-02-20 02:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:20:06' and `end` < '2025-02-20 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-02-20 02:20:17] Production.INFO: count ==331 [2025-02-20 02:20:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:20:06 - End Time 2025-02-20 02:20:06 [2025-02-20 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514634', 'tblTempUsageDetail_20' ) start [2025-02-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514634', 'tblTempUsageDetail_20' ) end [2025-02-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514634', 'tblTempVendorCDR_20' ) start [2025-02-20 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514634', 'tblTempVendorCDR_20' ) end [2025-02-20 02:20:18] Production.INFO: ProcessCDR(1,14514634,1,1,2) [2025-02-20 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514634', 'tblTempUsageDetail_20' ) start [2025-02-20 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514634', 'tblTempUsageDetail_20' ) end [2025-02-20 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:20:21] Production.INFO: ==23564== Releasing lock... [2025-02-20 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:20:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:21:06 [end_date_ymd] => 2025-02-20 02:21:06 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:21:06' and `end` < '2025-02-20 02: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-02-20 02:21:17] Production.INFO: count ==327 [2025-02-20 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:21:06 - End Time 2025-02-20 02:21:06 [2025-02-20 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514639', 'tblTempUsageDetail_20' ) start [2025-02-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514639', 'tblTempUsageDetail_20' ) end [2025-02-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514639', 'tblTempVendorCDR_20' ) start [2025-02-20 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514639', 'tblTempVendorCDR_20' ) end [2025-02-20 02:21:17] Production.INFO: ProcessCDR(1,14514639,1,1,2) [2025-02-20 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514639', 'tblTempUsageDetail_20' ) start [2025-02-20 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514639', 'tblTempUsageDetail_20' ) end [2025-02-20 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:21:21] Production.INFO: ==23645== Releasing lock... [2025-02-20 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:21:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:22:05 [end_date_ymd] => 2025-02-20 02:22:05 [RateCDR] => 1 ) [2025-02-20 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:22:05' and `end` < '2025-02-20 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:22:16] Production.INFO: count ==327 [2025-02-20 02:22:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:22:05 - End Time 2025-02-20 02:22:05 [2025-02-20 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514644', 'tblTempUsageDetail_20' ) start [2025-02-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514644', 'tblTempUsageDetail_20' ) end [2025-02-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514644', 'tblTempVendorCDR_20' ) start [2025-02-20 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514644', 'tblTempVendorCDR_20' ) end [2025-02-20 02:22:17] Production.INFO: ProcessCDR(1,14514644,1,1,2) [2025-02-20 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514644', 'tblTempUsageDetail_20' ) start [2025-02-20 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514644', 'tblTempUsageDetail_20' ) end [2025-02-20 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:22:20] Production.INFO: ==23721== Releasing lock... [2025-02-20 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:22:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:23:05 [end_date_ymd] => 2025-02-20 02:23:05 [RateCDR] => 1 ) [2025-02-20 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:23:05' and `end` < '2025-02-20 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:23:17] Production.INFO: count ==327 [2025-02-20 02:23:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:23:05 - End Time 2025-02-20 02:23:05 [2025-02-20 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514649', 'tblTempUsageDetail_20' ) start [2025-02-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514649', 'tblTempUsageDetail_20' ) end [2025-02-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514649', 'tblTempVendorCDR_20' ) start [2025-02-20 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514649', 'tblTempVendorCDR_20' ) end [2025-02-20 02:23:17] Production.INFO: ProcessCDR(1,14514649,1,1,2) [2025-02-20 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514649', 'tblTempUsageDetail_20' ) start [2025-02-20 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514649', 'tblTempUsageDetail_20' ) end [2025-02-20 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:23:21] Production.INFO: ==23798== Releasing lock... [2025-02-20 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:23:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:24:05 [end_date_ymd] => 2025-02-20 02:24:05 [RateCDR] => 1 ) [2025-02-20 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:24:05' and `end` < '2025-02-20 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:24:17] Production.INFO: count ==327 [2025-02-20 02:24:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:24:05 - End Time 2025-02-20 02:24:05 [2025-02-20 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514654', 'tblTempUsageDetail_20' ) start [2025-02-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514654', 'tblTempUsageDetail_20' ) end [2025-02-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514654', 'tblTempVendorCDR_20' ) start [2025-02-20 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514654', 'tblTempVendorCDR_20' ) end [2025-02-20 02:24:17] Production.INFO: ProcessCDR(1,14514654,1,1,2) [2025-02-20 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514654', 'tblTempUsageDetail_20' ) start [2025-02-20 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514654', 'tblTempUsageDetail_20' ) end [2025-02-20 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:24:20] Production.INFO: ==23875== Releasing lock... [2025-02-20 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:24:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:25:06 [end_date_ymd] => 2025-02-20 02:25:06 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:25:06' and `end` < '2025-02-20 02: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-02-20 02:25:17] Production.INFO: count ==327 [2025-02-20 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:25:06 - End Time 2025-02-20 02:25:06 [2025-02-20 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514659', 'tblTempUsageDetail_20' ) start [2025-02-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514659', 'tblTempUsageDetail_20' ) end [2025-02-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514659', 'tblTempVendorCDR_20' ) start [2025-02-20 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514659', 'tblTempVendorCDR_20' ) end [2025-02-20 02:25:17] Production.INFO: ProcessCDR(1,14514659,1,1,2) [2025-02-20 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514659', 'tblTempUsageDetail_20' ) start [2025-02-20 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514659', 'tblTempUsageDetail_20' ) end [2025-02-20 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:25:21] Production.INFO: ==23950== Releasing lock... [2025-02-20 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:25:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:26:06 [end_date_ymd] => 2025-02-20 02:26:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:26:06' and `end` < '2025-02-20 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-02-20 02:26:17] Production.INFO: count ==326 [2025-02-20 02:26:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:26:06 - End Time 2025-02-20 02:26:06 [2025-02-20 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514664', 'tblTempUsageDetail_20' ) start [2025-02-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514664', 'tblTempUsageDetail_20' ) end [2025-02-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514664', 'tblTempVendorCDR_20' ) start [2025-02-20 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514664', 'tblTempVendorCDR_20' ) end [2025-02-20 02:26:18] Production.INFO: ProcessCDR(1,14514664,1,1,2) [2025-02-20 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514664', 'tblTempUsageDetail_20' ) start [2025-02-20 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514664', 'tblTempUsageDetail_20' ) end [2025-02-20 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:26:21] Production.INFO: ==24032== Releasing lock... [2025-02-20 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:26:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:27:05 [end_date_ymd] => 2025-02-20 02:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:27:05' and `end` < '2025-02-20 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-02-20 02:27:17] Production.INFO: count ==326 [2025-02-20 02:27:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:27:05 - End Time 2025-02-20 02:27:05 [2025-02-20 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514669', 'tblTempUsageDetail_20' ) start [2025-02-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514669', 'tblTempUsageDetail_20' ) end [2025-02-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514669', 'tblTempVendorCDR_20' ) start [2025-02-20 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514669', 'tblTempVendorCDR_20' ) end [2025-02-20 02:27:17] Production.INFO: ProcessCDR(1,14514669,1,1,2) [2025-02-20 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514669', 'tblTempUsageDetail_20' ) start [2025-02-20 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514669', 'tblTempUsageDetail_20' ) end [2025-02-20 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:27:20] Production.INFO: ==24144== Releasing lock... [2025-02-20 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:27:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:28:06 [end_date_ymd] => 2025-02-20 02:28:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:28:06' and `end` < '2025-02-20 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-02-20 02:28:18] Production.INFO: count ==323 [2025-02-20 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:28:06 - End Time 2025-02-20 02:28:06 [2025-02-20 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514674', 'tblTempUsageDetail_20' ) start [2025-02-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514674', 'tblTempUsageDetail_20' ) end [2025-02-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514674', 'tblTempVendorCDR_20' ) start [2025-02-20 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514674', 'tblTempVendorCDR_20' ) end [2025-02-20 02:28:18] Production.INFO: ProcessCDR(1,14514674,1,1,2) [2025-02-20 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514674', 'tblTempUsageDetail_20' ) start [2025-02-20 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514674', 'tblTempUsageDetail_20' ) end [2025-02-20 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:28:21] Production.INFO: ==24218== Releasing lock... [2025-02-20 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:29:06 [end_date_ymd] => 2025-02-20 02:29:06 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:29:06' and `end` < '2025-02-20 02: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-02-20 02:29:17] Production.INFO: count ==323 [2025-02-20 02:29:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:29:06 - End Time 2025-02-20 02:29:06 [2025-02-20 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514679', 'tblTempUsageDetail_20' ) start [2025-02-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514679', 'tblTempUsageDetail_20' ) end [2025-02-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514679', 'tblTempVendorCDR_20' ) start [2025-02-20 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514679', 'tblTempVendorCDR_20' ) end [2025-02-20 02:29:17] Production.INFO: ProcessCDR(1,14514679,1,1,2) [2025-02-20 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514679', 'tblTempUsageDetail_20' ) start [2025-02-20 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514679', 'tblTempUsageDetail_20' ) end [2025-02-20 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:29:20] Production.INFO: ==24298== Releasing lock... [2025-02-20 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:30:06 [end_date_ymd] => 2025-02-20 02:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:30:06' and `end` < '2025-02-20 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-02-20 02:30:18] Production.INFO: count ==323 [2025-02-20 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:30:06 - End Time 2025-02-20 02:30:06 [2025-02-20 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514684', 'tblTempUsageDetail_20' ) start [2025-02-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514684', 'tblTempUsageDetail_20' ) end [2025-02-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514684', 'tblTempVendorCDR_20' ) start [2025-02-20 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514684', 'tblTempVendorCDR_20' ) end [2025-02-20 02:30:18] Production.INFO: ProcessCDR(1,14514684,1,1,2) [2025-02-20 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514684', 'tblTempUsageDetail_20' ) start [2025-02-20 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514684', 'tblTempUsageDetail_20' ) end [2025-02-20 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:30:21] Production.INFO: ==24376== Releasing lock... [2025-02-20 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:31:06 [end_date_ymd] => 2025-02-20 02:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:31:06' and `end` < '2025-02-20 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-02-20 02:31:17] Production.INFO: count ==324 [2025-02-20 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:31:06 - End Time 2025-02-20 02:31:06 [2025-02-20 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514690', 'tblTempUsageDetail_20' ) start [2025-02-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514690', 'tblTempUsageDetail_20' ) end [2025-02-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514690', 'tblTempVendorCDR_20' ) start [2025-02-20 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514690', 'tblTempVendorCDR_20' ) end [2025-02-20 02:31:17] Production.INFO: ProcessCDR(1,14514690,1,1,2) [2025-02-20 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514690', 'tblTempUsageDetail_20' ) start [2025-02-20 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514690', 'tblTempUsageDetail_20' ) end [2025-02-20 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:31:21] Production.INFO: ==24465== Releasing lock... [2025-02-20 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:32:06 [end_date_ymd] => 2025-02-20 02:32:06 [RateCDR] => 1 ) [2025-02-20 02: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-02-19 23:32:06' and `end` < '2025-02-20 02: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-02-20 02:32:17] Production.INFO: count ==318 [2025-02-20 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:32:06 - End Time 2025-02-20 02:32:06 [2025-02-20 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514695', 'tblTempUsageDetail_20' ) start [2025-02-20 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514695', 'tblTempUsageDetail_20' ) end [2025-02-20 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514695', 'tblTempVendorCDR_20' ) start [2025-02-20 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514695', 'tblTempVendorCDR_20' ) end [2025-02-20 02:32:17] Production.INFO: ProcessCDR(1,14514695,1,1,2) [2025-02-20 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514695', 'tblTempUsageDetail_20' ) start [2025-02-20 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514695', 'tblTempUsageDetail_20' ) end [2025-02-20 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:32:21] Production.INFO: ==24541== Releasing lock... [2025-02-20 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:33:05 [end_date_ymd] => 2025-02-20 02:33:05 [RateCDR] => 1 ) [2025-02-20 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:33:05' and `end` < '2025-02-20 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:33:16] Production.INFO: count ==315 [2025-02-20 02:33:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:33:05 - End Time 2025-02-20 02:33:05 [2025-02-20 02:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514700', 'tblTempUsageDetail_20' ) start [2025-02-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514700', 'tblTempUsageDetail_20' ) end [2025-02-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514700', 'tblTempVendorCDR_20' ) start [2025-02-20 02:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514700', 'tblTempVendorCDR_20' ) end [2025-02-20 02:33:16] Production.INFO: ProcessCDR(1,14514700,1,1,2) [2025-02-20 02:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514700', 'tblTempUsageDetail_20' ) start [2025-02-20 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514700', 'tblTempUsageDetail_20' ) end [2025-02-20 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:33:20] Production.INFO: ==24620== Releasing lock... [2025-02-20 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:34:06 [end_date_ymd] => 2025-02-20 02:34:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:34:06' and `end` < '2025-02-20 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-02-20 02:34:18] Production.INFO: count ==313 [2025-02-20 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:34:06 - End Time 2025-02-20 02:34:06 [2025-02-20 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514705', 'tblTempUsageDetail_20' ) start [2025-02-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514705', 'tblTempUsageDetail_20' ) end [2025-02-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514705', 'tblTempVendorCDR_20' ) start [2025-02-20 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514705', 'tblTempVendorCDR_20' ) end [2025-02-20 02:34:18] Production.INFO: ProcessCDR(1,14514705,1,1,2) [2025-02-20 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514705', 'tblTempUsageDetail_20' ) start [2025-02-20 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514705', 'tblTempUsageDetail_20' ) end [2025-02-20 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:34:21] Production.INFO: ==24701== Releasing lock... [2025-02-20 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:35:05 [end_date_ymd] => 2025-02-20 02:35:05 [RateCDR] => 1 ) [2025-02-20 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:35:05' and `end` < '2025-02-20 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:35:16] Production.INFO: count ==313 [2025-02-20 02:35:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:35:05 - End Time 2025-02-20 02:35:05 [2025-02-20 02:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514710', 'tblTempUsageDetail_20' ) start [2025-02-20 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514710', 'tblTempUsageDetail_20' ) end [2025-02-20 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514710', 'tblTempVendorCDR_20' ) start [2025-02-20 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514710', 'tblTempVendorCDR_20' ) end [2025-02-20 02:35:16] Production.INFO: ProcessCDR(1,14514710,1,1,2) [2025-02-20 02:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514710', 'tblTempUsageDetail_20' ) start [2025-02-20 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514710', 'tblTempUsageDetail_20' ) end [2025-02-20 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:35:20] Production.INFO: ==24775== Releasing lock... [2025-02-20 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:35:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:36:06 [end_date_ymd] => 2025-02-20 02:36:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:36:06' and `end` < '2025-02-20 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-02-20 02:36:18] Production.INFO: count ==313 [2025-02-20 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:36:06 - End Time 2025-02-20 02:36:06 [2025-02-20 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514715', 'tblTempUsageDetail_20' ) start [2025-02-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514715', 'tblTempUsageDetail_20' ) end [2025-02-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514715', 'tblTempVendorCDR_20' ) start [2025-02-20 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514715', 'tblTempVendorCDR_20' ) end [2025-02-20 02:36:18] Production.INFO: ProcessCDR(1,14514715,1,1,2) [2025-02-20 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514715', 'tblTempUsageDetail_20' ) start [2025-02-20 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514715', 'tblTempUsageDetail_20' ) end [2025-02-20 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:36:21] Production.INFO: ==24853== Releasing lock... [2025-02-20 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:37:04 [end_date_ymd] => 2025-02-20 02:37:04 [RateCDR] => 1 ) [2025-02-20 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:37:04' and `end` < '2025-02-20 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:37:16] Production.INFO: count ==313 [2025-02-20 02:37:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:37:04 - End Time 2025-02-20 02:37:04 [2025-02-20 02:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514720', 'tblTempUsageDetail_20' ) start [2025-02-20 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514720', 'tblTempUsageDetail_20' ) end [2025-02-20 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514720', 'tblTempVendorCDR_20' ) start [2025-02-20 02:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514720', 'tblTempVendorCDR_20' ) end [2025-02-20 02:37:16] Production.INFO: ProcessCDR(1,14514720,1,1,2) [2025-02-20 02:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514720', 'tblTempUsageDetail_20' ) start [2025-02-20 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514720', 'tblTempUsageDetail_20' ) end [2025-02-20 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:37:20] Production.INFO: ==24931== Releasing lock... [2025-02-20 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:37:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:38:05 [end_date_ymd] => 2025-02-20 02:38:05 [RateCDR] => 1 ) [2025-02-20 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:38:05' and `end` < '2025-02-20 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:38:17] Production.INFO: count ==313 [2025-02-20 02:38:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:38:05 - End Time 2025-02-20 02:38:05 [2025-02-20 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514725', 'tblTempUsageDetail_20' ) start [2025-02-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514725', 'tblTempUsageDetail_20' ) end [2025-02-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514725', 'tblTempVendorCDR_20' ) start [2025-02-20 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514725', 'tblTempVendorCDR_20' ) end [2025-02-20 02:38:17] Production.INFO: ProcessCDR(1,14514725,1,1,2) [2025-02-20 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514725', 'tblTempUsageDetail_20' ) start [2025-02-20 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514725', 'tblTempUsageDetail_20' ) end [2025-02-20 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:38:20] Production.INFO: ==25011== Releasing lock... [2025-02-20 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:38:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:39:05 [end_date_ymd] => 2025-02-20 02:39:05 [RateCDR] => 1 ) [2025-02-20 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:39:05' and `end` < '2025-02-20 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:39:17] Production.INFO: count ==313 [2025-02-20 02:39:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:39:05 - End Time 2025-02-20 02:39:05 [2025-02-20 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514730', 'tblTempUsageDetail_20' ) start [2025-02-20 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514730', 'tblTempUsageDetail_20' ) end [2025-02-20 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514730', 'tblTempVendorCDR_20' ) start [2025-02-20 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514730', 'tblTempVendorCDR_20' ) end [2025-02-20 02:39:17] Production.INFO: ProcessCDR(1,14514730,1,1,2) [2025-02-20 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514730', 'tblTempUsageDetail_20' ) start [2025-02-20 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514730', 'tblTempUsageDetail_20' ) end [2025-02-20 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:39:20] Production.INFO: ==25091== Releasing lock... [2025-02-20 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:39:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:40:06 [end_date_ymd] => 2025-02-20 02:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:40:06' and `end` < '2025-02-20 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-02-20 02:40:18] Production.INFO: count ==315 [2025-02-20 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:40:06 - End Time 2025-02-20 02:40:06 [2025-02-20 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514734', 'tblTempUsageDetail_20' ) start [2025-02-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514734', 'tblTempUsageDetail_20' ) end [2025-02-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514734', 'tblTempVendorCDR_20' ) start [2025-02-20 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514734', 'tblTempVendorCDR_20' ) end [2025-02-20 02:40:18] Production.INFO: ProcessCDR(1,14514734,1,1,2) [2025-02-20 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514734', 'tblTempUsageDetail_20' ) start [2025-02-20 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514734', 'tblTempUsageDetail_20' ) end [2025-02-20 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:40:21] Production.INFO: ==25163== Releasing lock... [2025-02-20 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:41:05 [end_date_ymd] => 2025-02-20 02:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:41:05' and `end` < '2025-02-20 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-02-20 02:41:16] Production.INFO: count ==306 [2025-02-20 02:41:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:41:05 - End Time 2025-02-20 02:41:05 [2025-02-20 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514741', 'tblTempUsageDetail_20' ) start [2025-02-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514741', 'tblTempUsageDetail_20' ) end [2025-02-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514741', 'tblTempVendorCDR_20' ) start [2025-02-20 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514741', 'tblTempVendorCDR_20' ) end [2025-02-20 02:41:17] Production.INFO: ProcessCDR(1,14514741,1,1,2) [2025-02-20 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514741', 'tblTempUsageDetail_20' ) start [2025-02-20 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514741', 'tblTempUsageDetail_20' ) end [2025-02-20 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:41:20] Production.INFO: ==25245== Releasing lock... [2025-02-20 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:41:20] Production.INFO: 31 MB #Memory Used# [2025-02-20 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:42:06 [end_date_ymd] => 2025-02-20 02:42:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:42:06' and `end` < '2025-02-20 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-02-20 02:42:18] Production.INFO: count ==304 [2025-02-20 02:42:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:42:06 - End Time 2025-02-20 02:42:06 [2025-02-20 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514746', 'tblTempUsageDetail_20' ) start [2025-02-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514746', 'tblTempUsageDetail_20' ) end [2025-02-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514746', 'tblTempVendorCDR_20' ) start [2025-02-20 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514746', 'tblTempVendorCDR_20' ) end [2025-02-20 02:42:18] Production.INFO: ProcessCDR(1,14514746,1,1,2) [2025-02-20 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514746', 'tblTempUsageDetail_20' ) start [2025-02-20 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514746', 'tblTempUsageDetail_20' ) end [2025-02-20 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:42:21] Production.INFO: ==25359== Releasing lock... [2025-02-20 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:43:05 [end_date_ymd] => 2025-02-20 02:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:43:05' and `end` < '2025-02-20 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-02-20 02:43:16] Production.INFO: count ==304 [2025-02-20 02:43:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:43:05 - End Time 2025-02-20 02:43:05 [2025-02-20 02:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514751', 'tblTempUsageDetail_20' ) start [2025-02-20 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514751', 'tblTempUsageDetail_20' ) end [2025-02-20 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514751', 'tblTempVendorCDR_20' ) start [2025-02-20 02:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514751', 'tblTempVendorCDR_20' ) end [2025-02-20 02:43:16] Production.INFO: ProcessCDR(1,14514751,1,1,2) [2025-02-20 02:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514751', 'tblTempUsageDetail_20' ) start [2025-02-20 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514751', 'tblTempUsageDetail_20' ) end [2025-02-20 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:43:20] Production.INFO: ==25437== Releasing lock... [2025-02-20 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:44:05 [end_date_ymd] => 2025-02-20 02:44:05 [RateCDR] => 1 ) [2025-02-20 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:44:05' and `end` < '2025-02-20 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:44:17] Production.INFO: count ==302 [2025-02-20 02:44:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:44:05 - End Time 2025-02-20 02:44:05 [2025-02-20 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514756', 'tblTempUsageDetail_20' ) start [2025-02-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514756', 'tblTempUsageDetail_20' ) end [2025-02-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514756', 'tblTempVendorCDR_20' ) start [2025-02-20 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514756', 'tblTempVendorCDR_20' ) end [2025-02-20 02:44:17] Production.INFO: ProcessCDR(1,14514756,1,1,2) [2025-02-20 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514756', 'tblTempUsageDetail_20' ) start [2025-02-20 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514756', 'tblTempUsageDetail_20' ) end [2025-02-20 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:44:20] Production.INFO: ==25518== Releasing lock... [2025-02-20 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:45:05 [end_date_ymd] => 2025-02-20 02:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:45:05' and `end` < '2025-02-20 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-02-20 02:45:16] Production.INFO: count ==302 [2025-02-20 02:45:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:45:05 - End Time 2025-02-20 02:45:05 [2025-02-20 02:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514761', 'tblTempUsageDetail_20' ) start [2025-02-20 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514761', 'tblTempUsageDetail_20' ) end [2025-02-20 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514761', 'tblTempVendorCDR_20' ) start [2025-02-20 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514761', 'tblTempVendorCDR_20' ) end [2025-02-20 02:45:16] Production.INFO: ProcessCDR(1,14514761,1,1,2) [2025-02-20 02:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514761', 'tblTempUsageDetail_20' ) start [2025-02-20 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514761', 'tblTempUsageDetail_20' ) end [2025-02-20 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:45:20] Production.INFO: ==25642== Releasing lock... [2025-02-20 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:45:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:46:05 [end_date_ymd] => 2025-02-20 02:46:05 [RateCDR] => 1 ) [2025-02-20 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:46:05' and `end` < '2025-02-20 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:46:17] Production.INFO: count ==298 [2025-02-20 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:46:05 - End Time 2025-02-20 02:46:05 [2025-02-20 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514766', 'tblTempUsageDetail_20' ) start [2025-02-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514766', 'tblTempUsageDetail_20' ) end [2025-02-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514766', 'tblTempVendorCDR_20' ) start [2025-02-20 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514766', 'tblTempVendorCDR_20' ) end [2025-02-20 02:46:17] Production.INFO: ProcessCDR(1,14514766,1,1,2) [2025-02-20 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514766', 'tblTempUsageDetail_20' ) start [2025-02-20 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514766', 'tblTempUsageDetail_20' ) end [2025-02-20 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:46:20] Production.INFO: ==25789== Releasing lock... [2025-02-20 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:46:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:47:05 [end_date_ymd] => 2025-02-20 02:47:05 [RateCDR] => 1 ) [2025-02-20 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:47:05' and `end` < '2025-02-20 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:47:16] Production.INFO: count ==293 [2025-02-20 02:47:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:47:05 - End Time 2025-02-20 02:47:05 [2025-02-20 02:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514771', 'tblTempUsageDetail_20' ) start [2025-02-20 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514771', 'tblTempUsageDetail_20' ) end [2025-02-20 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514771', 'tblTempVendorCDR_20' ) start [2025-02-20 02:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514771', 'tblTempVendorCDR_20' ) end [2025-02-20 02:47:16] Production.INFO: ProcessCDR(1,14514771,1,1,2) [2025-02-20 02:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514771', 'tblTempUsageDetail_20' ) start [2025-02-20 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514771', 'tblTempUsageDetail_20' ) end [2025-02-20 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:47:20] Production.INFO: ==25915== Releasing lock... [2025-02-20 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:47:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:48:06 [end_date_ymd] => 2025-02-20 02:48:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:48:06' and `end` < '2025-02-20 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-02-20 02:48:17] Production.INFO: count ==292 [2025-02-20 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:48:06 - End Time 2025-02-20 02:48:06 [2025-02-20 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514776', 'tblTempUsageDetail_20' ) start [2025-02-20 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514776', 'tblTempUsageDetail_20' ) end [2025-02-20 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514776', 'tblTempVendorCDR_20' ) start [2025-02-20 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514776', 'tblTempVendorCDR_20' ) end [2025-02-20 02:48:17] Production.INFO: ProcessCDR(1,14514776,1,1,2) [2025-02-20 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514776', 'tblTempUsageDetail_20' ) start [2025-02-20 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514776', 'tblTempUsageDetail_20' ) end [2025-02-20 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:48:21] Production.INFO: ==26018== Releasing lock... [2025-02-20 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:49:05 [end_date_ymd] => 2025-02-20 02:49:05 [RateCDR] => 1 ) [2025-02-20 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:49:05' and `end` < '2025-02-20 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:49:17] Production.INFO: count ==291 [2025-02-20 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:49:05 - End Time 2025-02-20 02:49:05 [2025-02-20 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514781', 'tblTempUsageDetail_20' ) start [2025-02-20 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514781', 'tblTempUsageDetail_20' ) end [2025-02-20 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514781', 'tblTempVendorCDR_20' ) start [2025-02-20 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514781', 'tblTempVendorCDR_20' ) end [2025-02-20 02:49:17] Production.INFO: ProcessCDR(1,14514781,1,1,2) [2025-02-20 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514781', 'tblTempUsageDetail_20' ) start [2025-02-20 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514781', 'tblTempUsageDetail_20' ) end [2025-02-20 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:49:20] Production.INFO: ==26124== Releasing lock... [2025-02-20 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:49:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:50:06 [end_date_ymd] => 2025-02-20 02:50:06 [RateCDR] => 1 ) [2025-02-20 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:50:06' and `end` < '2025-02-20 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:50:18] Production.INFO: count ==291 [2025-02-20 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:50:06 - End Time 2025-02-20 02:50:06 [2025-02-20 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514787', 'tblTempUsageDetail_20' ) start [2025-02-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514787', 'tblTempUsageDetail_20' ) end [2025-02-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514787', 'tblTempVendorCDR_20' ) start [2025-02-20 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514787', 'tblTempVendorCDR_20' ) end [2025-02-20 02:50:18] Production.INFO: ProcessCDR(1,14514787,1,1,2) [2025-02-20 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514787', 'tblTempUsageDetail_20' ) start [2025-02-20 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514787', 'tblTempUsageDetail_20' ) end [2025-02-20 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:50:21] Production.INFO: ==26228== Releasing lock... [2025-02-20 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:51:05 [end_date_ymd] => 2025-02-20 02:51:05 [RateCDR] => 1 ) [2025-02-20 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:51:05' and `end` < '2025-02-20 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:51:17] Production.INFO: count ==291 [2025-02-20 02:51:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:51:05 - End Time 2025-02-20 02:51:05 [2025-02-20 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514792', 'tblTempUsageDetail_20' ) start [2025-02-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514792', 'tblTempUsageDetail_20' ) end [2025-02-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514792', 'tblTempVendorCDR_20' ) start [2025-02-20 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514792', 'tblTempVendorCDR_20' ) end [2025-02-20 02:51:17] Production.INFO: ProcessCDR(1,14514792,1,1,2) [2025-02-20 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514792', 'tblTempUsageDetail_20' ) start [2025-02-20 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514792', 'tblTempUsageDetail_20' ) end [2025-02-20 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:51:20] Production.INFO: ==26335== Releasing lock... [2025-02-20 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:51:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:52:05 [end_date_ymd] => 2025-02-20 02:52:05 [RateCDR] => 1 ) [2025-02-20 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:52:05' and `end` < '2025-02-20 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:52:17] Production.INFO: count ==290 [2025-02-20 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:52:05 - End Time 2025-02-20 02:52:05 [2025-02-20 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514797', 'tblTempUsageDetail_20' ) start [2025-02-20 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514797', 'tblTempUsageDetail_20' ) end [2025-02-20 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514797', 'tblTempVendorCDR_20' ) start [2025-02-20 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514797', 'tblTempVendorCDR_20' ) end [2025-02-20 02:52:17] Production.INFO: ProcessCDR(1,14514797,1,1,2) [2025-02-20 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514797', 'tblTempUsageDetail_20' ) start [2025-02-20 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514797', 'tblTempUsageDetail_20' ) end [2025-02-20 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:52:20] Production.INFO: ==26436== Releasing lock... [2025-02-20 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:52:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:53:06 [end_date_ymd] => 2025-02-20 02:53:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:53:06' and `end` < '2025-02-20 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-02-20 02:53:18] Production.INFO: count ==289 [2025-02-20 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:53:06 - End Time 2025-02-20 02:53:06 [2025-02-20 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514802', 'tblTempUsageDetail_20' ) start [2025-02-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514802', 'tblTempUsageDetail_20' ) end [2025-02-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514802', 'tblTempVendorCDR_20' ) start [2025-02-20 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514802', 'tblTempVendorCDR_20' ) end [2025-02-20 02:53:18] Production.INFO: ProcessCDR(1,14514802,1,1,2) [2025-02-20 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514802', 'tblTempUsageDetail_20' ) start [2025-02-20 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514802', 'tblTempUsageDetail_20' ) end [2025-02-20 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:53:21] Production.INFO: ==26538== Releasing lock... [2025-02-20 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:54:04 [end_date_ymd] => 2025-02-20 02:54:04 [RateCDR] => 1 ) [2025-02-20 02:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:54:04' and `end` < '2025-02-20 02:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:54:16] Production.INFO: count ==286 [2025-02-20 02:54:16] Production.ERROR: pbx CDR StartTime 2025-02-19 23:54:04 - End Time 2025-02-20 02:54:04 [2025-02-20 02:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514807', 'tblTempUsageDetail_20' ) start [2025-02-20 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514807', 'tblTempUsageDetail_20' ) end [2025-02-20 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514807', 'tblTempVendorCDR_20' ) start [2025-02-20 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514807', 'tblTempVendorCDR_20' ) end [2025-02-20 02:54:16] Production.INFO: ProcessCDR(1,14514807,1,1,2) [2025-02-20 02:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514807', 'tblTempUsageDetail_20' ) start [2025-02-20 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514807', 'tblTempUsageDetail_20' ) end [2025-02-20 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:54:20] Production.INFO: ==26644== Releasing lock... [2025-02-20 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:54:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:55:05 [end_date_ymd] => 2025-02-20 02:55:05 [RateCDR] => 1 ) [2025-02-20 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:55:05' and `end` < '2025-02-20 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:55:17] Production.INFO: count ==286 [2025-02-20 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:55:05 - End Time 2025-02-20 02:55:05 [2025-02-20 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514812', 'tblTempUsageDetail_20' ) start [2025-02-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514812', 'tblTempUsageDetail_20' ) end [2025-02-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514812', 'tblTempVendorCDR_20' ) start [2025-02-20 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514812', 'tblTempVendorCDR_20' ) end [2025-02-20 02:55:17] Production.INFO: ProcessCDR(1,14514812,1,1,2) [2025-02-20 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514812', 'tblTempUsageDetail_20' ) start [2025-02-20 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514812', 'tblTempUsageDetail_20' ) end [2025-02-20 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:55:21] Production.INFO: ==26740== Releasing lock... [2025-02-20 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:56:05 [end_date_ymd] => 2025-02-20 02:56:05 [RateCDR] => 1 ) [2025-02-20 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-19 23:56:05' and `end` < '2025-02-20 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 02:56:17] Production.INFO: count ==286 [2025-02-20 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:56:05 - End Time 2025-02-20 02:56:05 [2025-02-20 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514817', 'tblTempUsageDetail_20' ) start [2025-02-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514817', 'tblTempUsageDetail_20' ) end [2025-02-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514817', 'tblTempVendorCDR_20' ) start [2025-02-20 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514817', 'tblTempVendorCDR_20' ) end [2025-02-20 02:56:17] Production.INFO: ProcessCDR(1,14514817,1,1,2) [2025-02-20 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514817', 'tblTempUsageDetail_20' ) start [2025-02-20 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514817', 'tblTempUsageDetail_20' ) end [2025-02-20 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:56:21] Production.INFO: ==26838== Releasing lock... [2025-02-20 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:57:06 [end_date_ymd] => 2025-02-20 02:57:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:57:06' and `end` < '2025-02-20 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-02-20 02:57:18] Production.INFO: count ==285 [2025-02-20 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:57:06 - End Time 2025-02-20 02:57:06 [2025-02-20 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514822', 'tblTempUsageDetail_20' ) start [2025-02-20 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514822', 'tblTempUsageDetail_20' ) end [2025-02-20 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514822', 'tblTempVendorCDR_20' ) start [2025-02-20 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514822', 'tblTempVendorCDR_20' ) end [2025-02-20 02:57:18] Production.INFO: ProcessCDR(1,14514822,1,1,2) [2025-02-20 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514822', 'tblTempUsageDetail_20' ) start [2025-02-20 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514822', 'tblTempUsageDetail_20' ) end [2025-02-20 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:57:21] Production.INFO: ==26973== Releasing lock... [2025-02-20 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:58:05 [end_date_ymd] => 2025-02-20 02:58:05 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:58:05' and `end` < '2025-02-20 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-02-20 02:58:17] Production.INFO: count ==285 [2025-02-20 02:58:17] Production.ERROR: pbx CDR StartTime 2025-02-19 23:58:05 - End Time 2025-02-20 02:58:05 [2025-02-20 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514827', 'tblTempUsageDetail_20' ) start [2025-02-20 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514827', 'tblTempUsageDetail_20' ) end [2025-02-20 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514827', 'tblTempVendorCDR_20' ) start [2025-02-20 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514827', 'tblTempVendorCDR_20' ) end [2025-02-20 02:58:17] Production.INFO: ProcessCDR(1,14514827,1,1,2) [2025-02-20 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514827', 'tblTempUsageDetail_20' ) start [2025-02-20 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514827', 'tblTempUsageDetail_20' ) end [2025-02-20 02:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:58:20] Production.INFO: ==27083== Releasing lock... [2025-02-20 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:58:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-19 23:59:06 [end_date_ymd] => 2025-02-20 02:59:06 [RateCDR] => 1 ) [2025-02-20 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-02-19 23:59:06' and `end` < '2025-02-20 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-02-20 02:59:18] Production.INFO: count ==284 [2025-02-20 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-19 23:59:06 - End Time 2025-02-20 02:59:06 [2025-02-20 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514832', 'tblTempUsageDetail_20' ) start [2025-02-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514832', 'tblTempUsageDetail_20' ) end [2025-02-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514832', 'tblTempVendorCDR_20' ) start [2025-02-20 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514832', 'tblTempVendorCDR_20' ) end [2025-02-20 02:59:18] Production.INFO: ProcessCDR(1,14514832,1,1,2) [2025-02-20 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514832', 'tblTempUsageDetail_20' ) start [2025-02-20 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514832', 'tblTempUsageDetail_20' ) end [2025-02-20 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 02:59:21] Production.INFO: ==27188== Releasing lock... [2025-02-20 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 02:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:00:06 [end_date_ymd] => 2025-02-20 03:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:00:06' and `end` < '2025-02-20 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-02-20 03:00:18] Production.INFO: count ==284 [2025-02-20 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:00:06 - End Time 2025-02-20 03:00:06 [2025-02-20 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514838', 'tblTempUsageDetail_20' ) start [2025-02-20 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514838', 'tblTempUsageDetail_20' ) end [2025-02-20 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514838', 'tblTempVendorCDR_20' ) start [2025-02-20 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514838', 'tblTempVendorCDR_20' ) end [2025-02-20 03:00:18] Production.INFO: ProcessCDR(1,14514838,1,1,2) [2025-02-20 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514838', 'tblTempUsageDetail_20' ) start [2025-02-20 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514838', 'tblTempUsageDetail_20' ) end [2025-02-20 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:00:21] Production.INFO: ==27296== Releasing lock... [2025-02-20 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:01:06 [end_date_ymd] => 2025-02-20 03:01:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:01:06' and `end` < '2025-02-20 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-02-20 03:01:18] Production.INFO: count ==284 [2025-02-20 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:01:06 - End Time 2025-02-20 03:01:06 [2025-02-20 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514843', 'tblTempUsageDetail_20' ) start [2025-02-20 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514843', 'tblTempUsageDetail_20' ) end [2025-02-20 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514843', 'tblTempVendorCDR_20' ) start [2025-02-20 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514843', 'tblTempVendorCDR_20' ) end [2025-02-20 03:01:18] Production.INFO: ProcessCDR(1,14514843,1,1,2) [2025-02-20 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514843', 'tblTempUsageDetail_20' ) start [2025-02-20 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514843', 'tblTempUsageDetail_20' ) end [2025-02-20 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:01:21] Production.INFO: ==27409== Releasing lock... [2025-02-20 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:02:05 [end_date_ymd] => 2025-02-20 03:02:05 [RateCDR] => 1 ) [2025-02-20 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:02:05' and `end` < '2025-02-20 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-02-20 03:02:17] Production.INFO: count ==284 [2025-02-20 03:02:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:02:05 - End Time 2025-02-20 03:02:05 [2025-02-20 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514848', 'tblTempUsageDetail_20' ) start [2025-02-20 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514848', 'tblTempUsageDetail_20' ) end [2025-02-20 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514848', 'tblTempVendorCDR_20' ) start [2025-02-20 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514848', 'tblTempVendorCDR_20' ) end [2025-02-20 03:02:17] Production.INFO: ProcessCDR(1,14514848,1,1,2) [2025-02-20 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514848', 'tblTempUsageDetail_20' ) start [2025-02-20 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514848', 'tblTempUsageDetail_20' ) end [2025-02-20 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:02:20] Production.INFO: ==27588== Releasing lock... [2025-02-20 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:02:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:03:06 [end_date_ymd] => 2025-02-20 03:03:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:03:06' and `end` < '2025-02-20 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-02-20 03:03:17] Production.INFO: count ==284 [2025-02-20 03:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:03:06 - End Time 2025-02-20 03:03:06 [2025-02-20 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514853', 'tblTempUsageDetail_20' ) start [2025-02-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514853', 'tblTempUsageDetail_20' ) end [2025-02-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514853', 'tblTempVendorCDR_20' ) start [2025-02-20 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514853', 'tblTempVendorCDR_20' ) end [2025-02-20 03:03:17] Production.INFO: ProcessCDR(1,14514853,1,1,2) [2025-02-20 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514853', 'tblTempUsageDetail_20' ) start [2025-02-20 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514853', 'tblTempUsageDetail_20' ) end [2025-02-20 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:03:21] Production.INFO: ==27677== Releasing lock... [2025-02-20 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:04:05 [end_date_ymd] => 2025-02-20 03:04:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:04:05' and `end` < '2025-02-20 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-02-20 03:04:17] Production.INFO: count ==284 [2025-02-20 03:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:04:05 - End Time 2025-02-20 03:04:05 [2025-02-20 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514858', 'tblTempUsageDetail_20' ) start [2025-02-20 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514858', 'tblTempUsageDetail_20' ) end [2025-02-20 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514858', 'tblTempVendorCDR_20' ) start [2025-02-20 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514858', 'tblTempVendorCDR_20' ) end [2025-02-20 03:04:17] Production.INFO: ProcessCDR(1,14514858,1,1,2) [2025-02-20 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514858', 'tblTempUsageDetail_20' ) start [2025-02-20 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514858', 'tblTempUsageDetail_20' ) end [2025-02-20 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:04:20] Production.INFO: ==27761== Releasing lock... [2025-02-20 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:04:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:05:06 [end_date_ymd] => 2025-02-20 03:05:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:05:06' and `end` < '2025-02-20 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-02-20 03:05:17] Production.INFO: count ==281 [2025-02-20 03:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:05:06 - End Time 2025-02-20 03:05:06 [2025-02-20 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514863', 'tblTempUsageDetail_20' ) start [2025-02-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514863', 'tblTempUsageDetail_20' ) end [2025-02-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514863', 'tblTempVendorCDR_20' ) start [2025-02-20 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514863', 'tblTempVendorCDR_20' ) end [2025-02-20 03:05:17] Production.INFO: ProcessCDR(1,14514863,1,1,2) [2025-02-20 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514863', 'tblTempUsageDetail_20' ) start [2025-02-20 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514863', 'tblTempUsageDetail_20' ) end [2025-02-20 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:05:21] Production.INFO: ==27841== Releasing lock... [2025-02-20 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:06:04 [end_date_ymd] => 2025-02-20 03:06:04 [RateCDR] => 1 ) [2025-02-20 03:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:06:04' and `end` < '2025-02-20 03:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:06:16] Production.INFO: count ==281 [2025-02-20 03:06:16] Production.ERROR: pbx CDR StartTime 2025-02-20 00:06:04 - End Time 2025-02-20 03:06:04 [2025-02-20 03:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514868', 'tblTempUsageDetail_20' ) start [2025-02-20 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514868', 'tblTempUsageDetail_20' ) end [2025-02-20 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514868', 'tblTempVendorCDR_20' ) start [2025-02-20 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514868', 'tblTempVendorCDR_20' ) end [2025-02-20 03:06:16] Production.INFO: ProcessCDR(1,14514868,1,1,2) [2025-02-20 03:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514868', 'tblTempUsageDetail_20' ) start [2025-02-20 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514868', 'tblTempUsageDetail_20' ) end [2025-02-20 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:06:20] Production.INFO: ==27988== Releasing lock... [2025-02-20 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:06:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:07:05 [end_date_ymd] => 2025-02-20 03:07:05 [RateCDR] => 1 ) [2025-02-20 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:07:05' and `end` < '2025-02-20 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:07:17] Production.INFO: count ==281 [2025-02-20 03:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:07:05 - End Time 2025-02-20 03:07:05 [2025-02-20 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514873', 'tblTempUsageDetail_20' ) start [2025-02-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514873', 'tblTempUsageDetail_20' ) end [2025-02-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514873', 'tblTempVendorCDR_20' ) start [2025-02-20 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514873', 'tblTempVendorCDR_20' ) end [2025-02-20 03:07:17] Production.INFO: ProcessCDR(1,14514873,1,1,2) [2025-02-20 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514873', 'tblTempUsageDetail_20' ) start [2025-02-20 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514873', 'tblTempUsageDetail_20' ) end [2025-02-20 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:07:20] Production.INFO: ==28064== Releasing lock... [2025-02-20 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:07:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:08:05 [end_date_ymd] => 2025-02-20 03:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:08:05' and `end` < '2025-02-20 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-02-20 03:08:17] Production.INFO: count ==281 [2025-02-20 03:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:08:05 - End Time 2025-02-20 03:08:05 [2025-02-20 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514878', 'tblTempUsageDetail_20' ) start [2025-02-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514878', 'tblTempUsageDetail_20' ) end [2025-02-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514878', 'tblTempVendorCDR_20' ) start [2025-02-20 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514878', 'tblTempVendorCDR_20' ) end [2025-02-20 03:08:17] Production.INFO: ProcessCDR(1,14514878,1,1,2) [2025-02-20 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514878', 'tblTempUsageDetail_20' ) start [2025-02-20 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514878', 'tblTempUsageDetail_20' ) end [2025-02-20 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:08:20] Production.INFO: ==28144== Releasing lock... [2025-02-20 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:08:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:09:05 [end_date_ymd] => 2025-02-20 03:09:05 [RateCDR] => 1 ) [2025-02-20 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:09:05' and `end` < '2025-02-20 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:09:17] Production.INFO: count ==281 [2025-02-20 03:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:09:05 - End Time 2025-02-20 03:09:05 [2025-02-20 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514883', 'tblTempUsageDetail_20' ) start [2025-02-20 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514883', 'tblTempUsageDetail_20' ) end [2025-02-20 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514883', 'tblTempVendorCDR_20' ) start [2025-02-20 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514883', 'tblTempVendorCDR_20' ) end [2025-02-20 03:09:17] Production.INFO: ProcessCDR(1,14514883,1,1,2) [2025-02-20 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514883', 'tblTempUsageDetail_20' ) start [2025-02-20 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514883', 'tblTempUsageDetail_20' ) end [2025-02-20 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:09:20] Production.INFO: ==28295== Releasing lock... [2025-02-20 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:09:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:10:05 [end_date_ymd] => 2025-02-20 03:10:05 [RateCDR] => 1 ) [2025-02-20 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:10:05' and `end` < '2025-02-20 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:10:17] Production.INFO: count ==275 [2025-02-20 03:10:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:10:05 - End Time 2025-02-20 03:10:05 [2025-02-20 03:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514889', 'tblTempUsageDetail_20' ) start [2025-02-20 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514889', 'tblTempUsageDetail_20' ) end [2025-02-20 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514889', 'tblTempVendorCDR_20' ) start [2025-02-20 03:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514889', 'tblTempVendorCDR_20' ) end [2025-02-20 03:10:17] Production.INFO: ProcessCDR(1,14514889,1,1,2) [2025-02-20 03:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514889', 'tblTempUsageDetail_20' ) start [2025-02-20 03:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514889', 'tblTempUsageDetail_20' ) end [2025-02-20 03:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:10:20] Production.INFO: ==28375== Releasing lock... [2025-02-20 03:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:10:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:11:05 [end_date_ymd] => 2025-02-20 03:11:05 [RateCDR] => 1 ) [2025-02-20 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:11:05' and `end` < '2025-02-20 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:11:17] Production.INFO: count ==247 [2025-02-20 03:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:11:05 - End Time 2025-02-20 03:11:05 [2025-02-20 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514894', 'tblTempUsageDetail_20' ) start [2025-02-20 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514894', 'tblTempUsageDetail_20' ) end [2025-02-20 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514894', 'tblTempVendorCDR_20' ) start [2025-02-20 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514894', 'tblTempVendorCDR_20' ) end [2025-02-20 03:11:17] Production.INFO: ProcessCDR(1,14514894,1,1,2) [2025-02-20 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514894', 'tblTempUsageDetail_20' ) start [2025-02-20 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514894', 'tblTempUsageDetail_20' ) end [2025-02-20 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:11:21] Production.INFO: ==28456== Releasing lock... [2025-02-20 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:12:06 [end_date_ymd] => 2025-02-20 03:12:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:12:06' and `end` < '2025-02-20 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-02-20 03:12:18] Production.INFO: count ==246 [2025-02-20 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:12:06 - End Time 2025-02-20 03:12:06 [2025-02-20 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514899', 'tblTempUsageDetail_20' ) start [2025-02-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514899', 'tblTempUsageDetail_20' ) end [2025-02-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514899', 'tblTempVendorCDR_20' ) start [2025-02-20 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514899', 'tblTempVendorCDR_20' ) end [2025-02-20 03:12:18] Production.INFO: ProcessCDR(1,14514899,1,1,2) [2025-02-20 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514899', 'tblTempUsageDetail_20' ) start [2025-02-20 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514899', 'tblTempUsageDetail_20' ) end [2025-02-20 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:12:21] Production.INFO: ==28554== Releasing lock... [2025-02-20 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:13:05 [end_date_ymd] => 2025-02-20 03:13:05 [RateCDR] => 1 ) [2025-02-20 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:13:05' and `end` < '2025-02-20 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:13:17] Production.INFO: count ==246 [2025-02-20 03:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:13:05 - End Time 2025-02-20 03:13:05 [2025-02-20 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514904', 'tblTempUsageDetail_20' ) start [2025-02-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514904', 'tblTempUsageDetail_20' ) end [2025-02-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514904', 'tblTempVendorCDR_20' ) start [2025-02-20 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514904', 'tblTempVendorCDR_20' ) end [2025-02-20 03:13:17] Production.INFO: ProcessCDR(1,14514904,1,1,2) [2025-02-20 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514904', 'tblTempUsageDetail_20' ) start [2025-02-20 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514904', 'tblTempUsageDetail_20' ) end [2025-02-20 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:13:20] Production.INFO: ==28797== Releasing lock... [2025-02-20 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:13:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:14:06 [end_date_ymd] => 2025-02-20 03:14:06 [RateCDR] => 1 ) [2025-02-20 03: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-02-20 00:14:06' and `end` < '2025-02-20 03: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-02-20 03:14:18] Production.INFO: count ==246 [2025-02-20 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:14:06 - End Time 2025-02-20 03:14:06 [2025-02-20 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514909', 'tblTempUsageDetail_20' ) start [2025-02-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514909', 'tblTempUsageDetail_20' ) end [2025-02-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514909', 'tblTempVendorCDR_20' ) start [2025-02-20 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514909', 'tblTempVendorCDR_20' ) end [2025-02-20 03:14:18] Production.INFO: ProcessCDR(1,14514909,1,1,2) [2025-02-20 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514909', 'tblTempUsageDetail_20' ) start [2025-02-20 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514909', 'tblTempUsageDetail_20' ) end [2025-02-20 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:14:21] Production.INFO: ==28890== Releasing lock... [2025-02-20 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:15:05 [end_date_ymd] => 2025-02-20 03:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:15:05' and `end` < '2025-02-20 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-02-20 03:15:17] Production.INFO: count ==246 [2025-02-20 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:15:05 - End Time 2025-02-20 03:15:05 [2025-02-20 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514914', 'tblTempUsageDetail_20' ) start [2025-02-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514914', 'tblTempUsageDetail_20' ) end [2025-02-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514914', 'tblTempVendorCDR_20' ) start [2025-02-20 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514914', 'tblTempVendorCDR_20' ) end [2025-02-20 03:15:17] Production.INFO: ProcessCDR(1,14514914,1,1,2) [2025-02-20 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514914', 'tblTempUsageDetail_20' ) start [2025-02-20 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514914', 'tblTempUsageDetail_20' ) end [2025-02-20 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:15:20] Production.INFO: ==28979== Releasing lock... [2025-02-20 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:16:06 [end_date_ymd] => 2025-02-20 03:16:06 [RateCDR] => 1 ) [2025-02-20 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:16:06' and `end` < '2025-02-20 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:16:18] Production.INFO: count ==246 [2025-02-20 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:16:06 - End Time 2025-02-20 03:16:06 [2025-02-20 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514919', 'tblTempUsageDetail_20' ) start [2025-02-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514919', 'tblTempUsageDetail_20' ) end [2025-02-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514919', 'tblTempVendorCDR_20' ) start [2025-02-20 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514919', 'tblTempVendorCDR_20' ) end [2025-02-20 03:16:18] Production.INFO: ProcessCDR(1,14514919,1,1,2) [2025-02-20 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514919', 'tblTempUsageDetail_20' ) start [2025-02-20 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514919', 'tblTempUsageDetail_20' ) end [2025-02-20 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:16:21] Production.INFO: ==29084== Releasing lock... [2025-02-20 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:17:05 [end_date_ymd] => 2025-02-20 03:17:05 [RateCDR] => 1 ) [2025-02-20 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:17:05' and `end` < '2025-02-20 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:17:17] Production.INFO: count ==246 [2025-02-20 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:17:05 - End Time 2025-02-20 03:17:05 [2025-02-20 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514924', 'tblTempUsageDetail_20' ) start [2025-02-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514924', 'tblTempUsageDetail_20' ) end [2025-02-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514924', 'tblTempVendorCDR_20' ) start [2025-02-20 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514924', 'tblTempVendorCDR_20' ) end [2025-02-20 03:17:17] Production.INFO: ProcessCDR(1,14514924,1,1,2) [2025-02-20 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514924', 'tblTempUsageDetail_20' ) start [2025-02-20 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514924', 'tblTempUsageDetail_20' ) end [2025-02-20 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:17:20] Production.INFO: ==29234== Releasing lock... [2025-02-20 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:18:05 [end_date_ymd] => 2025-02-20 03:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:18:05' and `end` < '2025-02-20 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-02-20 03:18:17] Production.INFO: count ==246 [2025-02-20 03:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:18:05 - End Time 2025-02-20 03:18:05 [2025-02-20 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514929', 'tblTempUsageDetail_20' ) start [2025-02-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514929', 'tblTempUsageDetail_20' ) end [2025-02-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514929', 'tblTempVendorCDR_20' ) start [2025-02-20 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514929', 'tblTempVendorCDR_20' ) end [2025-02-20 03:18:17] Production.INFO: ProcessCDR(1,14514929,1,1,2) [2025-02-20 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514929', 'tblTempUsageDetail_20' ) start [2025-02-20 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514929', 'tblTempUsageDetail_20' ) end [2025-02-20 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:18:21] Production.INFO: ==29308== Releasing lock... [2025-02-20 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:19:05 [end_date_ymd] => 2025-02-20 03:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:19:05' and `end` < '2025-02-20 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-02-20 03:19:17] Production.INFO: count ==246 [2025-02-20 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:19:05 - End Time 2025-02-20 03:19:05 [2025-02-20 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514934', 'tblTempUsageDetail_20' ) start [2025-02-20 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514934', 'tblTempUsageDetail_20' ) end [2025-02-20 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514934', 'tblTempVendorCDR_20' ) start [2025-02-20 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514934', 'tblTempVendorCDR_20' ) end [2025-02-20 03:19:17] Production.INFO: ProcessCDR(1,14514934,1,1,2) [2025-02-20 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514934', 'tblTempUsageDetail_20' ) start [2025-02-20 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514934', 'tblTempUsageDetail_20' ) end [2025-02-20 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:19:20] Production.INFO: ==29380== Releasing lock... [2025-02-20 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:19:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:20:06 [end_date_ymd] => 2025-02-20 03:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:20:06' and `end` < '2025-02-20 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-02-20 03:20:17] Production.INFO: count ==235 [2025-02-20 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:20:06 - End Time 2025-02-20 03:20:06 [2025-02-20 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514940', 'tblTempUsageDetail_20' ) start [2025-02-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514940', 'tblTempUsageDetail_20' ) end [2025-02-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514940', 'tblTempVendorCDR_20' ) start [2025-02-20 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514940', 'tblTempVendorCDR_20' ) end [2025-02-20 03:20:18] Production.INFO: ProcessCDR(1,14514940,1,1,2) [2025-02-20 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514940', 'tblTempUsageDetail_20' ) start [2025-02-20 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514940', 'tblTempUsageDetail_20' ) end [2025-02-20 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:20:21] Production.INFO: ==29458== Releasing lock... [2025-02-20 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:21:05 [end_date_ymd] => 2025-02-20 03:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:21:05' and `end` < '2025-02-20 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-02-20 03:21:16] Production.INFO: count ==215 [2025-02-20 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:21:05 - End Time 2025-02-20 03:21:05 [2025-02-20 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514945', 'tblTempUsageDetail_20' ) start [2025-02-20 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514945', 'tblTempUsageDetail_20' ) end [2025-02-20 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514945', 'tblTempVendorCDR_20' ) start [2025-02-20 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514945', 'tblTempVendorCDR_20' ) end [2025-02-20 03:21:17] Production.INFO: ProcessCDR(1,14514945,1,1,2) [2025-02-20 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514945', 'tblTempUsageDetail_20' ) start [2025-02-20 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514945', 'tblTempUsageDetail_20' ) end [2025-02-20 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:21:20] Production.INFO: ==29537== Releasing lock... [2025-02-20 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:21:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:22:05 [end_date_ymd] => 2025-02-20 03:22:05 [RateCDR] => 1 ) [2025-02-20 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:22:05' and `end` < '2025-02-20 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:22:17] Production.INFO: count ==215 [2025-02-20 03:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:22:05 - End Time 2025-02-20 03:22:05 [2025-02-20 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514950', 'tblTempUsageDetail_20' ) start [2025-02-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514950', 'tblTempUsageDetail_20' ) end [2025-02-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514950', 'tblTempVendorCDR_20' ) start [2025-02-20 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514950', 'tblTempVendorCDR_20' ) end [2025-02-20 03:22:17] Production.INFO: ProcessCDR(1,14514950,1,1,2) [2025-02-20 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514950', 'tblTempUsageDetail_20' ) start [2025-02-20 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514950', 'tblTempUsageDetail_20' ) end [2025-02-20 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:22:20] Production.INFO: ==29615== Releasing lock... [2025-02-20 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:23:05 [end_date_ymd] => 2025-02-20 03:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:23:05' and `end` < '2025-02-20 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-02-20 03:23:16] Production.INFO: count ==215 [2025-02-20 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:23:05 - End Time 2025-02-20 03:23:05 [2025-02-20 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514955', 'tblTempUsageDetail_20' ) start [2025-02-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514955', 'tblTempUsageDetail_20' ) end [2025-02-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514955', 'tblTempVendorCDR_20' ) start [2025-02-20 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514955', 'tblTempVendorCDR_20' ) end [2025-02-20 03:23:17] Production.INFO: ProcessCDR(1,14514955,1,1,2) [2025-02-20 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514955', 'tblTempUsageDetail_20' ) start [2025-02-20 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514955', 'tblTempUsageDetail_20' ) end [2025-02-20 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:23:20] Production.INFO: ==29688== Releasing lock... [2025-02-20 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:24:05 [end_date_ymd] => 2025-02-20 03:24:05 [RateCDR] => 1 ) [2025-02-20 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:24:05' and `end` < '2025-02-20 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:24:17] Production.INFO: count ==215 [2025-02-20 03:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:24:05 - End Time 2025-02-20 03:24:05 [2025-02-20 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514960', 'tblTempUsageDetail_20' ) start [2025-02-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514960', 'tblTempUsageDetail_20' ) end [2025-02-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514960', 'tblTempVendorCDR_20' ) start [2025-02-20 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514960', 'tblTempVendorCDR_20' ) end [2025-02-20 03:24:17] Production.INFO: ProcessCDR(1,14514960,1,1,2) [2025-02-20 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514960', 'tblTempUsageDetail_20' ) start [2025-02-20 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514960', 'tblTempUsageDetail_20' ) end [2025-02-20 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:24:20] Production.INFO: ==29761== Releasing lock... [2025-02-20 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:24:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:25:04 [end_date_ymd] => 2025-02-20 03:25:04 [RateCDR] => 1 ) [2025-02-20 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:25:04' and `end` < '2025-02-20 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:25:16] Production.INFO: count ==215 [2025-02-20 03:25:16] Production.ERROR: pbx CDR StartTime 2025-02-20 00:25:04 - End Time 2025-02-20 03:25:04 [2025-02-20 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514965', 'tblTempUsageDetail_20' ) start [2025-02-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514965', 'tblTempUsageDetail_20' ) end [2025-02-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514965', 'tblTempVendorCDR_20' ) start [2025-02-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514965', 'tblTempVendorCDR_20' ) end [2025-02-20 03:25:16] Production.INFO: ProcessCDR(1,14514965,1,1,2) [2025-02-20 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514965', 'tblTempUsageDetail_20' ) start [2025-02-20 03:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514965', 'tblTempUsageDetail_20' ) end [2025-02-20 03:25:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:25:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:25:19] Production.INFO: ==29833== Releasing lock... [2025-02-20 03:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:25:19] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:26:05 [end_date_ymd] => 2025-02-20 03:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:26:05' and `end` < '2025-02-20 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-02-20 03:26:17] Production.INFO: count ==214 [2025-02-20 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:26:05 - End Time 2025-02-20 03:26:05 [2025-02-20 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514970', 'tblTempUsageDetail_20' ) start [2025-02-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514970', 'tblTempUsageDetail_20' ) end [2025-02-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514970', 'tblTempVendorCDR_20' ) start [2025-02-20 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514970', 'tblTempVendorCDR_20' ) end [2025-02-20 03:26:17] Production.INFO: ProcessCDR(1,14514970,1,1,2) [2025-02-20 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514970', 'tblTempUsageDetail_20' ) start [2025-02-20 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514970', 'tblTempUsageDetail_20' ) end [2025-02-20 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:26:20] Production.INFO: ==29910== Releasing lock... [2025-02-20 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:26:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:27:05 [end_date_ymd] => 2025-02-20 03:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:27:05' and `end` < '2025-02-20 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-02-20 03:27:17] Production.INFO: count ==213 [2025-02-20 03:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:27:05 - End Time 2025-02-20 03:27:05 [2025-02-20 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514975', 'tblTempUsageDetail_20' ) start [2025-02-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514975', 'tblTempUsageDetail_20' ) end [2025-02-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514975', 'tblTempVendorCDR_20' ) start [2025-02-20 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514975', 'tblTempVendorCDR_20' ) end [2025-02-20 03:27:17] Production.INFO: ProcessCDR(1,14514975,1,1,2) [2025-02-20 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514975', 'tblTempUsageDetail_20' ) start [2025-02-20 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514975', 'tblTempUsageDetail_20' ) end [2025-02-20 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:27:20] Production.INFO: ==29981== Releasing lock... [2025-02-20 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:28:05 [end_date_ymd] => 2025-02-20 03:28:05 [RateCDR] => 1 ) [2025-02-20 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:28:05' and `end` < '2025-02-20 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:28:17] Production.INFO: count ==212 [2025-02-20 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:28:05 - End Time 2025-02-20 03:28:05 [2025-02-20 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514980', 'tblTempUsageDetail_20' ) start [2025-02-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514980', 'tblTempUsageDetail_20' ) end [2025-02-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514980', 'tblTempVendorCDR_20' ) start [2025-02-20 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514980', 'tblTempVendorCDR_20' ) end [2025-02-20 03:28:17] Production.INFO: ProcessCDR(1,14514980,1,1,2) [2025-02-20 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514980', 'tblTempUsageDetail_20' ) start [2025-02-20 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514980', 'tblTempUsageDetail_20' ) end [2025-02-20 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:28:20] Production.INFO: ==30051== Releasing lock... [2025-02-20 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:29:06 [end_date_ymd] => 2025-02-20 03:29:06 [RateCDR] => 1 ) [2025-02-20 03:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:29:06' and `end` < '2025-02-20 03:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:29:17] Production.INFO: count ==212 [2025-02-20 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:29:06 - End Time 2025-02-20 03:29:06 [2025-02-20 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514985', 'tblTempUsageDetail_20' ) start [2025-02-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514985', 'tblTempUsageDetail_20' ) end [2025-02-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514985', 'tblTempVendorCDR_20' ) start [2025-02-20 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514985', 'tblTempVendorCDR_20' ) end [2025-02-20 03:29:18] Production.INFO: ProcessCDR(1,14514985,1,1,2) [2025-02-20 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514985', 'tblTempUsageDetail_20' ) start [2025-02-20 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514985', 'tblTempUsageDetail_20' ) end [2025-02-20 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:29:21] Production.INFO: ==30121== Releasing lock... [2025-02-20 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:30:06 [end_date_ymd] => 2025-02-20 03:30:06 [RateCDR] => 1 ) [2025-02-20 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:30:06' and `end` < '2025-02-20 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:30:18] Production.INFO: count ==204 [2025-02-20 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:30:06 - End Time 2025-02-20 03:30:06 [2025-02-20 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514991', 'tblTempUsageDetail_20' ) start [2025-02-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514991', 'tblTempUsageDetail_20' ) end [2025-02-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514991', 'tblTempVendorCDR_20' ) start [2025-02-20 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514991', 'tblTempVendorCDR_20' ) end [2025-02-20 03:30:18] Production.INFO: ProcessCDR(1,14514991,1,1,2) [2025-02-20 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514991', 'tblTempUsageDetail_20' ) start [2025-02-20 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514991', 'tblTempUsageDetail_20' ) end [2025-02-20 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:30:21] Production.INFO: ==30233== Releasing lock... [2025-02-20 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:30:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:31:06 [end_date_ymd] => 2025-02-20 03:31:06 [RateCDR] => 1 ) [2025-02-20 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:31:06' and `end` < '2025-02-20 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:31:18] Production.INFO: count ==202 [2025-02-20 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:31:06 - End Time 2025-02-20 03:31:06 [2025-02-20 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514996', 'tblTempUsageDetail_20' ) start [2025-02-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14514996', 'tblTempUsageDetail_20' ) end [2025-02-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514996', 'tblTempVendorCDR_20' ) start [2025-02-20 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14514996', 'tblTempVendorCDR_20' ) end [2025-02-20 03:31:18] Production.INFO: ProcessCDR(1,14514996,1,1,2) [2025-02-20 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14514996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14514996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14514996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14514996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514996', 'tblTempUsageDetail_20' ) start [2025-02-20 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14514996', 'tblTempUsageDetail_20' ) end [2025-02-20 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:31:21] Production.INFO: ==30306== Releasing lock... [2025-02-20 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:32:06 [end_date_ymd] => 2025-02-20 03:32:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:32:06' and `end` < '2025-02-20 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-02-20 03:32:18] Production.INFO: count ==202 [2025-02-20 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:32:06 - End Time 2025-02-20 03:32:06 [2025-02-20 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515001', 'tblTempUsageDetail_20' ) start [2025-02-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515001', 'tblTempUsageDetail_20' ) end [2025-02-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515001', 'tblTempVendorCDR_20' ) start [2025-02-20 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515001', 'tblTempVendorCDR_20' ) end [2025-02-20 03:32:18] Production.INFO: ProcessCDR(1,14515001,1,1,2) [2025-02-20 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515001', 'tblTempUsageDetail_20' ) start [2025-02-20 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515001', 'tblTempUsageDetail_20' ) end [2025-02-20 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:32:21] Production.INFO: ==30378== Releasing lock... [2025-02-20 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:33:06 [end_date_ymd] => 2025-02-20 03:33:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:33:06' and `end` < '2025-02-20 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-02-20 03:33:18] Production.INFO: count ==202 [2025-02-20 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:33:06 - End Time 2025-02-20 03:33:06 [2025-02-20 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515006', 'tblTempUsageDetail_20' ) start [2025-02-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515006', 'tblTempUsageDetail_20' ) end [2025-02-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515006', 'tblTempVendorCDR_20' ) start [2025-02-20 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515006', 'tblTempVendorCDR_20' ) end [2025-02-20 03:33:18] Production.INFO: ProcessCDR(1,14515006,1,1,2) [2025-02-20 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515006', 'tblTempUsageDetail_20' ) start [2025-02-20 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515006', 'tblTempUsageDetail_20' ) end [2025-02-20 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:33:21] Production.INFO: ==30448== Releasing lock... [2025-02-20 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:34:06 [end_date_ymd] => 2025-02-20 03:34:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:34:06' and `end` < '2025-02-20 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-02-20 03:34:17] Production.INFO: count ==202 [2025-02-20 03:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:34:06 - End Time 2025-02-20 03:34:06 [2025-02-20 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515011', 'tblTempUsageDetail_20' ) start [2025-02-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515011', 'tblTempUsageDetail_20' ) end [2025-02-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515011', 'tblTempVendorCDR_20' ) start [2025-02-20 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515011', 'tblTempVendorCDR_20' ) end [2025-02-20 03:34:17] Production.INFO: ProcessCDR(1,14515011,1,1,2) [2025-02-20 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515011', 'tblTempUsageDetail_20' ) start [2025-02-20 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515011', 'tblTempUsageDetail_20' ) end [2025-02-20 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:34:21] Production.INFO: ==30520== Releasing lock... [2025-02-20 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:34:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:35:05 [end_date_ymd] => 2025-02-20 03:35:05 [RateCDR] => 1 ) [2025-02-20 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:35:05' and `end` < '2025-02-20 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:35:17] Production.INFO: count ==202 [2025-02-20 03:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:35:05 - End Time 2025-02-20 03:35:05 [2025-02-20 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515016', 'tblTempUsageDetail_20' ) start [2025-02-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515016', 'tblTempUsageDetail_20' ) end [2025-02-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515016', 'tblTempVendorCDR_20' ) start [2025-02-20 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515016', 'tblTempVendorCDR_20' ) end [2025-02-20 03:35:17] Production.INFO: ProcessCDR(1,14515016,1,1,2) [2025-02-20 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515016', 'tblTempUsageDetail_20' ) start [2025-02-20 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515016', 'tblTempUsageDetail_20' ) end [2025-02-20 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:35:21] Production.INFO: ==30592== Releasing lock... [2025-02-20 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:36:05 [end_date_ymd] => 2025-02-20 03:36:05 [RateCDR] => 1 ) [2025-02-20 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:36:05' and `end` < '2025-02-20 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:36:17] Production.INFO: count ==202 [2025-02-20 03:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:36:05 - End Time 2025-02-20 03:36:05 [2025-02-20 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515021', 'tblTempUsageDetail_20' ) start [2025-02-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515021', 'tblTempUsageDetail_20' ) end [2025-02-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515021', 'tblTempVendorCDR_20' ) start [2025-02-20 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515021', 'tblTempVendorCDR_20' ) end [2025-02-20 03:36:17] Production.INFO: ProcessCDR(1,14515021,1,1,2) [2025-02-20 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515021', 'tblTempUsageDetail_20' ) start [2025-02-20 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515021', 'tblTempUsageDetail_20' ) end [2025-02-20 03:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:36:20] Production.INFO: ==30668== Releasing lock... [2025-02-20 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:36:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:37:06 [end_date_ymd] => 2025-02-20 03:37:06 [RateCDR] => 1 ) [2025-02-20 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:37:06' and `end` < '2025-02-20 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:37:18] Production.INFO: count ==202 [2025-02-20 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:37:06 - End Time 2025-02-20 03:37:06 [2025-02-20 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515026', 'tblTempUsageDetail_20' ) start [2025-02-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515026', 'tblTempUsageDetail_20' ) end [2025-02-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515026', 'tblTempVendorCDR_20' ) start [2025-02-20 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515026', 'tblTempVendorCDR_20' ) end [2025-02-20 03:37:18] Production.INFO: ProcessCDR(1,14515026,1,1,2) [2025-02-20 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515026', 'tblTempUsageDetail_20' ) start [2025-02-20 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515026', 'tblTempUsageDetail_20' ) end [2025-02-20 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:37:21] Production.INFO: ==30742== Releasing lock... [2025-02-20 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:38:05 [end_date_ymd] => 2025-02-20 03:38:05 [RateCDR] => 1 ) [2025-02-20 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:38:05' and `end` < '2025-02-20 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:38:17] Production.INFO: count ==202 [2025-02-20 03:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:38:05 - End Time 2025-02-20 03:38:05 [2025-02-20 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515031', 'tblTempUsageDetail_20' ) start [2025-02-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515031', 'tblTempUsageDetail_20' ) end [2025-02-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515031', 'tblTempVendorCDR_20' ) start [2025-02-20 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515031', 'tblTempVendorCDR_20' ) end [2025-02-20 03:38:17] Production.INFO: ProcessCDR(1,14515031,1,1,2) [2025-02-20 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515031', 'tblTempUsageDetail_20' ) start [2025-02-20 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515031', 'tblTempUsageDetail_20' ) end [2025-02-20 03:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:38:20] Production.INFO: ==30813== Releasing lock... [2025-02-20 03:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:38:20] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:39:06 [end_date_ymd] => 2025-02-20 03:39:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:39:06' and `end` < '2025-02-20 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-02-20 03:39:18] Production.INFO: count ==202 [2025-02-20 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:39:06 - End Time 2025-02-20 03:39:06 [2025-02-20 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515036', 'tblTempUsageDetail_20' ) start [2025-02-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515036', 'tblTempUsageDetail_20' ) end [2025-02-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515036', 'tblTempVendorCDR_20' ) start [2025-02-20 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515036', 'tblTempVendorCDR_20' ) end [2025-02-20 03:39:18] Production.INFO: ProcessCDR(1,14515036,1,1,2) [2025-02-20 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515036', 'tblTempUsageDetail_20' ) start [2025-02-20 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515036', 'tblTempUsageDetail_20' ) end [2025-02-20 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:39:21] Production.INFO: ==30901== Releasing lock... [2025-02-20 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:39:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:40:06 [end_date_ymd] => 2025-02-20 03:40:06 [RateCDR] => 1 ) [2025-02-20 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:40:06' and `end` < '2025-02-20 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:40:18] Production.INFO: count ==194 [2025-02-20 03:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:40:06 - End Time 2025-02-20 03:40:06 [2025-02-20 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515042', 'tblTempUsageDetail_20' ) start [2025-02-20 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515042', 'tblTempUsageDetail_20' ) end [2025-02-20 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515042', 'tblTempVendorCDR_20' ) start [2025-02-20 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515042', 'tblTempVendorCDR_20' ) end [2025-02-20 03:40:18] Production.INFO: ProcessCDR(1,14515042,1,1,2) [2025-02-20 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515042', 'tblTempUsageDetail_20' ) start [2025-02-20 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515042', 'tblTempUsageDetail_20' ) end [2025-02-20 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:40:23] Production.INFO: ==31023== Releasing lock... [2025-02-20 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:41:06 [end_date_ymd] => 2025-02-20 03:41:06 [RateCDR] => 1 ) [2025-02-20 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:41:06' and `end` < '2025-02-20 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:41:18] Production.INFO: count ==190 [2025-02-20 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:41:06 - End Time 2025-02-20 03:41:06 [2025-02-20 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515047', 'tblTempUsageDetail_20' ) start [2025-02-20 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515047', 'tblTempUsageDetail_20' ) end [2025-02-20 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515047', 'tblTempVendorCDR_20' ) start [2025-02-20 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515047', 'tblTempVendorCDR_20' ) end [2025-02-20 03:41:18] Production.INFO: ProcessCDR(1,14515047,1,1,2) [2025-02-20 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515047', 'tblTempUsageDetail_20' ) start [2025-02-20 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515047', 'tblTempUsageDetail_20' ) end [2025-02-20 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:41:22] Production.INFO: ==31148== Releasing lock... [2025-02-20 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:42:05 [end_date_ymd] => 2025-02-20 03:42:05 [RateCDR] => 1 ) [2025-02-20 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:42:05' and `end` < '2025-02-20 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:42:17] Production.INFO: count ==190 [2025-02-20 03:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:42:05 - End Time 2025-02-20 03:42:05 [2025-02-20 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515052', 'tblTempUsageDetail_20' ) start [2025-02-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515052', 'tblTempUsageDetail_20' ) end [2025-02-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515052', 'tblTempVendorCDR_20' ) start [2025-02-20 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515052', 'tblTempVendorCDR_20' ) end [2025-02-20 03:42:17] Production.INFO: ProcessCDR(1,14515052,1,1,2) [2025-02-20 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515052', 'tblTempUsageDetail_20' ) start [2025-02-20 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515052', 'tblTempUsageDetail_20' ) end [2025-02-20 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:42:21] Production.INFO: ==31266== Releasing lock... [2025-02-20 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:43:06 [end_date_ymd] => 2025-02-20 03:43:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:43:06' and `end` < '2025-02-20 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-02-20 03:43:18] Production.INFO: count ==190 [2025-02-20 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:43:06 - End Time 2025-02-20 03:43:06 [2025-02-20 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515057', 'tblTempUsageDetail_20' ) start [2025-02-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515057', 'tblTempUsageDetail_20' ) end [2025-02-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515057', 'tblTempVendorCDR_20' ) start [2025-02-20 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515057', 'tblTempVendorCDR_20' ) end [2025-02-20 03:43:18] Production.INFO: ProcessCDR(1,14515057,1,1,2) [2025-02-20 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515057', 'tblTempUsageDetail_20' ) start [2025-02-20 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515057', 'tblTempUsageDetail_20' ) end [2025-02-20 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:43:21] Production.INFO: ==31384== Releasing lock... [2025-02-20 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:44:06 [end_date_ymd] => 2025-02-20 03:44:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:44:06' and `end` < '2025-02-20 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-02-20 03:44:17] Production.INFO: count ==192 [2025-02-20 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:44:06 - End Time 2025-02-20 03:44:06 [2025-02-20 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515062', 'tblTempUsageDetail_20' ) start [2025-02-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515062', 'tblTempUsageDetail_20' ) end [2025-02-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515062', 'tblTempVendorCDR_20' ) start [2025-02-20 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515062', 'tblTempVendorCDR_20' ) end [2025-02-20 03:44:17] Production.INFO: ProcessCDR(1,14515062,1,1,2) [2025-02-20 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515062', 'tblTempUsageDetail_20' ) start [2025-02-20 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515062', 'tblTempUsageDetail_20' ) end [2025-02-20 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:44:21] Production.INFO: ==31504== Releasing lock... [2025-02-20 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:45:06 [end_date_ymd] => 2025-02-20 03:45:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:45:06' and `end` < '2025-02-20 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-02-20 03:45:17] Production.INFO: count ==198 [2025-02-20 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:45:06 - End Time 2025-02-20 03:45:06 [2025-02-20 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515067', 'tblTempUsageDetail_20' ) start [2025-02-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515067', 'tblTempUsageDetail_20' ) end [2025-02-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515067', 'tblTempVendorCDR_20' ) start [2025-02-20 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515067', 'tblTempVendorCDR_20' ) end [2025-02-20 03:45:17] Production.INFO: ProcessCDR(1,14515067,1,1,2) [2025-02-20 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515067', 'tblTempUsageDetail_20' ) start [2025-02-20 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515067', 'tblTempUsageDetail_20' ) end [2025-02-20 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:45:21] Production.INFO: ==31664== Releasing lock... [2025-02-20 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:45:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:46:06 [end_date_ymd] => 2025-02-20 03:46:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:46:06' and `end` < '2025-02-20 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-02-20 03:46:17] Production.INFO: count ==198 [2025-02-20 03:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:46:06 - End Time 2025-02-20 03:46:06 [2025-02-20 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515072', 'tblTempUsageDetail_20' ) start [2025-02-20 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515072', 'tblTempUsageDetail_20' ) end [2025-02-20 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515072', 'tblTempVendorCDR_20' ) start [2025-02-20 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515072', 'tblTempVendorCDR_20' ) end [2025-02-20 03:46:17] Production.INFO: ProcessCDR(1,14515072,1,1,2) [2025-02-20 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515072', 'tblTempUsageDetail_20' ) start [2025-02-20 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515072', 'tblTempUsageDetail_20' ) end [2025-02-20 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:46:21] Production.INFO: ==31781== Releasing lock... [2025-02-20 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:46:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:47:05 [end_date_ymd] => 2025-02-20 03:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:47:05' and `end` < '2025-02-20 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-02-20 03:47:17] Production.INFO: count ==198 [2025-02-20 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:47:05 - End Time 2025-02-20 03:47:05 [2025-02-20 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515077', 'tblTempUsageDetail_20' ) start [2025-02-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515077', 'tblTempUsageDetail_20' ) end [2025-02-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515077', 'tblTempVendorCDR_20' ) start [2025-02-20 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515077', 'tblTempVendorCDR_20' ) end [2025-02-20 03:47:17] Production.INFO: ProcessCDR(1,14515077,1,1,2) [2025-02-20 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515077', 'tblTempUsageDetail_20' ) start [2025-02-20 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515077', 'tblTempUsageDetail_20' ) end [2025-02-20 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:47:21] Production.INFO: ==31895== Releasing lock... [2025-02-20 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:48:05 [end_date_ymd] => 2025-02-20 03:48:05 [RateCDR] => 1 ) [2025-02-20 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:48:05' and `end` < '2025-02-20 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:48:17] Production.INFO: count ==198 [2025-02-20 03:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:48:05 - End Time 2025-02-20 03:48:05 [2025-02-20 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515082', 'tblTempUsageDetail_20' ) start [2025-02-20 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515082', 'tblTempUsageDetail_20' ) end [2025-02-20 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515082', 'tblTempVendorCDR_20' ) start [2025-02-20 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515082', 'tblTempVendorCDR_20' ) end [2025-02-20 03:48:17] Production.INFO: ProcessCDR(1,14515082,1,1,2) [2025-02-20 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515082', 'tblTempUsageDetail_20' ) start [2025-02-20 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515082', 'tblTempUsageDetail_20' ) end [2025-02-20 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:48:21] Production.INFO: ==32012== Releasing lock... [2025-02-20 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:48:21] Production.INFO: 30 MB #Memory Used# [2025-02-20 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:49:05 [end_date_ymd] => 2025-02-20 03:49:05 [RateCDR] => 1 ) [2025-02-20 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:49:05' and `end` < '2025-02-20 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:49:17] Production.INFO: count ==198 [2025-02-20 03:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:49:05 - End Time 2025-02-20 03:49:05 [2025-02-20 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515087', 'tblTempUsageDetail_20' ) start [2025-02-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515087', 'tblTempUsageDetail_20' ) end [2025-02-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515087', 'tblTempVendorCDR_20' ) start [2025-02-20 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515087', 'tblTempVendorCDR_20' ) end [2025-02-20 03:49:17] Production.INFO: ProcessCDR(1,14515087,1,1,2) [2025-02-20 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515087', 'tblTempUsageDetail_20' ) start [2025-02-20 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515087', 'tblTempUsageDetail_20' ) end [2025-02-20 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:49:20] Production.INFO: ==32135== Releasing lock... [2025-02-20 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:50:06 [end_date_ymd] => 2025-02-20 03:50:06 [RateCDR] => 1 ) [2025-02-20 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:50:06' and `end` < '2025-02-20 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:50:18] Production.INFO: count ==182 [2025-02-20 03:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:50:06 - End Time 2025-02-20 03:50:06 [2025-02-20 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515092', 'tblTempUsageDetail_20' ) start [2025-02-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515092', 'tblTempUsageDetail_20' ) end [2025-02-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515092', 'tblTempVendorCDR_20' ) start [2025-02-20 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515092', 'tblTempVendorCDR_20' ) end [2025-02-20 03:50:18] Production.INFO: ProcessCDR(1,14515092,1,1,2) [2025-02-20 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515092', 'tblTempUsageDetail_20' ) start [2025-02-20 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515092', 'tblTempUsageDetail_20' ) end [2025-02-20 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:50:21] Production.INFO: ==32220== Releasing lock... [2025-02-20 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:51:05 [end_date_ymd] => 2025-02-20 03:51:05 [RateCDR] => 1 ) [2025-02-20 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:51:05' and `end` < '2025-02-20 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:51:17] Production.INFO: count ==169 [2025-02-20 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:51:05 - End Time 2025-02-20 03:51:05 [2025-02-20 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515098', 'tblTempUsageDetail_20' ) start [2025-02-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515098', 'tblTempUsageDetail_20' ) end [2025-02-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515098', 'tblTempVendorCDR_20' ) start [2025-02-20 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515098', 'tblTempVendorCDR_20' ) end [2025-02-20 03:51:17] Production.INFO: ProcessCDR(1,14515098,1,1,2) [2025-02-20 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515098', 'tblTempUsageDetail_20' ) start [2025-02-20 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515098', 'tblTempUsageDetail_20' ) end [2025-02-20 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:51:21] Production.INFO: ==32303== Releasing lock... [2025-02-20 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:52:05 [end_date_ymd] => 2025-02-20 03:52:05 [RateCDR] => 1 ) [2025-02-20 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:52:05' and `end` < '2025-02-20 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:52:17] Production.INFO: count ==166 [2025-02-20 03:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:52:05 - End Time 2025-02-20 03:52:05 [2025-02-20 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515103', 'tblTempUsageDetail_20' ) start [2025-02-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515103', 'tblTempUsageDetail_20' ) end [2025-02-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515103', 'tblTempVendorCDR_20' ) start [2025-02-20 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515103', 'tblTempVendorCDR_20' ) end [2025-02-20 03:52:17] Production.INFO: ProcessCDR(1,14515103,1,1,2) [2025-02-20 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515103', 'tblTempUsageDetail_20' ) start [2025-02-20 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515103', 'tblTempUsageDetail_20' ) end [2025-02-20 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:52:21] Production.INFO: ==32381== Releasing lock... [2025-02-20 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:53:05 [end_date_ymd] => 2025-02-20 03:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:53:05' and `end` < '2025-02-20 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-02-20 03:53:17] Production.INFO: count ==166 [2025-02-20 03:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:53:05 - End Time 2025-02-20 03:53:05 [2025-02-20 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515108', 'tblTempUsageDetail_20' ) start [2025-02-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515108', 'tblTempUsageDetail_20' ) end [2025-02-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515108', 'tblTempVendorCDR_20' ) start [2025-02-20 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515108', 'tblTempVendorCDR_20' ) end [2025-02-20 03:53:17] Production.INFO: ProcessCDR(1,14515108,1,1,2) [2025-02-20 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515108', 'tblTempUsageDetail_20' ) start [2025-02-20 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515108', 'tblTempUsageDetail_20' ) end [2025-02-20 03:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:53:20] Production.INFO: ==32459== Releasing lock... [2025-02-20 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:53:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:54:06 [end_date_ymd] => 2025-02-20 03:54:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:54:06' and `end` < '2025-02-20 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-02-20 03:54:17] Production.INFO: count ==164 [2025-02-20 03:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:54:06 - End Time 2025-02-20 03:54:06 [2025-02-20 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515113', 'tblTempUsageDetail_20' ) start [2025-02-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515113', 'tblTempUsageDetail_20' ) end [2025-02-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515113', 'tblTempVendorCDR_20' ) start [2025-02-20 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515113', 'tblTempVendorCDR_20' ) end [2025-02-20 03:54:17] Production.INFO: ProcessCDR(1,14515113,1,1,2) [2025-02-20 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515113', 'tblTempUsageDetail_20' ) start [2025-02-20 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515113', 'tblTempUsageDetail_20' ) end [2025-02-20 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:54:21] Production.INFO: ==32538== Releasing lock... [2025-02-20 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:55:06 [end_date_ymd] => 2025-02-20 03:55:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:55:06' and `end` < '2025-02-20 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-02-20 03:55:18] Production.INFO: count ==163 [2025-02-20 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:55:06 - End Time 2025-02-20 03:55:06 [2025-02-20 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515118', 'tblTempUsageDetail_20' ) start [2025-02-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515118', 'tblTempUsageDetail_20' ) end [2025-02-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515118', 'tblTempVendorCDR_20' ) start [2025-02-20 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515118', 'tblTempVendorCDR_20' ) end [2025-02-20 03:55:18] Production.INFO: ProcessCDR(1,14515118,1,1,2) [2025-02-20 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515118', 'tblTempUsageDetail_20' ) start [2025-02-20 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515118', 'tblTempUsageDetail_20' ) end [2025-02-20 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:55:21] Production.INFO: ==32619== Releasing lock... [2025-02-20 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:56:06 [end_date_ymd] => 2025-02-20 03:56:06 [RateCDR] => 1 ) [2025-02-20 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:56:06' and `end` < '2025-02-20 03: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-02-20 03:56:17] Production.INFO: count ==163 [2025-02-20 03:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:56:06 - End Time 2025-02-20 03:56:06 [2025-02-20 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515123', 'tblTempUsageDetail_20' ) start [2025-02-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515123', 'tblTempUsageDetail_20' ) end [2025-02-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515123', 'tblTempVendorCDR_20' ) start [2025-02-20 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515123', 'tblTempVendorCDR_20' ) end [2025-02-20 03:56:17] Production.INFO: ProcessCDR(1,14515123,1,1,2) [2025-02-20 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515123', 'tblTempUsageDetail_20' ) start [2025-02-20 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515123', 'tblTempUsageDetail_20' ) end [2025-02-20 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:56:21] Production.INFO: ==32693== Releasing lock... [2025-02-20 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:57:05 [end_date_ymd] => 2025-02-20 03:57:05 [RateCDR] => 1 ) [2025-02-20 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:57:05' and `end` < '2025-02-20 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:57:17] Production.INFO: count ==163 [2025-02-20 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:57:05 - End Time 2025-02-20 03:57:05 [2025-02-20 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515128', 'tblTempUsageDetail_20' ) start [2025-02-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515128', 'tblTempUsageDetail_20' ) end [2025-02-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515128', 'tblTempVendorCDR_20' ) start [2025-02-20 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515128', 'tblTempVendorCDR_20' ) end [2025-02-20 03:57:17] Production.INFO: ProcessCDR(1,14515128,1,1,2) [2025-02-20 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515128', 'tblTempUsageDetail_20' ) start [2025-02-20 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515128', 'tblTempUsageDetail_20' ) end [2025-02-20 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:57:20] Production.INFO: ==305== Releasing lock... [2025-02-20 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:58:05 [end_date_ymd] => 2025-02-20 03:58:05 [RateCDR] => 1 ) [2025-02-20 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 00:58:05' and `end` < '2025-02-20 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 03:58:17] Production.INFO: count ==163 [2025-02-20 03:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 00:58:05 - End Time 2025-02-20 03:58:05 [2025-02-20 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515133', 'tblTempUsageDetail_20' ) start [2025-02-20 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515133', 'tblTempUsageDetail_20' ) end [2025-02-20 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515133', 'tblTempVendorCDR_20' ) start [2025-02-20 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515133', 'tblTempVendorCDR_20' ) end [2025-02-20 03:58:17] Production.INFO: ProcessCDR(1,14515133,1,1,2) [2025-02-20 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515133', 'tblTempUsageDetail_20' ) start [2025-02-20 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515133', 'tblTempUsageDetail_20' ) end [2025-02-20 03:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:58:20] Production.INFO: ==403== Releasing lock... [2025-02-20 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:58:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 00:59:06 [end_date_ymd] => 2025-02-20 03:59:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 00:59:06' and `end` < '2025-02-20 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-02-20 03:59:18] Production.INFO: count ==163 [2025-02-20 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 00:59:06 - End Time 2025-02-20 03:59:06 [2025-02-20 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515138', 'tblTempUsageDetail_20' ) start [2025-02-20 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515138', 'tblTempUsageDetail_20' ) end [2025-02-20 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515138', 'tblTempVendorCDR_20' ) start [2025-02-20 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515138', 'tblTempVendorCDR_20' ) end [2025-02-20 03:59:18] Production.INFO: ProcessCDR(1,14515138,1,1,2) [2025-02-20 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515138', 'tblTempUsageDetail_20' ) start [2025-02-20 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515138', 'tblTempUsageDetail_20' ) end [2025-02-20 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 03:59:21] Production.INFO: ==479== Releasing lock... [2025-02-20 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 03:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:00:07 [end_date_ymd] => 2025-02-20 04:00:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:00:07' and `end` < '2025-02-20 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-02-20 04:00:19] Production.INFO: count ==161 [2025-02-20 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-20 01:00:07 - End Time 2025-02-20 04:00:07 [2025-02-20 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515145', 'tblTempUsageDetail_20' ) start [2025-02-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515145', 'tblTempUsageDetail_20' ) end [2025-02-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515145', 'tblTempVendorCDR_20' ) start [2025-02-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515145', 'tblTempVendorCDR_20' ) end [2025-02-20 04:00:19] Production.INFO: ProcessCDR(1,14515145,1,1,2) [2025-02-20 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515145', 'tblTempUsageDetail_20' ) start [2025-02-20 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515145', 'tblTempUsageDetail_20' ) end [2025-02-20 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:00:23] Production.INFO: ==563== Releasing lock... [2025-02-20 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:01:06 [end_date_ymd] => 2025-02-20 04:01:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:01:06' and `end` < '2025-02-20 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-02-20 04:01:17] Production.INFO: count ==161 [2025-02-20 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:01:06 - End Time 2025-02-20 04:01:06 [2025-02-20 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515150', 'tblTempUsageDetail_20' ) start [2025-02-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515150', 'tblTempUsageDetail_20' ) end [2025-02-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515150', 'tblTempVendorCDR_20' ) start [2025-02-20 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515150', 'tblTempVendorCDR_20' ) end [2025-02-20 04:01:18] Production.INFO: ProcessCDR(1,14515150,1,1,2) [2025-02-20 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515150', 'tblTempUsageDetail_20' ) start [2025-02-20 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515150', 'tblTempUsageDetail_20' ) end [2025-02-20 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:01:21] Production.INFO: ==724== Releasing lock... [2025-02-20 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:02:06 [end_date_ymd] => 2025-02-20 04:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:02:06' and `end` < '2025-02-20 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-02-20 04:02:17] Production.INFO: count ==161 [2025-02-20 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:02:06 - End Time 2025-02-20 04:02:06 [2025-02-20 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515155', 'tblTempUsageDetail_20' ) start [2025-02-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515155', 'tblTempUsageDetail_20' ) end [2025-02-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515155', 'tblTempVendorCDR_20' ) start [2025-02-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515155', 'tblTempVendorCDR_20' ) end [2025-02-20 04:02:18] Production.INFO: ProcessCDR(1,14515155,1,1,2) [2025-02-20 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515155', 'tblTempUsageDetail_20' ) start [2025-02-20 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515155', 'tblTempUsageDetail_20' ) end [2025-02-20 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:02:21] Production.INFO: ==803== Releasing lock... [2025-02-20 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:03:05 [end_date_ymd] => 2025-02-20 04:03:05 [RateCDR] => 1 ) [2025-02-20 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:03:05' and `end` < '2025-02-20 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:03:17] Production.INFO: count ==161 [2025-02-20 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:03:05 - End Time 2025-02-20 04:03:05 [2025-02-20 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515160', 'tblTempUsageDetail_20' ) start [2025-02-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515160', 'tblTempUsageDetail_20' ) end [2025-02-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515160', 'tblTempVendorCDR_20' ) start [2025-02-20 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515160', 'tblTempVendorCDR_20' ) end [2025-02-20 04:03:17] Production.INFO: ProcessCDR(1,14515160,1,1,2) [2025-02-20 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515160', 'tblTempUsageDetail_20' ) start [2025-02-20 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515160', 'tblTempUsageDetail_20' ) end [2025-02-20 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:03:20] Production.INFO: ==881== Releasing lock... [2025-02-20 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:03:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:04:05 [end_date_ymd] => 2025-02-20 04:04:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:04:05' and `end` < '2025-02-20 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-02-20 04:04:17] Production.INFO: count ==161 [2025-02-20 04:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:04:05 - End Time 2025-02-20 04:04:05 [2025-02-20 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515165', 'tblTempUsageDetail_20' ) start [2025-02-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515165', 'tblTempUsageDetail_20' ) end [2025-02-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515165', 'tblTempVendorCDR_20' ) start [2025-02-20 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515165', 'tblTempVendorCDR_20' ) end [2025-02-20 04:04:17] Production.INFO: ProcessCDR(1,14515165,1,1,2) [2025-02-20 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515165', 'tblTempUsageDetail_20' ) start [2025-02-20 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515165', 'tblTempUsageDetail_20' ) end [2025-02-20 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:04:21] Production.INFO: ==957== Releasing lock... [2025-02-20 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:05:05 [end_date_ymd] => 2025-02-20 04:05:05 [RateCDR] => 1 ) [2025-02-20 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:05:05' and `end` < '2025-02-20 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:05:17] Production.INFO: count ==161 [2025-02-20 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:05:05 - End Time 2025-02-20 04:05:05 [2025-02-20 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515170', 'tblTempUsageDetail_20' ) start [2025-02-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515170', 'tblTempUsageDetail_20' ) end [2025-02-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515170', 'tblTempVendorCDR_20' ) start [2025-02-20 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515170', 'tblTempVendorCDR_20' ) end [2025-02-20 04:05:17] Production.INFO: ProcessCDR(1,14515170,1,1,2) [2025-02-20 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515170', 'tblTempUsageDetail_20' ) start [2025-02-20 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515170', 'tblTempUsageDetail_20' ) end [2025-02-20 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:05:20] Production.INFO: ==1034== Releasing lock... [2025-02-20 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:06:05 [end_date_ymd] => 2025-02-20 04:06:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:06:05' and `end` < '2025-02-20 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-02-20 04:06:17] Production.INFO: count ==159 [2025-02-20 04:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:06:05 - End Time 2025-02-20 04:06:05 [2025-02-20 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515175', 'tblTempUsageDetail_20' ) start [2025-02-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515175', 'tblTempUsageDetail_20' ) end [2025-02-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515175', 'tblTempVendorCDR_20' ) start [2025-02-20 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515175', 'tblTempVendorCDR_20' ) end [2025-02-20 04:06:17] Production.INFO: ProcessCDR(1,14515175,1,1,2) [2025-02-20 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515175', 'tblTempUsageDetail_20' ) start [2025-02-20 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515175', 'tblTempUsageDetail_20' ) end [2025-02-20 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:06:21] Production.INFO: ==1116== Releasing lock... [2025-02-20 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:07:05 [end_date_ymd] => 2025-02-20 04:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:07:05' and `end` < '2025-02-20 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-02-20 04:07:17] Production.INFO: count ==159 [2025-02-20 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:07:05 - End Time 2025-02-20 04:07:05 [2025-02-20 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515180', 'tblTempUsageDetail_20' ) start [2025-02-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515180', 'tblTempUsageDetail_20' ) end [2025-02-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515180', 'tblTempVendorCDR_20' ) start [2025-02-20 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515180', 'tblTempVendorCDR_20' ) end [2025-02-20 04:07:17] Production.INFO: ProcessCDR(1,14515180,1,1,2) [2025-02-20 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515180', 'tblTempUsageDetail_20' ) start [2025-02-20 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515180', 'tblTempUsageDetail_20' ) end [2025-02-20 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:07:20] Production.INFO: ==1200== Releasing lock... [2025-02-20 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:08:05 [end_date_ymd] => 2025-02-20 04:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:08:05' and `end` < '2025-02-20 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-02-20 04:08:17] Production.INFO: count ==159 [2025-02-20 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:08:05 - End Time 2025-02-20 04:08:05 [2025-02-20 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515185', 'tblTempUsageDetail_20' ) start [2025-02-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515185', 'tblTempUsageDetail_20' ) end [2025-02-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515185', 'tblTempVendorCDR_20' ) start [2025-02-20 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515185', 'tblTempVendorCDR_20' ) end [2025-02-20 04:08:17] Production.INFO: ProcessCDR(1,14515185,1,1,2) [2025-02-20 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515185', 'tblTempUsageDetail_20' ) start [2025-02-20 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515185', 'tblTempUsageDetail_20' ) end [2025-02-20 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:08:20] Production.INFO: ==1290== Releasing lock... [2025-02-20 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:09:05 [end_date_ymd] => 2025-02-20 04:09:05 [RateCDR] => 1 ) [2025-02-20 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:09:05' and `end` < '2025-02-20 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:09:17] Production.INFO: count ==159 [2025-02-20 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:09:05 - End Time 2025-02-20 04:09:05 [2025-02-20 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515190', 'tblTempUsageDetail_20' ) start [2025-02-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515190', 'tblTempUsageDetail_20' ) end [2025-02-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515190', 'tblTempVendorCDR_20' ) start [2025-02-20 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515190', 'tblTempVendorCDR_20' ) end [2025-02-20 04:09:17] Production.INFO: ProcessCDR(1,14515190,1,1,2) [2025-02-20 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515190', 'tblTempUsageDetail_20' ) start [2025-02-20 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515190', 'tblTempUsageDetail_20' ) end [2025-02-20 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:09:20] Production.INFO: ==1369== Releasing lock... [2025-02-20 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:10:06 [end_date_ymd] => 2025-02-20 04:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:10:06' and `end` < '2025-02-20 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-02-20 04:10:18] Production.INFO: count ==165 [2025-02-20 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:10:06 - End Time 2025-02-20 04:10:06 [2025-02-20 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515196', 'tblTempUsageDetail_20' ) start [2025-02-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515196', 'tblTempUsageDetail_20' ) end [2025-02-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515196', 'tblTempVendorCDR_20' ) start [2025-02-20 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515196', 'tblTempVendorCDR_20' ) end [2025-02-20 04:10:18] Production.INFO: ProcessCDR(1,14515196,1,1,2) [2025-02-20 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515196', 'tblTempUsageDetail_20' ) start [2025-02-20 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515196', 'tblTempUsageDetail_20' ) end [2025-02-20 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:10:21] Production.INFO: ==1447== Releasing lock... [2025-02-20 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:11:05 [end_date_ymd] => 2025-02-20 04:11:05 [RateCDR] => 1 ) [2025-02-20 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:11:05' and `end` < '2025-02-20 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:11:17] Production.INFO: count ==167 [2025-02-20 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:11:05 - End Time 2025-02-20 04:11:05 [2025-02-20 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515201', 'tblTempUsageDetail_20' ) start [2025-02-20 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515201', 'tblTempUsageDetail_20' ) end [2025-02-20 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515201', 'tblTempVendorCDR_20' ) start [2025-02-20 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515201', 'tblTempVendorCDR_20' ) end [2025-02-20 04:11:17] Production.INFO: ProcessCDR(1,14515201,1,1,2) [2025-02-20 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515201', 'tblTempUsageDetail_20' ) start [2025-02-20 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515201', 'tblTempUsageDetail_20' ) end [2025-02-20 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:11:22] Production.INFO: ==1561== Releasing lock... [2025-02-20 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:12:05 [end_date_ymd] => 2025-02-20 04:12:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:12:05' and `end` < '2025-02-20 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-02-20 04:12:17] Production.INFO: count ==169 [2025-02-20 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:12:05 - End Time 2025-02-20 04:12:05 [2025-02-20 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515206', 'tblTempUsageDetail_20' ) start [2025-02-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515206', 'tblTempUsageDetail_20' ) end [2025-02-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515206', 'tblTempVendorCDR_20' ) start [2025-02-20 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515206', 'tblTempVendorCDR_20' ) end [2025-02-20 04:12:17] Production.INFO: ProcessCDR(1,14515206,1,1,2) [2025-02-20 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515206', 'tblTempUsageDetail_20' ) start [2025-02-20 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515206', 'tblTempUsageDetail_20' ) end [2025-02-20 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:12:22] Production.INFO: ==1646== Releasing lock... [2025-02-20 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:13:06 [end_date_ymd] => 2025-02-20 04:13:06 [RateCDR] => 1 ) [2025-02-20 04: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-02-20 01:13:06' and `end` < '2025-02-20 04: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-02-20 04:13:17] Production.INFO: count ==169 [2025-02-20 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:13:06 - End Time 2025-02-20 04:13:06 [2025-02-20 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515211', 'tblTempUsageDetail_20' ) start [2025-02-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515211', 'tblTempUsageDetail_20' ) end [2025-02-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515211', 'tblTempVendorCDR_20' ) start [2025-02-20 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515211', 'tblTempVendorCDR_20' ) end [2025-02-20 04:13:17] Production.INFO: ProcessCDR(1,14515211,1,1,2) [2025-02-20 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515211', 'tblTempUsageDetail_20' ) start [2025-02-20 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515211', 'tblTempUsageDetail_20' ) end [2025-02-20 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:13:21] Production.INFO: ==1724== Releasing lock... [2025-02-20 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:14:05 [end_date_ymd] => 2025-02-20 04:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:14:05' and `end` < '2025-02-20 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-02-20 04:14:17] Production.INFO: count ==169 [2025-02-20 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:14:05 - End Time 2025-02-20 04:14:05 [2025-02-20 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515216', 'tblTempUsageDetail_20' ) start [2025-02-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515216', 'tblTempUsageDetail_20' ) end [2025-02-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515216', 'tblTempVendorCDR_20' ) start [2025-02-20 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515216', 'tblTempVendorCDR_20' ) end [2025-02-20 04:14:17] Production.INFO: ProcessCDR(1,14515216,1,1,2) [2025-02-20 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515216', 'tblTempUsageDetail_20' ) start [2025-02-20 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515216', 'tblTempUsageDetail_20' ) end [2025-02-20 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:14:20] Production.INFO: ==1804== Releasing lock... [2025-02-20 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:14:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:15:05 [end_date_ymd] => 2025-02-20 04:15:05 [RateCDR] => 1 ) [2025-02-20 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:15:05' and `end` < '2025-02-20 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:15:17] Production.INFO: count ==169 [2025-02-20 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:15:05 - End Time 2025-02-20 04:15:05 [2025-02-20 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515221', 'tblTempUsageDetail_20' ) start [2025-02-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515221', 'tblTempUsageDetail_20' ) end [2025-02-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515221', 'tblTempVendorCDR_20' ) start [2025-02-20 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515221', 'tblTempVendorCDR_20' ) end [2025-02-20 04:15:17] Production.INFO: ProcessCDR(1,14515221,1,1,2) [2025-02-20 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515221', 'tblTempUsageDetail_20' ) start [2025-02-20 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515221', 'tblTempUsageDetail_20' ) end [2025-02-20 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:15:20] Production.INFO: ==1885== Releasing lock... [2025-02-20 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:15:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:16:05 [end_date_ymd] => 2025-02-20 04:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:16:05' and `end` < '2025-02-20 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-02-20 04:16:17] Production.INFO: count ==166 [2025-02-20 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:16:05 - End Time 2025-02-20 04:16:05 [2025-02-20 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515226', 'tblTempUsageDetail_20' ) start [2025-02-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515226', 'tblTempUsageDetail_20' ) end [2025-02-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515226', 'tblTempVendorCDR_20' ) start [2025-02-20 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515226', 'tblTempVendorCDR_20' ) end [2025-02-20 04:16:17] Production.INFO: ProcessCDR(1,14515226,1,1,2) [2025-02-20 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515226', 'tblTempUsageDetail_20' ) start [2025-02-20 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515226', 'tblTempUsageDetail_20' ) end [2025-02-20 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:16:20] Production.INFO: ==2005== Releasing lock... [2025-02-20 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:17:05 [end_date_ymd] => 2025-02-20 04:17:05 [RateCDR] => 1 ) [2025-02-20 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:17:05' and `end` < '2025-02-20 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:17:17] Production.INFO: count ==166 [2025-02-20 04:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:17:05 - End Time 2025-02-20 04:17:05 [2025-02-20 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515231', 'tblTempUsageDetail_20' ) start [2025-02-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515231', 'tblTempUsageDetail_20' ) end [2025-02-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515231', 'tblTempVendorCDR_20' ) start [2025-02-20 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515231', 'tblTempVendorCDR_20' ) end [2025-02-20 04:17:17] Production.INFO: ProcessCDR(1,14515231,1,1,2) [2025-02-20 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515231', 'tblTempUsageDetail_20' ) start [2025-02-20 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515231', 'tblTempUsageDetail_20' ) end [2025-02-20 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:17:21] Production.INFO: ==2078== Releasing lock... [2025-02-20 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:18:05 [end_date_ymd] => 2025-02-20 04:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:18:05' and `end` < '2025-02-20 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-02-20 04:18:16] Production.INFO: count ==164 [2025-02-20 04:18:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:18:05 - End Time 2025-02-20 04:18:05 [2025-02-20 04:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515236', 'tblTempUsageDetail_20' ) start [2025-02-20 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515236', 'tblTempUsageDetail_20' ) end [2025-02-20 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515236', 'tblTempVendorCDR_20' ) start [2025-02-20 04:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515236', 'tblTempVendorCDR_20' ) end [2025-02-20 04:18:16] Production.INFO: ProcessCDR(1,14515236,1,1,2) [2025-02-20 04:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515236', 'tblTempUsageDetail_20' ) start [2025-02-20 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515236', 'tblTempUsageDetail_20' ) end [2025-02-20 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:18:20] Production.INFO: ==2166== Releasing lock... [2025-02-20 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:19:05 [end_date_ymd] => 2025-02-20 04:19:05 [RateCDR] => 1 ) [2025-02-20 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:19:05' and `end` < '2025-02-20 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:19:17] Production.INFO: count ==163 [2025-02-20 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:19:05 - End Time 2025-02-20 04:19:05 [2025-02-20 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515241', 'tblTempUsageDetail_20' ) start [2025-02-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515241', 'tblTempUsageDetail_20' ) end [2025-02-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515241', 'tblTempVendorCDR_20' ) start [2025-02-20 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515241', 'tblTempVendorCDR_20' ) end [2025-02-20 04:19:17] Production.INFO: ProcessCDR(1,14515241,1,1,2) [2025-02-20 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515241', 'tblTempUsageDetail_20' ) start [2025-02-20 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515241', 'tblTempUsageDetail_20' ) end [2025-02-20 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:19:20] Production.INFO: ==2249== Releasing lock... [2025-02-20 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:20:06 [end_date_ymd] => 2025-02-20 04:20:06 [RateCDR] => 1 ) [2025-02-20 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:20:06' and `end` < '2025-02-20 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:20:18] Production.INFO: count ==167 [2025-02-20 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:20:06 - End Time 2025-02-20 04:20:06 [2025-02-20 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515247', 'tblTempUsageDetail_20' ) start [2025-02-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515247', 'tblTempUsageDetail_20' ) end [2025-02-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515247', 'tblTempVendorCDR_20' ) start [2025-02-20 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515247', 'tblTempVendorCDR_20' ) end [2025-02-20 04:20:18] Production.INFO: ProcessCDR(1,14515247,1,1,2) [2025-02-20 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515247', 'tblTempUsageDetail_20' ) start [2025-02-20 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515247', 'tblTempUsageDetail_20' ) end [2025-02-20 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:20:21] Production.INFO: ==2330== Releasing lock... [2025-02-20 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:21:05 [end_date_ymd] => 2025-02-20 04:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:21:05' and `end` < '2025-02-20 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-02-20 04:21:17] Production.INFO: count ==167 [2025-02-20 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:21:05 - End Time 2025-02-20 04:21:05 [2025-02-20 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515252', 'tblTempUsageDetail_20' ) start [2025-02-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515252', 'tblTempUsageDetail_20' ) end [2025-02-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515252', 'tblTempVendorCDR_20' ) start [2025-02-20 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515252', 'tblTempVendorCDR_20' ) end [2025-02-20 04:21:17] Production.INFO: ProcessCDR(1,14515252,1,1,2) [2025-02-20 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515252', 'tblTempUsageDetail_20' ) start [2025-02-20 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515252', 'tblTempUsageDetail_20' ) end [2025-02-20 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:21:20] Production.INFO: ==2408== Releasing lock... [2025-02-20 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:22:05 [end_date_ymd] => 2025-02-20 04:22:05 [RateCDR] => 1 ) [2025-02-20 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:22:05' and `end` < '2025-02-20 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:22:17] Production.INFO: count ==169 [2025-02-20 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:22:05 - End Time 2025-02-20 04:22:05 [2025-02-20 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515257', 'tblTempUsageDetail_20' ) start [2025-02-20 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515257', 'tblTempUsageDetail_20' ) end [2025-02-20 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515257', 'tblTempVendorCDR_20' ) start [2025-02-20 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515257', 'tblTempVendorCDR_20' ) end [2025-02-20 04:22:17] Production.INFO: ProcessCDR(1,14515257,1,1,2) [2025-02-20 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515257', 'tblTempUsageDetail_20' ) start [2025-02-20 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515257', 'tblTempUsageDetail_20' ) end [2025-02-20 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:22:20] Production.INFO: ==2481== Releasing lock... [2025-02-20 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:22:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:23:05 [end_date_ymd] => 2025-02-20 04:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:23:05' and `end` < '2025-02-20 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-02-20 04:23:16] Production.INFO: count ==169 [2025-02-20 04:23:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:23:05 - End Time 2025-02-20 04:23:05 [2025-02-20 04:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515262', 'tblTempUsageDetail_20' ) start [2025-02-20 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515262', 'tblTempUsageDetail_20' ) end [2025-02-20 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515262', 'tblTempVendorCDR_20' ) start [2025-02-20 04:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515262', 'tblTempVendorCDR_20' ) end [2025-02-20 04:23:16] Production.INFO: ProcessCDR(1,14515262,1,1,2) [2025-02-20 04:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515262', 'tblTempUsageDetail_20' ) start [2025-02-20 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515262', 'tblTempUsageDetail_20' ) end [2025-02-20 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:23:20] Production.INFO: ==2557== Releasing lock... [2025-02-20 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:23:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:24:06 [end_date_ymd] => 2025-02-20 04:24:06 [RateCDR] => 1 ) [2025-02-20 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:24:06' and `end` < '2025-02-20 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:24:17] Production.INFO: count ==171 [2025-02-20 04:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:24:06 - End Time 2025-02-20 04:24:06 [2025-02-20 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515267', 'tblTempUsageDetail_20' ) start [2025-02-20 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515267', 'tblTempUsageDetail_20' ) end [2025-02-20 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515267', 'tblTempVendorCDR_20' ) start [2025-02-20 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515267', 'tblTempVendorCDR_20' ) end [2025-02-20 04:24:18] Production.INFO: ProcessCDR(1,14515267,1,1,2) [2025-02-20 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515267', 'tblTempUsageDetail_20' ) start [2025-02-20 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515267', 'tblTempUsageDetail_20' ) end [2025-02-20 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:24:21] Production.INFO: ==2638== Releasing lock... [2025-02-20 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:25:05 [end_date_ymd] => 2025-02-20 04:25:05 [RateCDR] => 1 ) [2025-02-20 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:25:05' and `end` < '2025-02-20 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:25:16] Production.INFO: count ==171 [2025-02-20 04:25:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:25:05 - End Time 2025-02-20 04:25:05 [2025-02-20 04:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515272', 'tblTempUsageDetail_20' ) start [2025-02-20 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515272', 'tblTempUsageDetail_20' ) end [2025-02-20 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515272', 'tblTempVendorCDR_20' ) start [2025-02-20 04:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515272', 'tblTempVendorCDR_20' ) end [2025-02-20 04:25:16] Production.INFO: ProcessCDR(1,14515272,1,1,2) [2025-02-20 04:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515272', 'tblTempUsageDetail_20' ) start [2025-02-20 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515272', 'tblTempUsageDetail_20' ) end [2025-02-20 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:25:20] Production.INFO: ==2718== Releasing lock... [2025-02-20 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:26:05 [end_date_ymd] => 2025-02-20 04:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:26:05' and `end` < '2025-02-20 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-02-20 04:26:16] Production.INFO: count ==173 [2025-02-20 04:26:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:26:05 - End Time 2025-02-20 04:26:05 [2025-02-20 04:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515277', 'tblTempUsageDetail_20' ) start [2025-02-20 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515277', 'tblTempUsageDetail_20' ) end [2025-02-20 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515277', 'tblTempVendorCDR_20' ) start [2025-02-20 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515277', 'tblTempVendorCDR_20' ) end [2025-02-20 04:26:16] Production.INFO: ProcessCDR(1,14515277,1,1,2) [2025-02-20 04:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515277', 'tblTempUsageDetail_20' ) start [2025-02-20 04:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515277', 'tblTempUsageDetail_20' ) end [2025-02-20 04:26:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:26:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:26:19] Production.INFO: ==2792== Releasing lock... [2025-02-20 04:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:26:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:27:05 [end_date_ymd] => 2025-02-20 04:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:27:05' and `end` < '2025-02-20 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-02-20 04:27:17] Production.INFO: count ==175 [2025-02-20 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:27:05 - End Time 2025-02-20 04:27:05 [2025-02-20 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515282', 'tblTempUsageDetail_20' ) start [2025-02-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515282', 'tblTempUsageDetail_20' ) end [2025-02-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515282', 'tblTempVendorCDR_20' ) start [2025-02-20 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515282', 'tblTempVendorCDR_20' ) end [2025-02-20 04:27:17] Production.INFO: ProcessCDR(1,14515282,1,1,2) [2025-02-20 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515282', 'tblTempUsageDetail_20' ) start [2025-02-20 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515282', 'tblTempUsageDetail_20' ) end [2025-02-20 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:27:20] Production.INFO: ==2867== Releasing lock... [2025-02-20 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:28:05 [end_date_ymd] => 2025-02-20 04:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:28:05' and `end` < '2025-02-20 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-02-20 04:28:17] Production.INFO: count ==175 [2025-02-20 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:28:05 - End Time 2025-02-20 04:28:05 [2025-02-20 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515287', 'tblTempUsageDetail_20' ) start [2025-02-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515287', 'tblTempUsageDetail_20' ) end [2025-02-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515287', 'tblTempVendorCDR_20' ) start [2025-02-20 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515287', 'tblTempVendorCDR_20' ) end [2025-02-20 04:28:17] Production.INFO: ProcessCDR(1,14515287,1,1,2) [2025-02-20 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515287', 'tblTempUsageDetail_20' ) start [2025-02-20 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515287', 'tblTempUsageDetail_20' ) end [2025-02-20 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:28:20] Production.INFO: ==2941== Releasing lock... [2025-02-20 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:29:05 [end_date_ymd] => 2025-02-20 04:29:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:29:05' and `end` < '2025-02-20 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-02-20 04:29:16] Production.INFO: count ==175 [2025-02-20 04:29:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:29:05 - End Time 2025-02-20 04:29:05 [2025-02-20 04:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515292', 'tblTempUsageDetail_20' ) start [2025-02-20 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515292', 'tblTempUsageDetail_20' ) end [2025-02-20 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515292', 'tblTempVendorCDR_20' ) start [2025-02-20 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515292', 'tblTempVendorCDR_20' ) end [2025-02-20 04:29:16] Production.INFO: ProcessCDR(1,14515292,1,1,2) [2025-02-20 04:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515292', 'tblTempUsageDetail_20' ) start [2025-02-20 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515292', 'tblTempUsageDetail_20' ) end [2025-02-20 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:29:20] Production.INFO: ==3020== Releasing lock... [2025-02-20 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:30:06 [end_date_ymd] => 2025-02-20 04:30:06 [RateCDR] => 1 ) [2025-02-20 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:30:06' and `end` < '2025-02-20 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:30:18] Production.INFO: count ==179 [2025-02-20 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:30:06 - End Time 2025-02-20 04:30:06 [2025-02-20 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515298', 'tblTempUsageDetail_20' ) start [2025-02-20 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515298', 'tblTempUsageDetail_20' ) end [2025-02-20 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515298', 'tblTempVendorCDR_20' ) start [2025-02-20 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515298', 'tblTempVendorCDR_20' ) end [2025-02-20 04:30:18] Production.INFO: ProcessCDR(1,14515298,1,1,2) [2025-02-20 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515298', 'tblTempUsageDetail_20' ) start [2025-02-20 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515298', 'tblTempUsageDetail_20' ) end [2025-02-20 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:30:21] Production.INFO: ==3105== Releasing lock... [2025-02-20 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:30:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:31:06 [end_date_ymd] => 2025-02-20 04:31:06 [RateCDR] => 1 ) [2025-02-20 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:31:06' and `end` < '2025-02-20 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:31:17] Production.INFO: count ==181 [2025-02-20 04:31:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:31:06 - End Time 2025-02-20 04:31:06 [2025-02-20 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515304', 'tblTempUsageDetail_20' ) start [2025-02-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515304', 'tblTempUsageDetail_20' ) end [2025-02-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515304', 'tblTempVendorCDR_20' ) start [2025-02-20 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515304', 'tblTempVendorCDR_20' ) end [2025-02-20 04:31:18] Production.INFO: ProcessCDR(1,14515304,1,1,2) [2025-02-20 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515304', 'tblTempUsageDetail_20' ) start [2025-02-20 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515304', 'tblTempUsageDetail_20' ) end [2025-02-20 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:31:22] Production.INFO: ==3184== Releasing lock... [2025-02-20 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:32:05 [end_date_ymd] => 2025-02-20 04:32:05 [RateCDR] => 1 ) [2025-02-20 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:32:05' and `end` < '2025-02-20 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:32:17] Production.INFO: count ==183 [2025-02-20 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:32:05 - End Time 2025-02-20 04:32:05 [2025-02-20 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515309', 'tblTempUsageDetail_20' ) start [2025-02-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515309', 'tblTempUsageDetail_20' ) end [2025-02-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515309', 'tblTempVendorCDR_20' ) start [2025-02-20 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515309', 'tblTempVendorCDR_20' ) end [2025-02-20 04:32:17] Production.INFO: ProcessCDR(1,14515309,1,1,2) [2025-02-20 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515309', 'tblTempUsageDetail_20' ) start [2025-02-20 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515309', 'tblTempUsageDetail_20' ) end [2025-02-20 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:32:20] Production.INFO: ==3328== Releasing lock... [2025-02-20 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:33:05 [end_date_ymd] => 2025-02-20 04:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:33:05' and `end` < '2025-02-20 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-02-20 04:33:17] Production.INFO: count ==183 [2025-02-20 04:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:33:05 - End Time 2025-02-20 04:33:05 [2025-02-20 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515314', 'tblTempUsageDetail_20' ) start [2025-02-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515314', 'tblTempUsageDetail_20' ) end [2025-02-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515314', 'tblTempVendorCDR_20' ) start [2025-02-20 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515314', 'tblTempVendorCDR_20' ) end [2025-02-20 04:33:17] Production.INFO: ProcessCDR(1,14515314,1,1,2) [2025-02-20 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515314', 'tblTempUsageDetail_20' ) start [2025-02-20 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515314', 'tblTempUsageDetail_20' ) end [2025-02-20 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:33:20] Production.INFO: ==3405== Releasing lock... [2025-02-20 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:34:05 [end_date_ymd] => 2025-02-20 04:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:34:05' and `end` < '2025-02-20 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-02-20 04:34:17] Production.INFO: count ==183 [2025-02-20 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:34:05 - End Time 2025-02-20 04:34:05 [2025-02-20 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515319', 'tblTempUsageDetail_20' ) start [2025-02-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515319', 'tblTempUsageDetail_20' ) end [2025-02-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515319', 'tblTempVendorCDR_20' ) start [2025-02-20 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515319', 'tblTempVendorCDR_20' ) end [2025-02-20 04:34:17] Production.INFO: ProcessCDR(1,14515319,1,1,2) [2025-02-20 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515319', 'tblTempUsageDetail_20' ) start [2025-02-20 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515319', 'tblTempUsageDetail_20' ) end [2025-02-20 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:34:20] Production.INFO: ==3494== Releasing lock... [2025-02-20 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:35:05 [end_date_ymd] => 2025-02-20 04:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:35:05' and `end` < '2025-02-20 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-02-20 04:35:17] Production.INFO: count ==183 [2025-02-20 04:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:35:05 - End Time 2025-02-20 04:35:05 [2025-02-20 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515324', 'tblTempUsageDetail_20' ) start [2025-02-20 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515324', 'tblTempUsageDetail_20' ) end [2025-02-20 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515324', 'tblTempVendorCDR_20' ) start [2025-02-20 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515324', 'tblTempVendorCDR_20' ) end [2025-02-20 04:35:17] Production.INFO: ProcessCDR(1,14515324,1,1,2) [2025-02-20 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515324', 'tblTempUsageDetail_20' ) start [2025-02-20 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515324', 'tblTempUsageDetail_20' ) end [2025-02-20 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:35:20] Production.INFO: ==3575== Releasing lock... [2025-02-20 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:36:05 [end_date_ymd] => 2025-02-20 04:36:05 [RateCDR] => 1 ) [2025-02-20 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:36:05' and `end` < '2025-02-20 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:36:17] Production.INFO: count ==183 [2025-02-20 04:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:36:05 - End Time 2025-02-20 04:36:05 [2025-02-20 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515329', 'tblTempUsageDetail_20' ) start [2025-02-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515329', 'tblTempUsageDetail_20' ) end [2025-02-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515329', 'tblTempVendorCDR_20' ) start [2025-02-20 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515329', 'tblTempVendorCDR_20' ) end [2025-02-20 04:36:17] Production.INFO: ProcessCDR(1,14515329,1,1,2) [2025-02-20 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515329', 'tblTempUsageDetail_20' ) start [2025-02-20 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515329', 'tblTempUsageDetail_20' ) end [2025-02-20 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:36:20] Production.INFO: ==3652== Releasing lock... [2025-02-20 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:37:05 [end_date_ymd] => 2025-02-20 04:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:37:05' and `end` < '2025-02-20 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-02-20 04:37:17] Production.INFO: count ==181 [2025-02-20 04:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:37:05 - End Time 2025-02-20 04:37:05 [2025-02-20 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515334', 'tblTempUsageDetail_20' ) start [2025-02-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515334', 'tblTempUsageDetail_20' ) end [2025-02-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515334', 'tblTempVendorCDR_20' ) start [2025-02-20 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515334', 'tblTempVendorCDR_20' ) end [2025-02-20 04:37:17] Production.INFO: ProcessCDR(1,14515334,1,1,2) [2025-02-20 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515334', 'tblTempUsageDetail_20' ) start [2025-02-20 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515334', 'tblTempUsageDetail_20' ) end [2025-02-20 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:37:22] Production.INFO: ==3732== Releasing lock... [2025-02-20 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:38:05 [end_date_ymd] => 2025-02-20 04:38:05 [RateCDR] => 1 ) [2025-02-20 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:38:05' and `end` < '2025-02-20 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:38:17] Production.INFO: count ==181 [2025-02-20 04:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:38:05 - End Time 2025-02-20 04:38:05 [2025-02-20 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515339', 'tblTempUsageDetail_20' ) start [2025-02-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515339', 'tblTempUsageDetail_20' ) end [2025-02-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515339', 'tblTempVendorCDR_20' ) start [2025-02-20 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515339', 'tblTempVendorCDR_20' ) end [2025-02-20 04:38:17] Production.INFO: ProcessCDR(1,14515339,1,1,2) [2025-02-20 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515339', 'tblTempUsageDetail_20' ) start [2025-02-20 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515339', 'tblTempUsageDetail_20' ) end [2025-02-20 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:38:20] Production.INFO: ==3810== Releasing lock... [2025-02-20 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:38:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:39:05 [end_date_ymd] => 2025-02-20 04:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:39:05' and `end` < '2025-02-20 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-02-20 04:39:17] Production.INFO: count ==180 [2025-02-20 04:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:39:05 - End Time 2025-02-20 04:39:05 [2025-02-20 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515344', 'tblTempUsageDetail_20' ) start [2025-02-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515344', 'tblTempUsageDetail_20' ) end [2025-02-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515344', 'tblTempVendorCDR_20' ) start [2025-02-20 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515344', 'tblTempVendorCDR_20' ) end [2025-02-20 04:39:17] Production.INFO: ProcessCDR(1,14515344,1,1,2) [2025-02-20 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515344', 'tblTempUsageDetail_20' ) start [2025-02-20 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515344', 'tblTempUsageDetail_20' ) end [2025-02-20 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:39:20] Production.INFO: ==3888== Releasing lock... [2025-02-20 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:39:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:40:06 [end_date_ymd] => 2025-02-20 04:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:40:06' and `end` < '2025-02-20 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-02-20 04:40:17] Production.INFO: count ==178 [2025-02-20 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:40:06 - End Time 2025-02-20 04:40:06 [2025-02-20 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515349', 'tblTempUsageDetail_20' ) start [2025-02-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515349', 'tblTempUsageDetail_20' ) end [2025-02-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515349', 'tblTempVendorCDR_20' ) start [2025-02-20 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515349', 'tblTempVendorCDR_20' ) end [2025-02-20 04:40:18] Production.INFO: ProcessCDR(1,14515349,1,1,2) [2025-02-20 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515349', 'tblTempUsageDetail_20' ) start [2025-02-20 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515349', 'tblTempUsageDetail_20' ) end [2025-02-20 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:40:21] Production.INFO: ==3969== Releasing lock... [2025-02-20 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:41:05 [end_date_ymd] => 2025-02-20 04:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:41:05' and `end` < '2025-02-20 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-02-20 04:41:17] Production.INFO: count ==178 [2025-02-20 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:41:05 - End Time 2025-02-20 04:41:05 [2025-02-20 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515355', 'tblTempUsageDetail_20' ) start [2025-02-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515355', 'tblTempUsageDetail_20' ) end [2025-02-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515355', 'tblTempVendorCDR_20' ) start [2025-02-20 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515355', 'tblTempVendorCDR_20' ) end [2025-02-20 04:41:17] Production.INFO: ProcessCDR(1,14515355,1,1,2) [2025-02-20 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515355', 'tblTempUsageDetail_20' ) start [2025-02-20 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515355', 'tblTempUsageDetail_20' ) end [2025-02-20 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:41:20] Production.INFO: ==4045== Releasing lock... [2025-02-20 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:42:05 [end_date_ymd] => 2025-02-20 04:42:05 [RateCDR] => 1 ) [2025-02-20 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:42:05' and `end` < '2025-02-20 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:42:17] Production.INFO: count ==178 [2025-02-20 04:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:42:05 - End Time 2025-02-20 04:42:05 [2025-02-20 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515360', 'tblTempUsageDetail_20' ) start [2025-02-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515360', 'tblTempUsageDetail_20' ) end [2025-02-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515360', 'tblTempVendorCDR_20' ) start [2025-02-20 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515360', 'tblTempVendorCDR_20' ) end [2025-02-20 04:42:17] Production.INFO: ProcessCDR(1,14515360,1,1,2) [2025-02-20 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515360', 'tblTempUsageDetail_20' ) start [2025-02-20 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515360', 'tblTempUsageDetail_20' ) end [2025-02-20 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:42:20] Production.INFO: ==4120== Releasing lock... [2025-02-20 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:43:05 [end_date_ymd] => 2025-02-20 04:43:05 [RateCDR] => 1 ) [2025-02-20 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:43:05' and `end` < '2025-02-20 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:43:17] Production.INFO: count ==178 [2025-02-20 04:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:43:05 - End Time 2025-02-20 04:43:05 [2025-02-20 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515365', 'tblTempUsageDetail_20' ) start [2025-02-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515365', 'tblTempUsageDetail_20' ) end [2025-02-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515365', 'tblTempVendorCDR_20' ) start [2025-02-20 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515365', 'tblTempVendorCDR_20' ) end [2025-02-20 04:43:17] Production.INFO: ProcessCDR(1,14515365,1,1,2) [2025-02-20 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515365', 'tblTempUsageDetail_20' ) start [2025-02-20 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515365', 'tblTempUsageDetail_20' ) end [2025-02-20 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:43:20] Production.INFO: ==4196== Releasing lock... [2025-02-20 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:44:04 [end_date_ymd] => 2025-02-20 04:44:04 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:44:04' and `end` < '2025-02-20 04:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:44:16] Production.INFO: count ==178 [2025-02-20 04:44:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:44:04 - End Time 2025-02-20 04:44:04 [2025-02-20 04:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515370', 'tblTempUsageDetail_20' ) start [2025-02-20 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515370', 'tblTempUsageDetail_20' ) end [2025-02-20 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515370', 'tblTempVendorCDR_20' ) start [2025-02-20 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515370', 'tblTempVendorCDR_20' ) end [2025-02-20 04:44:16] Production.INFO: ProcessCDR(1,14515370,1,1,2) [2025-02-20 04:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515370', 'tblTempUsageDetail_20' ) start [2025-02-20 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515370', 'tblTempUsageDetail_20' ) end [2025-02-20 04:44:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:44:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:44:19] Production.INFO: ==4273== Releasing lock... [2025-02-20 04:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:44:19] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:45:05 [end_date_ymd] => 2025-02-20 04:45:05 [RateCDR] => 1 ) [2025-02-20 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:45:05' and `end` < '2025-02-20 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:45:17] Production.INFO: count ==178 [2025-02-20 04:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:45:05 - End Time 2025-02-20 04:45:05 [2025-02-20 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515375', 'tblTempUsageDetail_20' ) start [2025-02-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515375', 'tblTempUsageDetail_20' ) end [2025-02-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515375', 'tblTempVendorCDR_20' ) start [2025-02-20 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515375', 'tblTempVendorCDR_20' ) end [2025-02-20 04:45:17] Production.INFO: ProcessCDR(1,14515375,1,1,2) [2025-02-20 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515375', 'tblTempUsageDetail_20' ) start [2025-02-20 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515375', 'tblTempUsageDetail_20' ) end [2025-02-20 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:45:20] Production.INFO: ==4352== Releasing lock... [2025-02-20 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:46:05 [end_date_ymd] => 2025-02-20 04:46:05 [RateCDR] => 1 ) [2025-02-20 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:46:05' and `end` < '2025-02-20 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:46:17] Production.INFO: count ==178 [2025-02-20 04:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:46:05 - End Time 2025-02-20 04:46:05 [2025-02-20 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515380', 'tblTempUsageDetail_20' ) start [2025-02-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515380', 'tblTempUsageDetail_20' ) end [2025-02-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515380', 'tblTempVendorCDR_20' ) start [2025-02-20 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515380', 'tblTempVendorCDR_20' ) end [2025-02-20 04:46:17] Production.INFO: ProcessCDR(1,14515380,1,1,2) [2025-02-20 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515380', 'tblTempUsageDetail_20' ) start [2025-02-20 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515380', 'tblTempUsageDetail_20' ) end [2025-02-20 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:46:21] Production.INFO: ==4431== Releasing lock... [2025-02-20 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:47:05 [end_date_ymd] => 2025-02-20 04:47:05 [RateCDR] => 1 ) [2025-02-20 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:47:05' and `end` < '2025-02-20 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:47:17] Production.INFO: count ==178 [2025-02-20 04:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:47:05 - End Time 2025-02-20 04:47:05 [2025-02-20 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515385', 'tblTempUsageDetail_20' ) start [2025-02-20 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515385', 'tblTempUsageDetail_20' ) end [2025-02-20 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515385', 'tblTempVendorCDR_20' ) start [2025-02-20 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515385', 'tblTempVendorCDR_20' ) end [2025-02-20 04:47:17] Production.INFO: ProcessCDR(1,14515385,1,1,2) [2025-02-20 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515385', 'tblTempUsageDetail_20' ) start [2025-02-20 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515385', 'tblTempUsageDetail_20' ) end [2025-02-20 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:47:21] Production.INFO: ==4542== Releasing lock... [2025-02-20 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:48:05 [end_date_ymd] => 2025-02-20 04:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:48:05' and `end` < '2025-02-20 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-02-20 04:48:18] Production.INFO: count ==178 [2025-02-20 04:48:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:48:05 - End Time 2025-02-20 04:48:05 [2025-02-20 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515390', 'tblTempUsageDetail_20' ) start [2025-02-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515390', 'tblTempUsageDetail_20' ) end [2025-02-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515390', 'tblTempVendorCDR_20' ) start [2025-02-20 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515390', 'tblTempVendorCDR_20' ) end [2025-02-20 04:48:18] Production.INFO: ProcessCDR(1,14515390,1,1,2) [2025-02-20 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515390', 'tblTempUsageDetail_20' ) start [2025-02-20 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515390', 'tblTempUsageDetail_20' ) end [2025-02-20 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:48:21] Production.INFO: ==4635== Releasing lock... [2025-02-20 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:49:04 [end_date_ymd] => 2025-02-20 04:49:04 [RateCDR] => 1 ) [2025-02-20 04: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-02-20 01:49:04' and `end` < '2025-02-20 04: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-02-20 04:49:16] Production.INFO: count ==178 [2025-02-20 04:49:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:49:04 - End Time 2025-02-20 04:49:04 [2025-02-20 04:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515395', 'tblTempUsageDetail_20' ) start [2025-02-20 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515395', 'tblTempUsageDetail_20' ) end [2025-02-20 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515395', 'tblTempVendorCDR_20' ) start [2025-02-20 04:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515395', 'tblTempVendorCDR_20' ) end [2025-02-20 04:49:16] Production.INFO: ProcessCDR(1,14515395,1,1,2) [2025-02-20 04:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515395', 'tblTempUsageDetail_20' ) start [2025-02-20 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515395', 'tblTempUsageDetail_20' ) end [2025-02-20 04:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:49:20] Production.INFO: ==4712== Releasing lock... [2025-02-20 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:50:06 [end_date_ymd] => 2025-02-20 04:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:50:06' and `end` < '2025-02-20 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-02-20 04:50:18] Production.INFO: count ==176 [2025-02-20 04:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:50:06 - End Time 2025-02-20 04:50:06 [2025-02-20 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515401', 'tblTempUsageDetail_20' ) start [2025-02-20 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515401', 'tblTempUsageDetail_20' ) end [2025-02-20 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515401', 'tblTempVendorCDR_20' ) start [2025-02-20 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515401', 'tblTempVendorCDR_20' ) end [2025-02-20 04:50:18] Production.INFO: ProcessCDR(1,14515401,1,1,2) [2025-02-20 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515401', 'tblTempUsageDetail_20' ) start [2025-02-20 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515401', 'tblTempUsageDetail_20' ) end [2025-02-20 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:50:22] Production.INFO: ==4791== Releasing lock... [2025-02-20 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:51:05 [end_date_ymd] => 2025-02-20 04:51:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:51:05' and `end` < '2025-02-20 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-02-20 04:51:17] Production.INFO: count ==176 [2025-02-20 04:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:51:05 - End Time 2025-02-20 04:51:05 [2025-02-20 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515406', 'tblTempUsageDetail_20' ) start [2025-02-20 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515406', 'tblTempUsageDetail_20' ) end [2025-02-20 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515406', 'tblTempVendorCDR_20' ) start [2025-02-20 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515406', 'tblTempVendorCDR_20' ) end [2025-02-20 04:51:17] Production.INFO: ProcessCDR(1,14515406,1,1,2) [2025-02-20 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515406', 'tblTempUsageDetail_20' ) start [2025-02-20 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515406', 'tblTempUsageDetail_20' ) end [2025-02-20 04:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:51:20] Production.INFO: ==4873== Releasing lock... [2025-02-20 04:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:52:05 [end_date_ymd] => 2025-02-20 04:52:05 [RateCDR] => 1 ) [2025-02-20 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:52:05' and `end` < '2025-02-20 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:52:17] Production.INFO: count ==176 [2025-02-20 04:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:52:05 - End Time 2025-02-20 04:52:05 [2025-02-20 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515411', 'tblTempUsageDetail_20' ) start [2025-02-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515411', 'tblTempUsageDetail_20' ) end [2025-02-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515411', 'tblTempVendorCDR_20' ) start [2025-02-20 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515411', 'tblTempVendorCDR_20' ) end [2025-02-20 04:52:17] Production.INFO: ProcessCDR(1,14515411,1,1,2) [2025-02-20 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515411', 'tblTempUsageDetail_20' ) start [2025-02-20 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515411', 'tblTempUsageDetail_20' ) end [2025-02-20 04:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:52:20] Production.INFO: ==4947== Releasing lock... [2025-02-20 04:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:52:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:53:05 [end_date_ymd] => 2025-02-20 04:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:53:05' and `end` < '2025-02-20 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-02-20 04:53:17] Production.INFO: count ==176 [2025-02-20 04:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:53:05 - End Time 2025-02-20 04:53:05 [2025-02-20 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515416', 'tblTempUsageDetail_20' ) start [2025-02-20 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515416', 'tblTempUsageDetail_20' ) end [2025-02-20 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515416', 'tblTempVendorCDR_20' ) start [2025-02-20 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515416', 'tblTempVendorCDR_20' ) end [2025-02-20 04:53:17] Production.INFO: ProcessCDR(1,14515416,1,1,2) [2025-02-20 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515416', 'tblTempUsageDetail_20' ) start [2025-02-20 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515416', 'tblTempUsageDetail_20' ) end [2025-02-20 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:53:21] Production.INFO: ==5029== Releasing lock... [2025-02-20 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:54:05 [end_date_ymd] => 2025-02-20 04:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:54:05' and `end` < '2025-02-20 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-02-20 04:54:18] Production.INFO: count ==171 [2025-02-20 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:54:05 - End Time 2025-02-20 04:54:05 [2025-02-20 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515421', 'tblTempUsageDetail_20' ) start [2025-02-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515421', 'tblTempUsageDetail_20' ) end [2025-02-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515421', 'tblTempVendorCDR_20' ) start [2025-02-20 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515421', 'tblTempVendorCDR_20' ) end [2025-02-20 04:54:18] Production.INFO: ProcessCDR(1,14515421,1,1,2) [2025-02-20 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515421', 'tblTempUsageDetail_20' ) start [2025-02-20 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515421', 'tblTempUsageDetail_20' ) end [2025-02-20 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:54:21] Production.INFO: ==5105== Releasing lock... [2025-02-20 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:55:05 [end_date_ymd] => 2025-02-20 04:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:55:05' and `end` < '2025-02-20 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-02-20 04:55:17] Production.INFO: count ==166 [2025-02-20 04:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 01:55:05 - End Time 2025-02-20 04:55:05 [2025-02-20 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515426', 'tblTempUsageDetail_20' ) start [2025-02-20 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515426', 'tblTempUsageDetail_20' ) end [2025-02-20 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515426', 'tblTempVendorCDR_20' ) start [2025-02-20 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515426', 'tblTempVendorCDR_20' ) end [2025-02-20 04:55:17] Production.INFO: ProcessCDR(1,14515426,1,1,2) [2025-02-20 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515426', 'tblTempUsageDetail_20' ) start [2025-02-20 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515426', 'tblTempUsageDetail_20' ) end [2025-02-20 04:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:55:20] Production.INFO: ==5179== Releasing lock... [2025-02-20 04:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:56:05 [end_date_ymd] => 2025-02-20 04:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:56:05' and `end` < '2025-02-20 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-02-20 04:56:19] Production.INFO: count ==156 [2025-02-20 04:56:19] Production.ERROR: pbx CDR StartTime 2025-02-20 01:56:05 - End Time 2025-02-20 04:56:05 [2025-02-20 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515431', 'tblTempUsageDetail_20' ) start [2025-02-20 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515431', 'tblTempUsageDetail_20' ) end [2025-02-20 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515431', 'tblTempVendorCDR_20' ) start [2025-02-20 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515431', 'tblTempVendorCDR_20' ) end [2025-02-20 04:56:19] Production.INFO: ProcessCDR(1,14515431,1,1,2) [2025-02-20 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515431', 'tblTempUsageDetail_20' ) start [2025-02-20 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515431', 'tblTempUsageDetail_20' ) end [2025-02-20 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:56:22] Production.INFO: ==5250== Releasing lock... [2025-02-20 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:57:04 [end_date_ymd] => 2025-02-20 04:57:04 [RateCDR] => 1 ) [2025-02-20 04:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:57:04' and `end` < '2025-02-20 04:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:57:16] Production.INFO: count ==146 [2025-02-20 04:57:16] Production.ERROR: pbx CDR StartTime 2025-02-20 01:57:04 - End Time 2025-02-20 04:57:04 [2025-02-20 04:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515436', 'tblTempUsageDetail_20' ) start [2025-02-20 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515436', 'tblTempUsageDetail_20' ) end [2025-02-20 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515436', 'tblTempVendorCDR_20' ) start [2025-02-20 04:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515436', 'tblTempVendorCDR_20' ) end [2025-02-20 04:57:16] Production.INFO: ProcessCDR(1,14515436,1,1,2) [2025-02-20 04:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515436', 'tblTempUsageDetail_20' ) start [2025-02-20 04:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515436', 'tblTempUsageDetail_20' ) end [2025-02-20 04:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:57:19] Production.INFO: ==5321== Releasing lock... [2025-02-20 04:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:57:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:58:05 [end_date_ymd] => 2025-02-20 04:58:05 [RateCDR] => 1 ) [2025-02-20 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 01:58:05' and `end` < '2025-02-20 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 04:58:18] Production.INFO: count ==137 [2025-02-20 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:58:05 - End Time 2025-02-20 04:58:05 [2025-02-20 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515441', 'tblTempUsageDetail_20' ) start [2025-02-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515441', 'tblTempUsageDetail_20' ) end [2025-02-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515441', 'tblTempVendorCDR_20' ) start [2025-02-20 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515441', 'tblTempVendorCDR_20' ) end [2025-02-20 04:58:18] Production.INFO: ProcessCDR(1,14515441,1,1,2) [2025-02-20 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515441', 'tblTempUsageDetail_20' ) start [2025-02-20 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515441', 'tblTempUsageDetail_20' ) end [2025-02-20 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:58:21] Production.INFO: ==5392== Releasing lock... [2025-02-20 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 01:59:05 [end_date_ymd] => 2025-02-20 04:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 01:59:05' and `end` < '2025-02-20 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-02-20 04:59:18] Production.INFO: count ==137 [2025-02-20 04:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 01:59:05 - End Time 2025-02-20 04:59:05 [2025-02-20 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515446', 'tblTempUsageDetail_20' ) start [2025-02-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515446', 'tblTempUsageDetail_20' ) end [2025-02-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515446', 'tblTempVendorCDR_20' ) start [2025-02-20 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515446', 'tblTempVendorCDR_20' ) end [2025-02-20 04:59:18] Production.INFO: ProcessCDR(1,14515446,1,1,2) [2025-02-20 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515446', 'tblTempUsageDetail_20' ) start [2025-02-20 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515446', 'tblTempUsageDetail_20' ) end [2025-02-20 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 04:59:21] Production.INFO: ==5464== Releasing lock... [2025-02-20 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 04:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:00:06 [end_date_ymd] => 2025-02-20 05:00:06 [RateCDR] => 1 ) [2025-02-20 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:00:06' and `end` < '2025-02-20 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:00:18] Production.INFO: count ==123 [2025-02-20 05:00:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:00:06 - End Time 2025-02-20 05:00:06 [2025-02-20 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515452', 'tblTempUsageDetail_20' ) start [2025-02-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515452', 'tblTempUsageDetail_20' ) end [2025-02-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515452', 'tblTempVendorCDR_20' ) start [2025-02-20 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515452', 'tblTempVendorCDR_20' ) end [2025-02-20 05:00:18] Production.INFO: ProcessCDR(1,14515452,1,1,2) [2025-02-20 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515452', 'tblTempUsageDetail_20' ) start [2025-02-20 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515452', 'tblTempUsageDetail_20' ) end [2025-02-20 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:00:21] Production.INFO: ==5538== Releasing lock... [2025-02-20 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:00:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:01:05 [end_date_ymd] => 2025-02-20 05:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:01:05' and `end` < '2025-02-20 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-02-20 05:01:18] Production.INFO: count ==111 [2025-02-20 05:01:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:01:05 - End Time 2025-02-20 05:01:05 [2025-02-20 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515457', 'tblTempUsageDetail_20' ) start [2025-02-20 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515457', 'tblTempUsageDetail_20' ) end [2025-02-20 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515457', 'tblTempVendorCDR_20' ) start [2025-02-20 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515457', 'tblTempVendorCDR_20' ) end [2025-02-20 05:01:18] Production.INFO: ProcessCDR(1,14515457,1,1,2) [2025-02-20 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515457', 'tblTempUsageDetail_20' ) start [2025-02-20 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515457', 'tblTempUsageDetail_20' ) end [2025-02-20 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:01:21] Production.INFO: ==5623== Releasing lock... [2025-02-20 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:01:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:02:06 [end_date_ymd] => 2025-02-20 05:02:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:02:06' and `end` < '2025-02-20 05: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-02-20 05:02:18] Production.INFO: count ==101 [2025-02-20 05:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:02:06 - End Time 2025-02-20 05:02:06 [2025-02-20 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515462', 'tblTempUsageDetail_20' ) start [2025-02-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515462', 'tblTempUsageDetail_20' ) end [2025-02-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515462', 'tblTempVendorCDR_20' ) start [2025-02-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515462', 'tblTempVendorCDR_20' ) end [2025-02-20 05:02:18] Production.INFO: ProcessCDR(1,14515462,1,1,2) [2025-02-20 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515462', 'tblTempUsageDetail_20' ) start [2025-02-20 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515462', 'tblTempUsageDetail_20' ) end [2025-02-20 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:02:21] Production.INFO: ==5712== Releasing lock... [2025-02-20 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:03:06 [end_date_ymd] => 2025-02-20 05:03:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:03:06' and `end` < '2025-02-20 05: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-02-20 05:03:18] Production.INFO: count ==96 [2025-02-20 05:03:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:03:06 - End Time 2025-02-20 05:03:06 [2025-02-20 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515467', 'tblTempUsageDetail_20' ) start [2025-02-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515467', 'tblTempUsageDetail_20' ) end [2025-02-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515467', 'tblTempVendorCDR_20' ) start [2025-02-20 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515467', 'tblTempVendorCDR_20' ) end [2025-02-20 05:03:18] Production.INFO: ProcessCDR(1,14515467,1,1,2) [2025-02-20 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515467', 'tblTempUsageDetail_20' ) start [2025-02-20 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515467', 'tblTempUsageDetail_20' ) end [2025-02-20 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:03:22] Production.INFO: ==5810== Releasing lock... [2025-02-20 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:04:05 [end_date_ymd] => 2025-02-20 05:04:05 [RateCDR] => 1 ) [2025-02-20 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:04:05' and `end` < '2025-02-20 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:04:17] Production.INFO: count ==86 [2025-02-20 05:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:04:05 - End Time 2025-02-20 05:04:05 [2025-02-20 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515472', 'tblTempUsageDetail_20' ) start [2025-02-20 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515472', 'tblTempUsageDetail_20' ) end [2025-02-20 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515472', 'tblTempVendorCDR_20' ) start [2025-02-20 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515472', 'tblTempVendorCDR_20' ) end [2025-02-20 05:04:17] Production.INFO: ProcessCDR(1,14515472,1,1,2) [2025-02-20 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515472', 'tblTempUsageDetail_20' ) start [2025-02-20 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515472', 'tblTempUsageDetail_20' ) end [2025-02-20 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:04:21] Production.INFO: ==5881== Releasing lock... [2025-02-20 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:05:05 [end_date_ymd] => 2025-02-20 05:05:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:05:05' and `end` < '2025-02-20 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-02-20 05:05:17] Production.INFO: count ==76 [2025-02-20 05:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:05:05 - End Time 2025-02-20 05:05:05 [2025-02-20 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515477', 'tblTempUsageDetail_20' ) start [2025-02-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515477', 'tblTempUsageDetail_20' ) end [2025-02-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515477', 'tblTempVendorCDR_20' ) start [2025-02-20 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515477', 'tblTempVendorCDR_20' ) end [2025-02-20 05:05:17] Production.INFO: ProcessCDR(1,14515477,1,1,2) [2025-02-20 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515477', 'tblTempUsageDetail_20' ) start [2025-02-20 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515477', 'tblTempUsageDetail_20' ) end [2025-02-20 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:05:20] Production.INFO: ==5953== Releasing lock... [2025-02-20 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:06:05 [end_date_ymd] => 2025-02-20 05:06:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:06:05' and `end` < '2025-02-20 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-02-20 05:06:17] Production.INFO: count ==72 [2025-02-20 05:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:06:05 - End Time 2025-02-20 05:06:05 [2025-02-20 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515482', 'tblTempUsageDetail_20' ) start [2025-02-20 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515482', 'tblTempUsageDetail_20' ) end [2025-02-20 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515482', 'tblTempVendorCDR_20' ) start [2025-02-20 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515482', 'tblTempVendorCDR_20' ) end [2025-02-20 05:06:17] Production.INFO: ProcessCDR(1,14515482,1,1,2) [2025-02-20 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515482', 'tblTempUsageDetail_20' ) start [2025-02-20 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515482', 'tblTempUsageDetail_20' ) end [2025-02-20 05:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:06:20] Production.INFO: ==6024== Releasing lock... [2025-02-20 05:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:07:05 [end_date_ymd] => 2025-02-20 05:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:07:05' and `end` < '2025-02-20 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-02-20 05:07:17] Production.INFO: count ==72 [2025-02-20 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:07:05 - End Time 2025-02-20 05:07:05 [2025-02-20 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515487', 'tblTempUsageDetail_20' ) start [2025-02-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515487', 'tblTempUsageDetail_20' ) end [2025-02-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515487', 'tblTempVendorCDR_20' ) start [2025-02-20 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515487', 'tblTempVendorCDR_20' ) end [2025-02-20 05:07:17] Production.INFO: ProcessCDR(1,14515487,1,1,2) [2025-02-20 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515487', 'tblTempUsageDetail_20' ) start [2025-02-20 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515487', 'tblTempUsageDetail_20' ) end [2025-02-20 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:07:20] Production.INFO: ==6094== Releasing lock... [2025-02-20 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:08:05 [end_date_ymd] => 2025-02-20 05:08:05 [RateCDR] => 1 ) [2025-02-20 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:08:05' and `end` < '2025-02-20 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:08:17] Production.INFO: count ==72 [2025-02-20 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:08:05 - End Time 2025-02-20 05:08:05 [2025-02-20 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515492', 'tblTempUsageDetail_20' ) start [2025-02-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515492', 'tblTempUsageDetail_20' ) end [2025-02-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515492', 'tblTempVendorCDR_20' ) start [2025-02-20 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515492', 'tblTempVendorCDR_20' ) end [2025-02-20 05:08:17] Production.INFO: ProcessCDR(1,14515492,1,1,2) [2025-02-20 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515492', 'tblTempUsageDetail_20' ) start [2025-02-20 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515492', 'tblTempUsageDetail_20' ) end [2025-02-20 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:08:20] Production.INFO: ==6166== Releasing lock... [2025-02-20 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:09:05 [end_date_ymd] => 2025-02-20 05:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:09:05' and `end` < '2025-02-20 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-02-20 05:09:17] Production.INFO: count ==68 [2025-02-20 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:09:05 - End Time 2025-02-20 05:09:05 [2025-02-20 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515497', 'tblTempUsageDetail_20' ) start [2025-02-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515497', 'tblTempUsageDetail_20' ) end [2025-02-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515497', 'tblTempVendorCDR_20' ) start [2025-02-20 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515497', 'tblTempVendorCDR_20' ) end [2025-02-20 05:09:17] Production.INFO: ProcessCDR(1,14515497,1,1,2) [2025-02-20 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515497', 'tblTempUsageDetail_20' ) start [2025-02-20 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515497', 'tblTempUsageDetail_20' ) end [2025-02-20 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:09:20] Production.INFO: ==6238== Releasing lock... [2025-02-20 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:10:06 [end_date_ymd] => 2025-02-20 05:10:06 [RateCDR] => 1 ) [2025-02-20 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:10:06' and `end` < '2025-02-20 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:10:18] Production.INFO: count ==66 [2025-02-20 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:10:06 - End Time 2025-02-20 05:10:06 [2025-02-20 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515503', 'tblTempUsageDetail_20' ) start [2025-02-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515503', 'tblTempUsageDetail_20' ) end [2025-02-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515503', 'tblTempVendorCDR_20' ) start [2025-02-20 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515503', 'tblTempVendorCDR_20' ) end [2025-02-20 05:10:18] Production.INFO: ProcessCDR(1,14515503,1,1,2) [2025-02-20 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515503', 'tblTempUsageDetail_20' ) start [2025-02-20 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515503', 'tblTempUsageDetail_20' ) end [2025-02-20 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:10:21] Production.INFO: ==6310== Releasing lock... [2025-02-20 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:11:05 [end_date_ymd] => 2025-02-20 05:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:11:05' and `end` < '2025-02-20 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-02-20 05:11:17] Production.INFO: count ==66 [2025-02-20 05:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:11:05 - End Time 2025-02-20 05:11:05 [2025-02-20 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515508', 'tblTempUsageDetail_20' ) start [2025-02-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515508', 'tblTempUsageDetail_20' ) end [2025-02-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515508', 'tblTempVendorCDR_20' ) start [2025-02-20 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515508', 'tblTempVendorCDR_20' ) end [2025-02-20 05:11:17] Production.INFO: ProcessCDR(1,14515508,1,1,2) [2025-02-20 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515508', 'tblTempUsageDetail_20' ) start [2025-02-20 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515508', 'tblTempUsageDetail_20' ) end [2025-02-20 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:11:20] Production.INFO: ==6383== Releasing lock... [2025-02-20 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:12:05 [end_date_ymd] => 2025-02-20 05:12:05 [RateCDR] => 1 ) [2025-02-20 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:12:05' and `end` < '2025-02-20 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:12:17] Production.INFO: count ==66 [2025-02-20 05:12:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:12:05 - End Time 2025-02-20 05:12:05 [2025-02-20 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515513', 'tblTempUsageDetail_20' ) start [2025-02-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515513', 'tblTempUsageDetail_20' ) end [2025-02-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515513', 'tblTempVendorCDR_20' ) start [2025-02-20 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515513', 'tblTempVendorCDR_20' ) end [2025-02-20 05:12:17] Production.INFO: ProcessCDR(1,14515513,1,1,2) [2025-02-20 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515513', 'tblTempUsageDetail_20' ) start [2025-02-20 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515513', 'tblTempUsageDetail_20' ) end [2025-02-20 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:12:20] Production.INFO: ==6455== Releasing lock... [2025-02-20 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:13:05 [end_date_ymd] => 2025-02-20 05:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:13:05' and `end` < '2025-02-20 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-02-20 05:13:17] Production.INFO: count ==66 [2025-02-20 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:13:05 - End Time 2025-02-20 05:13:05 [2025-02-20 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515518', 'tblTempUsageDetail_20' ) start [2025-02-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515518', 'tblTempUsageDetail_20' ) end [2025-02-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515518', 'tblTempVendorCDR_20' ) start [2025-02-20 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515518', 'tblTempVendorCDR_20' ) end [2025-02-20 05:13:17] Production.INFO: ProcessCDR(1,14515518,1,1,2) [2025-02-20 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515518', 'tblTempUsageDetail_20' ) start [2025-02-20 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515518', 'tblTempUsageDetail_20' ) end [2025-02-20 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:13:20] Production.INFO: ==6530== Releasing lock... [2025-02-20 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:14:05 [end_date_ymd] => 2025-02-20 05:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:14:05' and `end` < '2025-02-20 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-02-20 05:14:16] Production.INFO: count ==66 [2025-02-20 05:14:16] Production.ERROR: pbx CDR StartTime 2025-02-20 02:14:05 - End Time 2025-02-20 05:14:05 [2025-02-20 05:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515523', 'tblTempUsageDetail_20' ) start [2025-02-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515523', 'tblTempUsageDetail_20' ) end [2025-02-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515523', 'tblTempVendorCDR_20' ) start [2025-02-20 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515523', 'tblTempVendorCDR_20' ) end [2025-02-20 05:14:17] Production.INFO: ProcessCDR(1,14515523,1,1,2) [2025-02-20 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515523', 'tblTempUsageDetail_20' ) start [2025-02-20 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515523', 'tblTempUsageDetail_20' ) end [2025-02-20 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:14:20] Production.INFO: ==6601== Releasing lock... [2025-02-20 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:15:05 [end_date_ymd] => 2025-02-20 05:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:15:05' and `end` < '2025-02-20 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-02-20 05:15:17] Production.INFO: count ==66 [2025-02-20 05:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:15:05 - End Time 2025-02-20 05:15:05 [2025-02-20 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515528', 'tblTempUsageDetail_20' ) start [2025-02-20 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515528', 'tblTempUsageDetail_20' ) end [2025-02-20 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515528', 'tblTempVendorCDR_20' ) start [2025-02-20 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515528', 'tblTempVendorCDR_20' ) end [2025-02-20 05:15:17] Production.INFO: ProcessCDR(1,14515528,1,1,2) [2025-02-20 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515528', 'tblTempUsageDetail_20' ) start [2025-02-20 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515528', 'tblTempUsageDetail_20' ) end [2025-02-20 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:15:20] Production.INFO: ==6671== Releasing lock... [2025-02-20 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:16:06 [end_date_ymd] => 2025-02-20 05:16:06 [RateCDR] => 1 ) [2025-02-20 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:16:06' and `end` < '2025-02-20 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:16:17] Production.INFO: count ==66 [2025-02-20 05:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:16:06 - End Time 2025-02-20 05:16:06 [2025-02-20 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515533', 'tblTempUsageDetail_20' ) start [2025-02-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515533', 'tblTempUsageDetail_20' ) end [2025-02-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515533', 'tblTempVendorCDR_20' ) start [2025-02-20 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515533', 'tblTempVendorCDR_20' ) end [2025-02-20 05:16:17] Production.INFO: ProcessCDR(1,14515533,1,1,2) [2025-02-20 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515533', 'tblTempUsageDetail_20' ) start [2025-02-20 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515533', 'tblTempUsageDetail_20' ) end [2025-02-20 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:16:20] Production.INFO: ==6745== Releasing lock... [2025-02-20 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:17:05 [end_date_ymd] => 2025-02-20 05:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:17:05' and `end` < '2025-02-20 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-02-20 05:17:17] Production.INFO: count ==65 [2025-02-20 05:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:17:05 - End Time 2025-02-20 05:17:05 [2025-02-20 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515538', 'tblTempUsageDetail_20' ) start [2025-02-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515538', 'tblTempUsageDetail_20' ) end [2025-02-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515538', 'tblTempVendorCDR_20' ) start [2025-02-20 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515538', 'tblTempVendorCDR_20' ) end [2025-02-20 05:17:17] Production.INFO: ProcessCDR(1,14515538,1,1,2) [2025-02-20 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515538', 'tblTempUsageDetail_20' ) start [2025-02-20 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515538', 'tblTempUsageDetail_20' ) end [2025-02-20 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:17:20] Production.INFO: ==6817== Releasing lock... [2025-02-20 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:18:05 [end_date_ymd] => 2025-02-20 05:18:05 [RateCDR] => 1 ) [2025-02-20 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:18:05' and `end` < '2025-02-20 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:18:17] Production.INFO: count ==66 [2025-02-20 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:18:05 - End Time 2025-02-20 05:18:05 [2025-02-20 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515543', 'tblTempUsageDetail_20' ) start [2025-02-20 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515543', 'tblTempUsageDetail_20' ) end [2025-02-20 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515543', 'tblTempVendorCDR_20' ) start [2025-02-20 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515543', 'tblTempVendorCDR_20' ) end [2025-02-20 05:18:17] Production.INFO: ProcessCDR(1,14515543,1,1,2) [2025-02-20 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515543', 'tblTempUsageDetail_20' ) start [2025-02-20 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515543', 'tblTempUsageDetail_20' ) end [2025-02-20 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:18:20] Production.INFO: ==6927== Releasing lock... [2025-02-20 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:19:04 [end_date_ymd] => 2025-02-20 05:19:04 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:19:04' and `end` < '2025-02-20 05: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-02-20 05:19:16] Production.INFO: count ==69 [2025-02-20 05:19:16] Production.ERROR: pbx CDR StartTime 2025-02-20 02:19:04 - End Time 2025-02-20 05:19:04 [2025-02-20 05:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515548', 'tblTempUsageDetail_20' ) start [2025-02-20 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515548', 'tblTempUsageDetail_20' ) end [2025-02-20 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515548', 'tblTempVendorCDR_20' ) start [2025-02-20 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515548', 'tblTempVendorCDR_20' ) end [2025-02-20 05:19:16] Production.INFO: ProcessCDR(1,14515548,1,1,2) [2025-02-20 05:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515548', 'tblTempUsageDetail_20' ) start [2025-02-20 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515548', 'tblTempUsageDetail_20' ) end [2025-02-20 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:19:20] Production.INFO: ==7000== Releasing lock... [2025-02-20 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:20:05 [end_date_ymd] => 2025-02-20 05:20:05 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:20:05' and `end` < '2025-02-20 05: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-02-20 05:20:17] Production.INFO: count ==67 [2025-02-20 05:20:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:20:05 - End Time 2025-02-20 05:20:05 [2025-02-20 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515554', 'tblTempUsageDetail_20' ) start [2025-02-20 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515554', 'tblTempUsageDetail_20' ) end [2025-02-20 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515554', 'tblTempVendorCDR_20' ) start [2025-02-20 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515554', 'tblTempVendorCDR_20' ) end [2025-02-20 05:20:17] Production.INFO: ProcessCDR(1,14515554,1,1,2) [2025-02-20 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515554', 'tblTempUsageDetail_20' ) start [2025-02-20 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515554', 'tblTempUsageDetail_20' ) end [2025-02-20 05:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:20:20] Production.INFO: ==7071== Releasing lock... [2025-02-20 05:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:20:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:21:05 [end_date_ymd] => 2025-02-20 05:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:21:05' and `end` < '2025-02-20 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-02-20 05:21:17] Production.INFO: count ==67 [2025-02-20 05:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:21:05 - End Time 2025-02-20 05:21:05 [2025-02-20 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515559', 'tblTempUsageDetail_20' ) start [2025-02-20 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515559', 'tblTempUsageDetail_20' ) end [2025-02-20 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515559', 'tblTempVendorCDR_20' ) start [2025-02-20 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515559', 'tblTempVendorCDR_20' ) end [2025-02-20 05:21:17] Production.INFO: ProcessCDR(1,14515559,1,1,2) [2025-02-20 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515559', 'tblTempUsageDetail_20' ) start [2025-02-20 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515559', 'tblTempUsageDetail_20' ) end [2025-02-20 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:21:20] Production.INFO: ==7144== Releasing lock... [2025-02-20 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:22:06 [end_date_ymd] => 2025-02-20 05:22:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:22:06' and `end` < '2025-02-20 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-02-20 05:22:17] Production.INFO: count ==67 [2025-02-20 05:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:22:06 - End Time 2025-02-20 05:22:06 [2025-02-20 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515564', 'tblTempUsageDetail_20' ) start [2025-02-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515564', 'tblTempUsageDetail_20' ) end [2025-02-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515564', 'tblTempVendorCDR_20' ) start [2025-02-20 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515564', 'tblTempVendorCDR_20' ) end [2025-02-20 05:22:17] Production.INFO: ProcessCDR(1,14515564,1,1,2) [2025-02-20 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515564', 'tblTempUsageDetail_20' ) start [2025-02-20 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515564', 'tblTempUsageDetail_20' ) end [2025-02-20 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:22:20] Production.INFO: ==7215== Releasing lock... [2025-02-20 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:23:05 [end_date_ymd] => 2025-02-20 05:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:23:05' and `end` < '2025-02-20 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-02-20 05:23:17] Production.INFO: count ==67 [2025-02-20 05:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:23:05 - End Time 2025-02-20 05:23:05 [2025-02-20 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515569', 'tblTempUsageDetail_20' ) start [2025-02-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515569', 'tblTempUsageDetail_20' ) end [2025-02-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515569', 'tblTempVendorCDR_20' ) start [2025-02-20 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515569', 'tblTempVendorCDR_20' ) end [2025-02-20 05:23:17] Production.INFO: ProcessCDR(1,14515569,1,1,2) [2025-02-20 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515569', 'tblTempUsageDetail_20' ) start [2025-02-20 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515569', 'tblTempUsageDetail_20' ) end [2025-02-20 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:23:20] Production.INFO: ==7287== Releasing lock... [2025-02-20 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:24:06 [end_date_ymd] => 2025-02-20 05:24:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:24:06' and `end` < '2025-02-20 05: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-02-20 05:24:17] Production.INFO: count ==67 [2025-02-20 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:24:06 - End Time 2025-02-20 05:24:06 [2025-02-20 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515574', 'tblTempUsageDetail_20' ) start [2025-02-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515574', 'tblTempUsageDetail_20' ) end [2025-02-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515574', 'tblTempVendorCDR_20' ) start [2025-02-20 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515574', 'tblTempVendorCDR_20' ) end [2025-02-20 05:24:17] Production.INFO: ProcessCDR(1,14515574,1,1,2) [2025-02-20 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515574', 'tblTempUsageDetail_20' ) start [2025-02-20 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515574', 'tblTempUsageDetail_20' ) end [2025-02-20 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:24:21] Production.INFO: ==7357== Releasing lock... [2025-02-20 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:25:05 [end_date_ymd] => 2025-02-20 05:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:25:05' and `end` < '2025-02-20 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-02-20 05:25:17] Production.INFO: count ==67 [2025-02-20 05:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:25:05 - End Time 2025-02-20 05:25:05 [2025-02-20 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515579', 'tblTempUsageDetail_20' ) start [2025-02-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515579', 'tblTempUsageDetail_20' ) end [2025-02-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515579', 'tblTempVendorCDR_20' ) start [2025-02-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515579', 'tblTempVendorCDR_20' ) end [2025-02-20 05:25:17] Production.INFO: ProcessCDR(1,14515579,1,1,2) [2025-02-20 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515579', 'tblTempUsageDetail_20' ) start [2025-02-20 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515579', 'tblTempUsageDetail_20' ) end [2025-02-20 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:25:20] Production.INFO: ==7427== Releasing lock... [2025-02-20 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:26:05 [end_date_ymd] => 2025-02-20 05:26:05 [RateCDR] => 1 ) [2025-02-20 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:26:05' and `end` < '2025-02-20 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:26:17] Production.INFO: count ==63 [2025-02-20 05:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:26:05 - End Time 2025-02-20 05:26:05 [2025-02-20 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515584', 'tblTempUsageDetail_20' ) start [2025-02-20 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515584', 'tblTempUsageDetail_20' ) end [2025-02-20 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515584', 'tblTempVendorCDR_20' ) start [2025-02-20 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515584', 'tblTempVendorCDR_20' ) end [2025-02-20 05:26:17] Production.INFO: ProcessCDR(1,14515584,1,1,2) [2025-02-20 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515584', 'tblTempUsageDetail_20' ) start [2025-02-20 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515584', 'tblTempUsageDetail_20' ) end [2025-02-20 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:26:20] Production.INFO: ==7499== Releasing lock... [2025-02-20 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:27:05 [end_date_ymd] => 2025-02-20 05:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:27:05' and `end` < '2025-02-20 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-02-20 05:27:17] Production.INFO: count ==63 [2025-02-20 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:27:05 - End Time 2025-02-20 05:27:05 [2025-02-20 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515589', 'tblTempUsageDetail_20' ) start [2025-02-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515589', 'tblTempUsageDetail_20' ) end [2025-02-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515589', 'tblTempVendorCDR_20' ) start [2025-02-20 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515589', 'tblTempVendorCDR_20' ) end [2025-02-20 05:27:17] Production.INFO: ProcessCDR(1,14515589,1,1,2) [2025-02-20 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515589', 'tblTempUsageDetail_20' ) start [2025-02-20 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515589', 'tblTempUsageDetail_20' ) end [2025-02-20 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:27:20] Production.INFO: ==7569== Releasing lock... [2025-02-20 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:28:06 [end_date_ymd] => 2025-02-20 05:28:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:28:06' and `end` < '2025-02-20 05: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-02-20 05:28:17] Production.INFO: count ==64 [2025-02-20 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:28:06 - End Time 2025-02-20 05:28:06 [2025-02-20 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515594', 'tblTempUsageDetail_20' ) start [2025-02-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515594', 'tblTempUsageDetail_20' ) end [2025-02-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515594', 'tblTempVendorCDR_20' ) start [2025-02-20 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515594', 'tblTempVendorCDR_20' ) end [2025-02-20 05:28:17] Production.INFO: ProcessCDR(1,14515594,1,1,2) [2025-02-20 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515594', 'tblTempUsageDetail_20' ) start [2025-02-20 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515594', 'tblTempUsageDetail_20' ) end [2025-02-20 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:28:22] Production.INFO: ==7640== Releasing lock... [2025-02-20 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:29:04 [end_date_ymd] => 2025-02-20 05:29:04 [RateCDR] => 1 ) [2025-02-20 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:29:04' and `end` < '2025-02-20 05:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:29:16] Production.INFO: count ==64 [2025-02-20 05:29:16] Production.ERROR: pbx CDR StartTime 2025-02-20 02:29:04 - End Time 2025-02-20 05:29:04 [2025-02-20 05:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515599', 'tblTempUsageDetail_20' ) start [2025-02-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515599', 'tblTempUsageDetail_20' ) end [2025-02-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515599', 'tblTempVendorCDR_20' ) start [2025-02-20 05:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515599', 'tblTempVendorCDR_20' ) end [2025-02-20 05:29:16] Production.INFO: ProcessCDR(1,14515599,1,1,2) [2025-02-20 05:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515599', 'tblTempUsageDetail_20' ) start [2025-02-20 05:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515599', 'tblTempUsageDetail_20' ) end [2025-02-20 05:29:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:29:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:29:19] Production.INFO: ==7712== Releasing lock... [2025-02-20 05:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:29:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:30:06 [end_date_ymd] => 2025-02-20 05:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:30:06' and `end` < '2025-02-20 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-02-20 05:30:17] Production.INFO: count ==59 [2025-02-20 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:30:06 - End Time 2025-02-20 05:30:06 [2025-02-20 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515605', 'tblTempUsageDetail_20' ) start [2025-02-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515605', 'tblTempUsageDetail_20' ) end [2025-02-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515605', 'tblTempVendorCDR_20' ) start [2025-02-20 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515605', 'tblTempVendorCDR_20' ) end [2025-02-20 05:30:18] Production.INFO: ProcessCDR(1,14515605,1,1,2) [2025-02-20 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515605', 'tblTempUsageDetail_20' ) start [2025-02-20 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515605', 'tblTempUsageDetail_20' ) end [2025-02-20 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:30:21] Production.INFO: ==7787== Releasing lock... [2025-02-20 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:31:05 [end_date_ymd] => 2025-02-20 05:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:31:05' and `end` < '2025-02-20 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-02-20 05:31:17] Production.INFO: count ==59 [2025-02-20 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:31:05 - End Time 2025-02-20 05:31:05 [2025-02-20 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515610', 'tblTempUsageDetail_20' ) start [2025-02-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515610', 'tblTempUsageDetail_20' ) end [2025-02-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515610', 'tblTempVendorCDR_20' ) start [2025-02-20 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515610', 'tblTempVendorCDR_20' ) end [2025-02-20 05:31:17] Production.INFO: ProcessCDR(1,14515610,1,1,2) [2025-02-20 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515610', 'tblTempUsageDetail_20' ) start [2025-02-20 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515610', 'tblTempUsageDetail_20' ) end [2025-02-20 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:31:20] Production.INFO: ==7859== Releasing lock... [2025-02-20 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:31:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:32:06 [end_date_ymd] => 2025-02-20 05:32:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:32:06' and `end` < '2025-02-20 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-02-20 05:32:17] Production.INFO: count ==59 [2025-02-20 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:32:06 - End Time 2025-02-20 05:32:06 [2025-02-20 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515615', 'tblTempUsageDetail_20' ) start [2025-02-20 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515615', 'tblTempUsageDetail_20' ) end [2025-02-20 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515615', 'tblTempVendorCDR_20' ) start [2025-02-20 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515615', 'tblTempVendorCDR_20' ) end [2025-02-20 05:32:17] Production.INFO: ProcessCDR(1,14515615,1,1,2) [2025-02-20 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515615', 'tblTempUsageDetail_20' ) start [2025-02-20 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515615', 'tblTempUsageDetail_20' ) end [2025-02-20 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:32:21] Production.INFO: ==7933== Releasing lock... [2025-02-20 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:33:05 [end_date_ymd] => 2025-02-20 05:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:33:05' and `end` < '2025-02-20 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-02-20 05:33:17] Production.INFO: count ==60 [2025-02-20 05:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:33:05 - End Time 2025-02-20 05:33:05 [2025-02-20 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515620', 'tblTempUsageDetail_20' ) start [2025-02-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515620', 'tblTempUsageDetail_20' ) end [2025-02-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515620', 'tblTempVendorCDR_20' ) start [2025-02-20 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515620', 'tblTempVendorCDR_20' ) end [2025-02-20 05:33:17] Production.INFO: ProcessCDR(1,14515620,1,1,2) [2025-02-20 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515620', 'tblTempUsageDetail_20' ) start [2025-02-20 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515620', 'tblTempUsageDetail_20' ) end [2025-02-20 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:33:21] Production.INFO: ==8002== Releasing lock... [2025-02-20 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:34:05 [end_date_ymd] => 2025-02-20 05:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:34:05' and `end` < '2025-02-20 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-02-20 05:34:17] Production.INFO: count ==61 [2025-02-20 05:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:34:05 - End Time 2025-02-20 05:34:05 [2025-02-20 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515623', 'tblTempUsageDetail_20' ) start [2025-02-20 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515623', 'tblTempUsageDetail_20' ) end [2025-02-20 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515623', 'tblTempVendorCDR_20' ) start [2025-02-20 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515623', 'tblTempVendorCDR_20' ) end [2025-02-20 05:34:17] Production.INFO: ProcessCDR(1,14515623,1,1,2) [2025-02-20 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515623', 'tblTempUsageDetail_20' ) start [2025-02-20 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515623', 'tblTempUsageDetail_20' ) end [2025-02-20 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:34:21] Production.INFO: ==8114== Releasing lock... [2025-02-20 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:35:05 [end_date_ymd] => 2025-02-20 05:35:05 [RateCDR] => 1 ) [2025-02-20 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:35:05' and `end` < '2025-02-20 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:35:17] Production.INFO: count ==61 [2025-02-20 05:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:35:05 - End Time 2025-02-20 05:35:05 [2025-02-20 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515630', 'tblTempUsageDetail_20' ) start [2025-02-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515630', 'tblTempUsageDetail_20' ) end [2025-02-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515630', 'tblTempVendorCDR_20' ) start [2025-02-20 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515630', 'tblTempVendorCDR_20' ) end [2025-02-20 05:35:17] Production.INFO: ProcessCDR(1,14515630,1,1,2) [2025-02-20 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515630', 'tblTempUsageDetail_20' ) start [2025-02-20 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515630', 'tblTempUsageDetail_20' ) end [2025-02-20 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:35:20] Production.INFO: ==8184== Releasing lock... [2025-02-20 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:36:05 [end_date_ymd] => 2025-02-20 05:36:05 [RateCDR] => 1 ) [2025-02-20 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:36:05' and `end` < '2025-02-20 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:36:17] Production.INFO: count ==61 [2025-02-20 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:36:05 - End Time 2025-02-20 05:36:05 [2025-02-20 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515635', 'tblTempUsageDetail_20' ) start [2025-02-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515635', 'tblTempUsageDetail_20' ) end [2025-02-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515635', 'tblTempVendorCDR_20' ) start [2025-02-20 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515635', 'tblTempVendorCDR_20' ) end [2025-02-20 05:36:17] Production.INFO: ProcessCDR(1,14515635,1,1,2) [2025-02-20 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515635', 'tblTempUsageDetail_20' ) start [2025-02-20 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515635', 'tblTempUsageDetail_20' ) end [2025-02-20 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:36:20] Production.INFO: ==8255== Releasing lock... [2025-02-20 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:36:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:37:05 [end_date_ymd] => 2025-02-20 05:37:05 [RateCDR] => 1 ) [2025-02-20 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:37:05' and `end` < '2025-02-20 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:37:17] Production.INFO: count ==61 [2025-02-20 05:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:37:05 - End Time 2025-02-20 05:37:05 [2025-02-20 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515640', 'tblTempUsageDetail_20' ) start [2025-02-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515640', 'tblTempUsageDetail_20' ) end [2025-02-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515640', 'tblTempVendorCDR_20' ) start [2025-02-20 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515640', 'tblTempVendorCDR_20' ) end [2025-02-20 05:37:17] Production.INFO: ProcessCDR(1,14515640,1,1,2) [2025-02-20 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515640', 'tblTempUsageDetail_20' ) start [2025-02-20 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515640', 'tblTempUsageDetail_20' ) end [2025-02-20 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:37:20] Production.INFO: ==8329== Releasing lock... [2025-02-20 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:38:05 [end_date_ymd] => 2025-02-20 05:38:05 [RateCDR] => 1 ) [2025-02-20 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:38:05' and `end` < '2025-02-20 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:38:17] Production.INFO: count ==61 [2025-02-20 05:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:38:05 - End Time 2025-02-20 05:38:05 [2025-02-20 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515645', 'tblTempUsageDetail_20' ) start [2025-02-20 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515645', 'tblTempUsageDetail_20' ) end [2025-02-20 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515645', 'tblTempVendorCDR_20' ) start [2025-02-20 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515645', 'tblTempVendorCDR_20' ) end [2025-02-20 05:38:17] Production.INFO: ProcessCDR(1,14515645,1,1,2) [2025-02-20 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515645', 'tblTempUsageDetail_20' ) start [2025-02-20 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515645', 'tblTempUsageDetail_20' ) end [2025-02-20 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:38:20] Production.INFO: ==8401== Releasing lock... [2025-02-20 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:39:04 [end_date_ymd] => 2025-02-20 05:39:04 [RateCDR] => 1 ) [2025-02-20 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:39:04' and `end` < '2025-02-20 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:39:16] Production.INFO: count ==61 [2025-02-20 05:39:16] Production.ERROR: pbx CDR StartTime 2025-02-20 02:39:04 - End Time 2025-02-20 05:39:04 [2025-02-20 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515650', 'tblTempUsageDetail_20' ) start [2025-02-20 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515650', 'tblTempUsageDetail_20' ) end [2025-02-20 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515650', 'tblTempVendorCDR_20' ) start [2025-02-20 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515650', 'tblTempVendorCDR_20' ) end [2025-02-20 05:39:16] Production.INFO: ProcessCDR(1,14515650,1,1,2) [2025-02-20 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515650', 'tblTempUsageDetail_20' ) start [2025-02-20 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515650', 'tblTempUsageDetail_20' ) end [2025-02-20 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:39:20] Production.INFO: ==8471== Releasing lock... [2025-02-20 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:40:07 [end_date_ymd] => 2025-02-20 05:40:07 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:40:07' and `end` < '2025-02-20 05: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-02-20 05:40:18] Production.INFO: count ==58 [2025-02-20 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:40:07 - End Time 2025-02-20 05:40:07 [2025-02-20 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515656', 'tblTempUsageDetail_20' ) start [2025-02-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515656', 'tblTempUsageDetail_20' ) end [2025-02-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515656', 'tblTempVendorCDR_20' ) start [2025-02-20 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515656', 'tblTempVendorCDR_20' ) end [2025-02-20 05:40:18] Production.INFO: ProcessCDR(1,14515656,1,1,2) [2025-02-20 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515656', 'tblTempUsageDetail_20' ) start [2025-02-20 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515656', 'tblTempUsageDetail_20' ) end [2025-02-20 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:40:22] Production.INFO: ==8553== Releasing lock... [2025-02-20 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:41:05 [end_date_ymd] => 2025-02-20 05:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:41:05' and `end` < '2025-02-20 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-02-20 05:41:17] Production.INFO: count ==58 [2025-02-20 05:41:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:41:05 - End Time 2025-02-20 05:41:05 [2025-02-20 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515661', 'tblTempUsageDetail_20' ) start [2025-02-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515661', 'tblTempUsageDetail_20' ) end [2025-02-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515661', 'tblTempVendorCDR_20' ) start [2025-02-20 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515661', 'tblTempVendorCDR_20' ) end [2025-02-20 05:41:17] Production.INFO: ProcessCDR(1,14515661,1,1,2) [2025-02-20 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515661', 'tblTempUsageDetail_20' ) start [2025-02-20 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515661', 'tblTempUsageDetail_20' ) end [2025-02-20 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:41:21] Production.INFO: ==8636== Releasing lock... [2025-02-20 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:42:06 [end_date_ymd] => 2025-02-20 05:42:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:42:06' and `end` < '2025-02-20 05: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-02-20 05:42:18] Production.INFO: count ==58 [2025-02-20 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:42:06 - End Time 2025-02-20 05:42:06 [2025-02-20 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515666', 'tblTempUsageDetail_20' ) start [2025-02-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515666', 'tblTempUsageDetail_20' ) end [2025-02-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515666', 'tblTempVendorCDR_20' ) start [2025-02-20 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515666', 'tblTempVendorCDR_20' ) end [2025-02-20 05:42:18] Production.INFO: ProcessCDR(1,14515666,1,1,2) [2025-02-20 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515666', 'tblTempUsageDetail_20' ) start [2025-02-20 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515666', 'tblTempUsageDetail_20' ) end [2025-02-20 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:42:21] Production.INFO: ==8719== Releasing lock... [2025-02-20 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:43:05 [end_date_ymd] => 2025-02-20 05:43:05 [RateCDR] => 1 ) [2025-02-20 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:43:05' and `end` < '2025-02-20 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:43:17] Production.INFO: count ==58 [2025-02-20 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:43:05 - End Time 2025-02-20 05:43:05 [2025-02-20 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515671', 'tblTempUsageDetail_20' ) start [2025-02-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515671', 'tblTempUsageDetail_20' ) end [2025-02-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515671', 'tblTempVendorCDR_20' ) start [2025-02-20 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515671', 'tblTempVendorCDR_20' ) end [2025-02-20 05:43:17] Production.INFO: ProcessCDR(1,14515671,1,1,2) [2025-02-20 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515671', 'tblTempUsageDetail_20' ) start [2025-02-20 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515671', 'tblTempUsageDetail_20' ) end [2025-02-20 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:43:20] Production.INFO: ==8802== Releasing lock... [2025-02-20 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:44:05 [end_date_ymd] => 2025-02-20 05:44:05 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:44:05' and `end` < '2025-02-20 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-02-20 05:44:17] Production.INFO: count ==58 [2025-02-20 05:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:44:05 - End Time 2025-02-20 05:44:05 [2025-02-20 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515676', 'tblTempUsageDetail_20' ) start [2025-02-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515676', 'tblTempUsageDetail_20' ) end [2025-02-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515676', 'tblTempVendorCDR_20' ) start [2025-02-20 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515676', 'tblTempVendorCDR_20' ) end [2025-02-20 05:44:17] Production.INFO: ProcessCDR(1,14515676,1,1,2) [2025-02-20 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515676', 'tblTempUsageDetail_20' ) start [2025-02-20 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515676', 'tblTempUsageDetail_20' ) end [2025-02-20 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:44:20] Production.INFO: ==8878== Releasing lock... [2025-02-20 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:45:05 [end_date_ymd] => 2025-02-20 05:45:05 [RateCDR] => 1 ) [2025-02-20 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:45:05' and `end` < '2025-02-20 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:45:17] Production.INFO: count ==58 [2025-02-20 05:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:45:05 - End Time 2025-02-20 05:45:05 [2025-02-20 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515681', 'tblTempUsageDetail_20' ) start [2025-02-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515681', 'tblTempUsageDetail_20' ) end [2025-02-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515681', 'tblTempVendorCDR_20' ) start [2025-02-20 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515681', 'tblTempVendorCDR_20' ) end [2025-02-20 05:45:17] Production.INFO: ProcessCDR(1,14515681,1,1,2) [2025-02-20 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515681', 'tblTempUsageDetail_20' ) start [2025-02-20 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515681', 'tblTempUsageDetail_20' ) end [2025-02-20 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:45:20] Production.INFO: ==8949== Releasing lock... [2025-02-20 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:46:06 [end_date_ymd] => 2025-02-20 05:46:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:46:06' and `end` < '2025-02-20 05: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-02-20 05:46:17] Production.INFO: count ==58 [2025-02-20 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:46:06 - End Time 2025-02-20 05:46:06 [2025-02-20 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515686', 'tblTempUsageDetail_20' ) start [2025-02-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515686', 'tblTempUsageDetail_20' ) end [2025-02-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515686', 'tblTempVendorCDR_20' ) start [2025-02-20 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515686', 'tblTempVendorCDR_20' ) end [2025-02-20 05:46:17] Production.INFO: ProcessCDR(1,14515686,1,1,2) [2025-02-20 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515686', 'tblTempUsageDetail_20' ) start [2025-02-20 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515686', 'tblTempUsageDetail_20' ) end [2025-02-20 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:46:21] Production.INFO: ==9019== Releasing lock... [2025-02-20 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:47:05 [end_date_ymd] => 2025-02-20 05:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:47:05' and `end` < '2025-02-20 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-02-20 05:47:17] Production.INFO: count ==58 [2025-02-20 05:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:47:05 - End Time 2025-02-20 05:47:05 [2025-02-20 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515691', 'tblTempUsageDetail_20' ) start [2025-02-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515691', 'tblTempUsageDetail_20' ) end [2025-02-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515691', 'tblTempVendorCDR_20' ) start [2025-02-20 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515691', 'tblTempVendorCDR_20' ) end [2025-02-20 05:47:17] Production.INFO: ProcessCDR(1,14515691,1,1,2) [2025-02-20 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515691', 'tblTempUsageDetail_20' ) start [2025-02-20 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515691', 'tblTempUsageDetail_20' ) end [2025-02-20 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:47:20] Production.INFO: ==9091== Releasing lock... [2025-02-20 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:48:06 [end_date_ymd] => 2025-02-20 05:48:06 [RateCDR] => 1 ) [2025-02-20 05: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-02-20 02:48:06' and `end` < '2025-02-20 05: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-02-20 05:48:17] Production.INFO: count ==58 [2025-02-20 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:48:06 - End Time 2025-02-20 05:48:06 [2025-02-20 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515696', 'tblTempUsageDetail_20' ) start [2025-02-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515696', 'tblTempUsageDetail_20' ) end [2025-02-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515696', 'tblTempVendorCDR_20' ) start [2025-02-20 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515696', 'tblTempVendorCDR_20' ) end [2025-02-20 05:48:17] Production.INFO: ProcessCDR(1,14515696,1,1,2) [2025-02-20 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515696', 'tblTempUsageDetail_20' ) start [2025-02-20 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515696', 'tblTempUsageDetail_20' ) end [2025-02-20 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:48:21] Production.INFO: ==9161== Releasing lock... [2025-02-20 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:49:05 [end_date_ymd] => 2025-02-20 05:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:49:05' and `end` < '2025-02-20 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-02-20 05:49:16] Production.INFO: count ==58 [2025-02-20 05:49:16] Production.ERROR: pbx CDR StartTime 2025-02-20 02:49:05 - End Time 2025-02-20 05:49:05 [2025-02-20 05:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515701', 'tblTempUsageDetail_20' ) start [2025-02-20 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515701', 'tblTempUsageDetail_20' ) end [2025-02-20 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515701', 'tblTempVendorCDR_20' ) start [2025-02-20 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515701', 'tblTempVendorCDR_20' ) end [2025-02-20 05:49:16] Production.INFO: ProcessCDR(1,14515701,1,1,2) [2025-02-20 05:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515701', 'tblTempUsageDetail_20' ) start [2025-02-20 05:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515701', 'tblTempUsageDetail_20' ) end [2025-02-20 05:49:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:49:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:49:19] Production.INFO: ==9272== Releasing lock... [2025-02-20 05:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:49:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:50:06 [end_date_ymd] => 2025-02-20 05:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:50:06' and `end` < '2025-02-20 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-02-20 05:50:18] Production.INFO: count ==58 [2025-02-20 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 02:50:06 - End Time 2025-02-20 05:50:06 [2025-02-20 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515707', 'tblTempUsageDetail_20' ) start [2025-02-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515707', 'tblTempUsageDetail_20' ) end [2025-02-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515707', 'tblTempVendorCDR_20' ) start [2025-02-20 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515707', 'tblTempVendorCDR_20' ) end [2025-02-20 05:50:18] Production.INFO: ProcessCDR(1,14515707,1,1,2) [2025-02-20 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515707', 'tblTempUsageDetail_20' ) start [2025-02-20 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515707', 'tblTempUsageDetail_20' ) end [2025-02-20 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:50:21] Production.INFO: ==9344== Releasing lock... [2025-02-20 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:51:05 [end_date_ymd] => 2025-02-20 05:51:05 [RateCDR] => 1 ) [2025-02-20 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:51:05' and `end` < '2025-02-20 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:51:17] Production.INFO: count ==58 [2025-02-20 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:51:05 - End Time 2025-02-20 05:51:05 [2025-02-20 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515712', 'tblTempUsageDetail_20' ) start [2025-02-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515712', 'tblTempUsageDetail_20' ) end [2025-02-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515712', 'tblTempVendorCDR_20' ) start [2025-02-20 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515712', 'tblTempVendorCDR_20' ) end [2025-02-20 05:51:17] Production.INFO: ProcessCDR(1,14515712,1,1,2) [2025-02-20 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515712', 'tblTempUsageDetail_20' ) start [2025-02-20 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515712', 'tblTempUsageDetail_20' ) end [2025-02-20 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:51:20] Production.INFO: ==9422== Releasing lock... [2025-02-20 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:52:05 [end_date_ymd] => 2025-02-20 05:52:05 [RateCDR] => 1 ) [2025-02-20 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:52:05' and `end` < '2025-02-20 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:52:17] Production.INFO: count ==58 [2025-02-20 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:52:05 - End Time 2025-02-20 05:52:05 [2025-02-20 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515717', 'tblTempUsageDetail_20' ) start [2025-02-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515717', 'tblTempUsageDetail_20' ) end [2025-02-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515717', 'tblTempVendorCDR_20' ) start [2025-02-20 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515717', 'tblTempVendorCDR_20' ) end [2025-02-20 05:52:17] Production.INFO: ProcessCDR(1,14515717,1,1,2) [2025-02-20 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515717', 'tblTempUsageDetail_20' ) start [2025-02-20 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515717', 'tblTempUsageDetail_20' ) end [2025-02-20 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:52:20] Production.INFO: ==9492== Releasing lock... [2025-02-20 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:53:05 [end_date_ymd] => 2025-02-20 05:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:53:05' and `end` < '2025-02-20 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-02-20 05:53:17] Production.INFO: count ==58 [2025-02-20 05:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:53:05 - End Time 2025-02-20 05:53:05 [2025-02-20 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515722', 'tblTempUsageDetail_20' ) start [2025-02-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515722', 'tblTempUsageDetail_20' ) end [2025-02-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515722', 'tblTempVendorCDR_20' ) start [2025-02-20 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515722', 'tblTempVendorCDR_20' ) end [2025-02-20 05:53:17] Production.INFO: ProcessCDR(1,14515722,1,1,2) [2025-02-20 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515722', 'tblTempUsageDetail_20' ) start [2025-02-20 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515722', 'tblTempUsageDetail_20' ) end [2025-02-20 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:53:20] Production.INFO: ==9563== Releasing lock... [2025-02-20 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:54:05 [end_date_ymd] => 2025-02-20 05:54:05 [RateCDR] => 1 ) [2025-02-20 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:54:05' and `end` < '2025-02-20 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:54:17] Production.INFO: count ==58 [2025-02-20 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:54:05 - End Time 2025-02-20 05:54:05 [2025-02-20 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515727', 'tblTempUsageDetail_20' ) start [2025-02-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515727', 'tblTempUsageDetail_20' ) end [2025-02-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515727', 'tblTempVendorCDR_20' ) start [2025-02-20 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515727', 'tblTempVendorCDR_20' ) end [2025-02-20 05:54:17] Production.INFO: ProcessCDR(1,14515727,1,1,2) [2025-02-20 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515727', 'tblTempUsageDetail_20' ) start [2025-02-20 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515727', 'tblTempUsageDetail_20' ) end [2025-02-20 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:54:20] Production.INFO: ==9634== Releasing lock... [2025-02-20 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:55:05 [end_date_ymd] => 2025-02-20 05:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:55:05' and `end` < '2025-02-20 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-02-20 05:55:17] Production.INFO: count ==58 [2025-02-20 05:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:55:05 - End Time 2025-02-20 05:55:05 [2025-02-20 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515732', 'tblTempUsageDetail_20' ) start [2025-02-20 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515732', 'tblTempUsageDetail_20' ) end [2025-02-20 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515732', 'tblTempVendorCDR_20' ) start [2025-02-20 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515732', 'tblTempVendorCDR_20' ) end [2025-02-20 05:55:17] Production.INFO: ProcessCDR(1,14515732,1,1,2) [2025-02-20 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515732', 'tblTempUsageDetail_20' ) start [2025-02-20 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515732', 'tblTempUsageDetail_20' ) end [2025-02-20 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:55:20] Production.INFO: ==9703== Releasing lock... [2025-02-20 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:56:06 [end_date_ymd] => 2025-02-20 05:56:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:56:06' and `end` < '2025-02-20 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-02-20 05:56:17] Production.INFO: count ==58 [2025-02-20 05:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:56:06 - End Time 2025-02-20 05:56:06 [2025-02-20 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515737', 'tblTempUsageDetail_20' ) start [2025-02-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515737', 'tblTempUsageDetail_20' ) end [2025-02-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515737', 'tblTempVendorCDR_20' ) start [2025-02-20 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515737', 'tblTempVendorCDR_20' ) end [2025-02-20 05:56:18] Production.INFO: ProcessCDR(1,14515737,1,1,2) [2025-02-20 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515737', 'tblTempUsageDetail_20' ) start [2025-02-20 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515737', 'tblTempUsageDetail_20' ) end [2025-02-20 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:56:21] Production.INFO: ==9774== Releasing lock... [2025-02-20 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:57:05 [end_date_ymd] => 2025-02-20 05:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:57:05' and `end` < '2025-02-20 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-02-20 05:57:17] Production.INFO: count ==58 [2025-02-20 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:57:05 - End Time 2025-02-20 05:57:05 [2025-02-20 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515742', 'tblTempUsageDetail_20' ) start [2025-02-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515742', 'tblTempUsageDetail_20' ) end [2025-02-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515742', 'tblTempVendorCDR_20' ) start [2025-02-20 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515742', 'tblTempVendorCDR_20' ) end [2025-02-20 05:57:17] Production.INFO: ProcessCDR(1,14515742,1,1,2) [2025-02-20 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515742', 'tblTempUsageDetail_20' ) start [2025-02-20 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515742', 'tblTempUsageDetail_20' ) end [2025-02-20 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:57:20] Production.INFO: ==9845== Releasing lock... [2025-02-20 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:58:05 [end_date_ymd] => 2025-02-20 05:58:05 [RateCDR] => 1 ) [2025-02-20 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 02:58:05' and `end` < '2025-02-20 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 05:58:17] Production.INFO: count ==59 [2025-02-20 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 02:58:05 - End Time 2025-02-20 05:58:05 [2025-02-20 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515747', 'tblTempUsageDetail_20' ) start [2025-02-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515747', 'tblTempUsageDetail_20' ) end [2025-02-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515747', 'tblTempVendorCDR_20' ) start [2025-02-20 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515747', 'tblTempVendorCDR_20' ) end [2025-02-20 05:58:17] Production.INFO: ProcessCDR(1,14515747,1,1,2) [2025-02-20 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515747', 'tblTempUsageDetail_20' ) start [2025-02-20 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515747', 'tblTempUsageDetail_20' ) end [2025-02-20 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:58:21] Production.INFO: ==9922== Releasing lock... [2025-02-20 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 02:59:05 [end_date_ymd] => 2025-02-20 05:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 02:59:05' and `end` < '2025-02-20 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-02-20 05:59:16] Production.INFO: count ==59 [2025-02-20 05:59:16] Production.ERROR: pbx CDR StartTime 2025-02-20 02:59:05 - End Time 2025-02-20 05:59:05 [2025-02-20 05:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515752', 'tblTempUsageDetail_20' ) start [2025-02-20 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515752', 'tblTempUsageDetail_20' ) end [2025-02-20 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515752', 'tblTempVendorCDR_20' ) start [2025-02-20 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515752', 'tblTempVendorCDR_20' ) end [2025-02-20 05:59:16] Production.INFO: ProcessCDR(1,14515752,1,1,2) [2025-02-20 05:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 05:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 05:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515752', 'tblTempUsageDetail_20' ) start [2025-02-20 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515752', 'tblTempUsageDetail_20' ) end [2025-02-20 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 05:59:20] Production.INFO: ==9994== Releasing lock... [2025-02-20 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 05:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:00:06 [end_date_ymd] => 2025-02-20 06:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:00:06' and `end` < '2025-02-20 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-02-20 06:00:17] Production.INFO: count ==59 [2025-02-20 06:00:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:00:06 - End Time 2025-02-20 06:00:06 [2025-02-20 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515758', 'tblTempUsageDetail_20' ) start [2025-02-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515758', 'tblTempUsageDetail_20' ) end [2025-02-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515758', 'tblTempVendorCDR_20' ) start [2025-02-20 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515758', 'tblTempVendorCDR_20' ) end [2025-02-20 06:00:17] Production.INFO: ProcessCDR(1,14515758,1,1,2) [2025-02-20 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515758', 'tblTempUsageDetail_20' ) start [2025-02-20 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515758', 'tblTempUsageDetail_20' ) end [2025-02-20 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:00:21] Production.INFO: ==10068== Releasing lock... [2025-02-20 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:01:05 [end_date_ymd] => 2025-02-20 06:01:05 [RateCDR] => 1 ) [2025-02-20 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:01:05' and `end` < '2025-02-20 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:01:17] Production.INFO: count ==59 [2025-02-20 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:01:05 - End Time 2025-02-20 06:01:05 [2025-02-20 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515763', 'tblTempUsageDetail_20' ) start [2025-02-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515763', 'tblTempUsageDetail_20' ) end [2025-02-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515763', 'tblTempVendorCDR_20' ) start [2025-02-20 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515763', 'tblTempVendorCDR_20' ) end [2025-02-20 06:01:17] Production.INFO: ProcessCDR(1,14515763,1,1,2) [2025-02-20 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515763', 'tblTempUsageDetail_20' ) start [2025-02-20 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515763', 'tblTempUsageDetail_20' ) end [2025-02-20 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:01:20] Production.INFO: ==10151== Releasing lock... [2025-02-20 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:02:05 [end_date_ymd] => 2025-02-20 06:02:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:02:05' and `end` < '2025-02-20 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-02-20 06:02:17] Production.INFO: count ==59 [2025-02-20 06:02:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:02:05 - End Time 2025-02-20 06:02:05 [2025-02-20 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515768', 'tblTempUsageDetail_20' ) start [2025-02-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515768', 'tblTempUsageDetail_20' ) end [2025-02-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515768', 'tblTempVendorCDR_20' ) start [2025-02-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515768', 'tblTempVendorCDR_20' ) end [2025-02-20 06:02:17] Production.INFO: ProcessCDR(1,14515768,1,1,2) [2025-02-20 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515768', 'tblTempUsageDetail_20' ) start [2025-02-20 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515768', 'tblTempUsageDetail_20' ) end [2025-02-20 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:02:20] Production.INFO: ==10220== Releasing lock... [2025-02-20 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:02:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:03:05 [end_date_ymd] => 2025-02-20 06:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:03:05' and `end` < '2025-02-20 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-02-20 06:03:17] Production.INFO: count ==59 [2025-02-20 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:03:05 - End Time 2025-02-20 06:03:05 [2025-02-20 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515773', 'tblTempUsageDetail_20' ) start [2025-02-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515773', 'tblTempUsageDetail_20' ) end [2025-02-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515773', 'tblTempVendorCDR_20' ) start [2025-02-20 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515773', 'tblTempVendorCDR_20' ) end [2025-02-20 06:03:17] Production.INFO: ProcessCDR(1,14515773,1,1,2) [2025-02-20 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515773', 'tblTempUsageDetail_20' ) start [2025-02-20 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515773', 'tblTempUsageDetail_20' ) end [2025-02-20 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:03:20] Production.INFO: ==10290== Releasing lock... [2025-02-20 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:04:05 [end_date_ymd] => 2025-02-20 06:04:05 [RateCDR] => 1 ) [2025-02-20 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:04:05' and `end` < '2025-02-20 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:04:17] Production.INFO: count ==59 [2025-02-20 06:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:04:05 - End Time 2025-02-20 06:04:05 [2025-02-20 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515778', 'tblTempUsageDetail_20' ) start [2025-02-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515778', 'tblTempUsageDetail_20' ) end [2025-02-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515778', 'tblTempVendorCDR_20' ) start [2025-02-20 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515778', 'tblTempVendorCDR_20' ) end [2025-02-20 06:04:17] Production.INFO: ProcessCDR(1,14515778,1,1,2) [2025-02-20 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515778', 'tblTempUsageDetail_20' ) start [2025-02-20 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515778', 'tblTempUsageDetail_20' ) end [2025-02-20 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:04:20] Production.INFO: ==10400== Releasing lock... [2025-02-20 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:05:05 [end_date_ymd] => 2025-02-20 06:05:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:05:05' and `end` < '2025-02-20 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-02-20 06:05:17] Production.INFO: count ==59 [2025-02-20 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:05:05 - End Time 2025-02-20 06:05:05 [2025-02-20 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515783', 'tblTempUsageDetail_20' ) start [2025-02-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515783', 'tblTempUsageDetail_20' ) end [2025-02-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515783', 'tblTempVendorCDR_20' ) start [2025-02-20 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515783', 'tblTempVendorCDR_20' ) end [2025-02-20 06:05:17] Production.INFO: ProcessCDR(1,14515783,1,1,2) [2025-02-20 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515783', 'tblTempUsageDetail_20' ) start [2025-02-20 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515783', 'tblTempUsageDetail_20' ) end [2025-02-20 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:05:20] Production.INFO: ==10471== Releasing lock... [2025-02-20 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:06:05 [end_date_ymd] => 2025-02-20 06:06:05 [RateCDR] => 1 ) [2025-02-20 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:06:05' and `end` < '2025-02-20 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:06:17] Production.INFO: count ==59 [2025-02-20 06:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:06:05 - End Time 2025-02-20 06:06:05 [2025-02-20 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515788', 'tblTempUsageDetail_20' ) start [2025-02-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515788', 'tblTempUsageDetail_20' ) end [2025-02-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515788', 'tblTempVendorCDR_20' ) start [2025-02-20 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515788', 'tblTempVendorCDR_20' ) end [2025-02-20 06:06:17] Production.INFO: ProcessCDR(1,14515788,1,1,2) [2025-02-20 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515788', 'tblTempUsageDetail_20' ) start [2025-02-20 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515788', 'tblTempUsageDetail_20' ) end [2025-02-20 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:06:20] Production.INFO: ==10542== Releasing lock... [2025-02-20 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:07:05 [end_date_ymd] => 2025-02-20 06:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:07:05' and `end` < '2025-02-20 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-02-20 06:07:16] Production.INFO: count ==59 [2025-02-20 06:07:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:07:05 - End Time 2025-02-20 06:07:05 [2025-02-20 06:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515793', 'tblTempUsageDetail_20' ) start [2025-02-20 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515793', 'tblTempUsageDetail_20' ) end [2025-02-20 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515793', 'tblTempVendorCDR_20' ) start [2025-02-20 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515793', 'tblTempVendorCDR_20' ) end [2025-02-20 06:07:16] Production.INFO: ProcessCDR(1,14515793,1,1,2) [2025-02-20 06:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515793', 'tblTempUsageDetail_20' ) start [2025-02-20 06:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515793', 'tblTempUsageDetail_20' ) end [2025-02-20 06:07:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:07:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:07:19] Production.INFO: ==10611== Releasing lock... [2025-02-20 06:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:07:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:08:05 [end_date_ymd] => 2025-02-20 06:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:08:05' and `end` < '2025-02-20 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-02-20 06:08:17] Production.INFO: count ==59 [2025-02-20 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:08:05 - End Time 2025-02-20 06:08:05 [2025-02-20 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515798', 'tblTempUsageDetail_20' ) start [2025-02-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515798', 'tblTempUsageDetail_20' ) end [2025-02-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515798', 'tblTempVendorCDR_20' ) start [2025-02-20 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515798', 'tblTempVendorCDR_20' ) end [2025-02-20 06:08:17] Production.INFO: ProcessCDR(1,14515798,1,1,2) [2025-02-20 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515798', 'tblTempUsageDetail_20' ) start [2025-02-20 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515798', 'tblTempUsageDetail_20' ) end [2025-02-20 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:08:20] Production.INFO: ==10683== Releasing lock... [2025-02-20 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:09:05 [end_date_ymd] => 2025-02-20 06:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:09:05' and `end` < '2025-02-20 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-02-20 06:09:17] Production.INFO: count ==59 [2025-02-20 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:09:05 - End Time 2025-02-20 06:09:05 [2025-02-20 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515803', 'tblTempUsageDetail_20' ) start [2025-02-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515803', 'tblTempUsageDetail_20' ) end [2025-02-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515803', 'tblTempVendorCDR_20' ) start [2025-02-20 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515803', 'tblTempVendorCDR_20' ) end [2025-02-20 06:09:17] Production.INFO: ProcessCDR(1,14515803,1,1,2) [2025-02-20 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515803', 'tblTempUsageDetail_20' ) start [2025-02-20 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515803', 'tblTempUsageDetail_20' ) end [2025-02-20 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:09:20] Production.INFO: ==10753== Releasing lock... [2025-02-20 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:10:06 [end_date_ymd] => 2025-02-20 06:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:10:06' and `end` < '2025-02-20 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-02-20 06:10:18] Production.INFO: count ==60 [2025-02-20 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:10:06 - End Time 2025-02-20 06:10:06 [2025-02-20 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515808', 'tblTempUsageDetail_20' ) start [2025-02-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515808', 'tblTempUsageDetail_20' ) end [2025-02-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515808', 'tblTempVendorCDR_20' ) start [2025-02-20 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515808', 'tblTempVendorCDR_20' ) end [2025-02-20 06:10:18] Production.INFO: ProcessCDR(1,14515808,1,1,2) [2025-02-20 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515808', 'tblTempUsageDetail_20' ) start [2025-02-20 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515808', 'tblTempUsageDetail_20' ) end [2025-02-20 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:10:21] Production.INFO: ==10828== Releasing lock... [2025-02-20 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:11:05 [end_date_ymd] => 2025-02-20 06:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:11:05' and `end` < '2025-02-20 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-02-20 06:11:16] Production.INFO: count ==60 [2025-02-20 06:11:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:11:05 - End Time 2025-02-20 06:11:05 [2025-02-20 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515814', 'tblTempUsageDetail_20' ) start [2025-02-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515814', 'tblTempUsageDetail_20' ) end [2025-02-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515814', 'tblTempVendorCDR_20' ) start [2025-02-20 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515814', 'tblTempVendorCDR_20' ) end [2025-02-20 06:11:16] Production.INFO: ProcessCDR(1,14515814,1,1,2) [2025-02-20 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515814', 'tblTempUsageDetail_20' ) start [2025-02-20 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515814', 'tblTempUsageDetail_20' ) end [2025-02-20 06:11:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:11:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:11:19] Production.INFO: ==10911== Releasing lock... [2025-02-20 06:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:11:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:12:05 [end_date_ymd] => 2025-02-20 06:12:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:12:05' and `end` < '2025-02-20 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-02-20 06:12:16] Production.INFO: count ==60 [2025-02-20 06:12:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:12:05 - End Time 2025-02-20 06:12:05 [2025-02-20 06:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515819', 'tblTempUsageDetail_20' ) start [2025-02-20 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515819', 'tblTempUsageDetail_20' ) end [2025-02-20 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515819', 'tblTempVendorCDR_20' ) start [2025-02-20 06:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515819', 'tblTempVendorCDR_20' ) end [2025-02-20 06:12:16] Production.INFO: ProcessCDR(1,14515819,1,1,2) [2025-02-20 06:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:12:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515819', 'tblTempUsageDetail_20' ) start [2025-02-20 06:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515819', 'tblTempUsageDetail_20' ) end [2025-02-20 06:12:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:12:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:12:19] Production.INFO: ==10982== Releasing lock... [2025-02-20 06:12:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:12:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:13:06 [end_date_ymd] => 2025-02-20 06:13:06 [RateCDR] => 1 ) [2025-02-20 06:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:13:06' and `end` < '2025-02-20 06:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:13:18] Production.INFO: count ==60 [2025-02-20 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:13:06 - End Time 2025-02-20 06:13:06 [2025-02-20 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515824', 'tblTempUsageDetail_20' ) start [2025-02-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515824', 'tblTempUsageDetail_20' ) end [2025-02-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515824', 'tblTempVendorCDR_20' ) start [2025-02-20 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515824', 'tblTempVendorCDR_20' ) end [2025-02-20 06:13:18] Production.INFO: ProcessCDR(1,14515824,1,1,2) [2025-02-20 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515824', 'tblTempUsageDetail_20' ) start [2025-02-20 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515824', 'tblTempUsageDetail_20' ) end [2025-02-20 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:13:21] Production.INFO: ==11053== Releasing lock... [2025-02-20 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:14:05 [end_date_ymd] => 2025-02-20 06:14:05 [RateCDR] => 1 ) [2025-02-20 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:14:05' and `end` < '2025-02-20 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:14:17] Production.INFO: count ==60 [2025-02-20 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:14:05 - End Time 2025-02-20 06:14:05 [2025-02-20 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515829', 'tblTempUsageDetail_20' ) start [2025-02-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515829', 'tblTempUsageDetail_20' ) end [2025-02-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515829', 'tblTempVendorCDR_20' ) start [2025-02-20 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515829', 'tblTempVendorCDR_20' ) end [2025-02-20 06:14:17] Production.INFO: ProcessCDR(1,14515829,1,1,2) [2025-02-20 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515829', 'tblTempUsageDetail_20' ) start [2025-02-20 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515829', 'tblTempUsageDetail_20' ) end [2025-02-20 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:14:20] Production.INFO: ==11127== Releasing lock... [2025-02-20 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:15:05 [end_date_ymd] => 2025-02-20 06:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:15:05' and `end` < '2025-02-20 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-02-20 06:15:17] Production.INFO: count ==60 [2025-02-20 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:15:05 - End Time 2025-02-20 06:15:05 [2025-02-20 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515834', 'tblTempUsageDetail_20' ) start [2025-02-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515834', 'tblTempUsageDetail_20' ) end [2025-02-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515834', 'tblTempVendorCDR_20' ) start [2025-02-20 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515834', 'tblTempVendorCDR_20' ) end [2025-02-20 06:15:17] Production.INFO: ProcessCDR(1,14515834,1,1,2) [2025-02-20 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515834', 'tblTempUsageDetail_20' ) start [2025-02-20 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515834', 'tblTempUsageDetail_20' ) end [2025-02-20 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:15:20] Production.INFO: ==11200== Releasing lock... [2025-02-20 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:16:05 [end_date_ymd] => 2025-02-20 06:16:05 [RateCDR] => 1 ) [2025-02-20 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:16:05' and `end` < '2025-02-20 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:16:17] Production.INFO: count ==60 [2025-02-20 06:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:16:05 - End Time 2025-02-20 06:16:05 [2025-02-20 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515839', 'tblTempUsageDetail_20' ) start [2025-02-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515839', 'tblTempUsageDetail_20' ) end [2025-02-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515839', 'tblTempVendorCDR_20' ) start [2025-02-20 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515839', 'tblTempVendorCDR_20' ) end [2025-02-20 06:16:17] Production.INFO: ProcessCDR(1,14515839,1,1,2) [2025-02-20 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515839', 'tblTempUsageDetail_20' ) start [2025-02-20 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515839', 'tblTempUsageDetail_20' ) end [2025-02-20 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:16:20] Production.INFO: ==11271== Releasing lock... [2025-02-20 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:17:05 [end_date_ymd] => 2025-02-20 06:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:17:05' and `end` < '2025-02-20 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-02-20 06:17:17] Production.INFO: count ==60 [2025-02-20 06:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:17:05 - End Time 2025-02-20 06:17:05 [2025-02-20 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515844', 'tblTempUsageDetail_20' ) start [2025-02-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515844', 'tblTempUsageDetail_20' ) end [2025-02-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515844', 'tblTempVendorCDR_20' ) start [2025-02-20 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515844', 'tblTempVendorCDR_20' ) end [2025-02-20 06:17:17] Production.INFO: ProcessCDR(1,14515844,1,1,2) [2025-02-20 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515844', 'tblTempUsageDetail_20' ) start [2025-02-20 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515844', 'tblTempUsageDetail_20' ) end [2025-02-20 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:17:21] Production.INFO: ==11341== Releasing lock... [2025-02-20 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:18:05 [end_date_ymd] => 2025-02-20 06:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:18:05' and `end` < '2025-02-20 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-02-20 06:18:17] Production.INFO: count ==60 [2025-02-20 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:18:05 - End Time 2025-02-20 06:18:05 [2025-02-20 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515849', 'tblTempUsageDetail_20' ) start [2025-02-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515849', 'tblTempUsageDetail_20' ) end [2025-02-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515849', 'tblTempVendorCDR_20' ) start [2025-02-20 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515849', 'tblTempVendorCDR_20' ) end [2025-02-20 06:18:17] Production.INFO: ProcessCDR(1,14515849,1,1,2) [2025-02-20 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515849', 'tblTempUsageDetail_20' ) start [2025-02-20 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515849', 'tblTempUsageDetail_20' ) end [2025-02-20 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:18:20] Production.INFO: ==11411== Releasing lock... [2025-02-20 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:19:05 [end_date_ymd] => 2025-02-20 06:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:19:05' and `end` < '2025-02-20 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-02-20 06:19:17] Production.INFO: count ==64 [2025-02-20 06:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:19:05 - End Time 2025-02-20 06:19:05 [2025-02-20 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515854', 'tblTempUsageDetail_20' ) start [2025-02-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515854', 'tblTempUsageDetail_20' ) end [2025-02-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515854', 'tblTempVendorCDR_20' ) start [2025-02-20 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515854', 'tblTempVendorCDR_20' ) end [2025-02-20 06:19:17] Production.INFO: ProcessCDR(1,14515854,1,1,2) [2025-02-20 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515854', 'tblTempUsageDetail_20' ) start [2025-02-20 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515854', 'tblTempUsageDetail_20' ) end [2025-02-20 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:19:20] Production.INFO: ==11482== Releasing lock... [2025-02-20 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:20:05 [end_date_ymd] => 2025-02-20 06:20:05 [RateCDR] => 1 ) [2025-02-20 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:20:05' and `end` < '2025-02-20 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:20:17] Production.INFO: count ==66 [2025-02-20 06:20:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:20:05 - End Time 2025-02-20 06:20:05 [2025-02-20 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515860', 'tblTempUsageDetail_20' ) start [2025-02-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515860', 'tblTempUsageDetail_20' ) end [2025-02-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515860', 'tblTempVendorCDR_20' ) start [2025-02-20 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515860', 'tblTempVendorCDR_20' ) end [2025-02-20 06:20:17] Production.INFO: ProcessCDR(1,14515860,1,1,2) [2025-02-20 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515860', 'tblTempUsageDetail_20' ) start [2025-02-20 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515860', 'tblTempUsageDetail_20' ) end [2025-02-20 06:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:20:20] Production.INFO: ==11594== Releasing lock... [2025-02-20 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:20:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-20 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:21:05 [end_date_ymd] => 2025-02-20 06:21:05 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:21:05' and `end` < '2025-02-20 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-02-20 06:21:17] Production.INFO: count ==74 [2025-02-20 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:21:05 - End Time 2025-02-20 06:21:05 [2025-02-20 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515865', 'tblTempUsageDetail_20' ) start [2025-02-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515865', 'tblTempUsageDetail_20' ) end [2025-02-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515865', 'tblTempVendorCDR_20' ) start [2025-02-20 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515865', 'tblTempVendorCDR_20' ) end [2025-02-20 06:21:17] Production.INFO: ProcessCDR(1,14515865,1,1,2) [2025-02-20 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515865', 'tblTempUsageDetail_20' ) start [2025-02-20 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515865', 'tblTempUsageDetail_20' ) end [2025-02-20 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:21:21] Production.INFO: ==11669== Releasing lock... [2025-02-20 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:22:05 [end_date_ymd] => 2025-02-20 06:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:22:05' and `end` < '2025-02-20 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-02-20 06:22:17] Production.INFO: count ==74 [2025-02-20 06:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:22:05 - End Time 2025-02-20 06:22:05 [2025-02-20 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515870', 'tblTempUsageDetail_20' ) start [2025-02-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515870', 'tblTempUsageDetail_20' ) end [2025-02-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515870', 'tblTempVendorCDR_20' ) start [2025-02-20 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515870', 'tblTempVendorCDR_20' ) end [2025-02-20 06:22:17] Production.INFO: ProcessCDR(1,14515870,1,1,2) [2025-02-20 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515870', 'tblTempUsageDetail_20' ) start [2025-02-20 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515870', 'tblTempUsageDetail_20' ) end [2025-02-20 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:22:20] Production.INFO: ==11740== Releasing lock... [2025-02-20 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:23:05 [end_date_ymd] => 2025-02-20 06:23:05 [RateCDR] => 1 ) [2025-02-20 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:23:05' and `end` < '2025-02-20 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:23:17] Production.INFO: count ==74 [2025-02-20 06:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:23:05 - End Time 2025-02-20 06:23:05 [2025-02-20 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515875', 'tblTempUsageDetail_20' ) start [2025-02-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515875', 'tblTempUsageDetail_20' ) end [2025-02-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515875', 'tblTempVendorCDR_20' ) start [2025-02-20 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515875', 'tblTempVendorCDR_20' ) end [2025-02-20 06:23:17] Production.INFO: ProcessCDR(1,14515875,1,1,2) [2025-02-20 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515875', 'tblTempUsageDetail_20' ) start [2025-02-20 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515875', 'tblTempUsageDetail_20' ) end [2025-02-20 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:23:20] Production.INFO: ==11810== Releasing lock... [2025-02-20 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:24:06 [end_date_ymd] => 2025-02-20 06:24:06 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:24:06' and `end` < '2025-02-20 06: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-02-20 06:24:18] Production.INFO: count ==74 [2025-02-20 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:24:06 - End Time 2025-02-20 06:24:06 [2025-02-20 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515880', 'tblTempUsageDetail_20' ) start [2025-02-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515880', 'tblTempUsageDetail_20' ) end [2025-02-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515880', 'tblTempVendorCDR_20' ) start [2025-02-20 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515880', 'tblTempVendorCDR_20' ) end [2025-02-20 06:24:18] Production.INFO: ProcessCDR(1,14515880,1,1,2) [2025-02-20 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515880', 'tblTempUsageDetail_20' ) start [2025-02-20 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515880', 'tblTempUsageDetail_20' ) end [2025-02-20 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:24:21] Production.INFO: ==11883== Releasing lock... [2025-02-20 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:25:05 [end_date_ymd] => 2025-02-20 06:25:05 [RateCDR] => 1 ) [2025-02-20 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:25:05' and `end` < '2025-02-20 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:25:17] Production.INFO: count ==74 [2025-02-20 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:25:05 - End Time 2025-02-20 06:25:05 [2025-02-20 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515885', 'tblTempUsageDetail_20' ) start [2025-02-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515885', 'tblTempUsageDetail_20' ) end [2025-02-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515885', 'tblTempVendorCDR_20' ) start [2025-02-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515885', 'tblTempVendorCDR_20' ) end [2025-02-20 06:25:17] Production.INFO: ProcessCDR(1,14515885,1,1,2) [2025-02-20 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515885', 'tblTempUsageDetail_20' ) start [2025-02-20 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515885', 'tblTempUsageDetail_20' ) end [2025-02-20 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:25:20] Production.INFO: ==11958== Releasing lock... [2025-02-20 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:26:06 [end_date_ymd] => 2025-02-20 06:26:06 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:26:06' and `end` < '2025-02-20 06: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-02-20 06:26:17] Production.INFO: count ==74 [2025-02-20 06:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:26:06 - End Time 2025-02-20 06:26:06 [2025-02-20 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515890', 'tblTempUsageDetail_20' ) start [2025-02-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515890', 'tblTempUsageDetail_20' ) end [2025-02-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515890', 'tblTempVendorCDR_20' ) start [2025-02-20 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515890', 'tblTempVendorCDR_20' ) end [2025-02-20 06:26:17] Production.INFO: ProcessCDR(1,14515890,1,1,2) [2025-02-20 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515890', 'tblTempUsageDetail_20' ) start [2025-02-20 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515890', 'tblTempUsageDetail_20' ) end [2025-02-20 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:26:21] Production.INFO: ==12032== Releasing lock... [2025-02-20 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:27:05 [end_date_ymd] => 2025-02-20 06:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:27:05' and `end` < '2025-02-20 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-02-20 06:27:16] Production.INFO: count ==74 [2025-02-20 06:27:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:27:05 - End Time 2025-02-20 06:27:05 [2025-02-20 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515895', 'tblTempUsageDetail_20' ) start [2025-02-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515895', 'tblTempUsageDetail_20' ) end [2025-02-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515895', 'tblTempVendorCDR_20' ) start [2025-02-20 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515895', 'tblTempVendorCDR_20' ) end [2025-02-20 06:27:17] Production.INFO: ProcessCDR(1,14515895,1,1,2) [2025-02-20 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515895', 'tblTempUsageDetail_20' ) start [2025-02-20 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515895', 'tblTempUsageDetail_20' ) end [2025-02-20 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:27:20] Production.INFO: ==12102== Releasing lock... [2025-02-20 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:28:05 [end_date_ymd] => 2025-02-20 06:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:28:05' and `end` < '2025-02-20 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-02-20 06:28:17] Production.INFO: count ==78 [2025-02-20 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:28:05 - End Time 2025-02-20 06:28:05 [2025-02-20 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515900', 'tblTempUsageDetail_20' ) start [2025-02-20 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515900', 'tblTempUsageDetail_20' ) end [2025-02-20 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515900', 'tblTempVendorCDR_20' ) start [2025-02-20 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515900', 'tblTempVendorCDR_20' ) end [2025-02-20 06:28:17] Production.INFO: ProcessCDR(1,14515900,1,1,2) [2025-02-20 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515900', 'tblTempUsageDetail_20' ) start [2025-02-20 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515900', 'tblTempUsageDetail_20' ) end [2025-02-20 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:28:20] Production.INFO: ==12173== Releasing lock... [2025-02-20 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:29:05 [end_date_ymd] => 2025-02-20 06:29:05 [RateCDR] => 1 ) [2025-02-20 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:29:05' and `end` < '2025-02-20 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:29:17] Production.INFO: count ==82 [2025-02-20 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:29:05 - End Time 2025-02-20 06:29:05 [2025-02-20 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515905', 'tblTempUsageDetail_20' ) start [2025-02-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515905', 'tblTempUsageDetail_20' ) end [2025-02-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515905', 'tblTempVendorCDR_20' ) start [2025-02-20 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515905', 'tblTempVendorCDR_20' ) end [2025-02-20 06:29:17] Production.INFO: ProcessCDR(1,14515905,1,1,2) [2025-02-20 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515905', 'tblTempUsageDetail_20' ) start [2025-02-20 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515905', 'tblTempUsageDetail_20' ) end [2025-02-20 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:29:20] Production.INFO: ==12242== Releasing lock... [2025-02-20 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:30:06 [end_date_ymd] => 2025-02-20 06:30:06 [RateCDR] => 1 ) [2025-02-20 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:30:06' and `end` < '2025-02-20 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:30:17] Production.INFO: count ==86 [2025-02-20 06:30:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:30:06 - End Time 2025-02-20 06:30:06 [2025-02-20 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515910', 'tblTempUsageDetail_20' ) start [2025-02-20 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515910', 'tblTempUsageDetail_20' ) end [2025-02-20 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515910', 'tblTempVendorCDR_20' ) start [2025-02-20 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515910', 'tblTempVendorCDR_20' ) end [2025-02-20 06:30:17] Production.INFO: ProcessCDR(1,14515910,1,1,2) [2025-02-20 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515910', 'tblTempUsageDetail_20' ) start [2025-02-20 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515910', 'tblTempUsageDetail_20' ) end [2025-02-20 06:30:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:30:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:30:20] Production.INFO: ==12321== Releasing lock... [2025-02-20 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:30:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:31:05 [end_date_ymd] => 2025-02-20 06:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:31:05' and `end` < '2025-02-20 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-02-20 06:31:17] Production.INFO: count ==87 [2025-02-20 06:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:31:05 - End Time 2025-02-20 06:31:05 [2025-02-20 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515916', 'tblTempUsageDetail_20' ) start [2025-02-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515916', 'tblTempUsageDetail_20' ) end [2025-02-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515916', 'tblTempVendorCDR_20' ) start [2025-02-20 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515916', 'tblTempVendorCDR_20' ) end [2025-02-20 06:31:17] Production.INFO: ProcessCDR(1,14515916,1,1,2) [2025-02-20 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515916', 'tblTempUsageDetail_20' ) start [2025-02-20 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515916', 'tblTempUsageDetail_20' ) end [2025-02-20 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:31:20] Production.INFO: ==12397== Releasing lock... [2025-02-20 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:31:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:32:05 [end_date_ymd] => 2025-02-20 06:32:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:32:05' and `end` < '2025-02-20 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-02-20 06:32:17] Production.INFO: count ==87 [2025-02-20 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:32:05 - End Time 2025-02-20 06:32:05 [2025-02-20 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515921', 'tblTempUsageDetail_20' ) start [2025-02-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515921', 'tblTempUsageDetail_20' ) end [2025-02-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515921', 'tblTempVendorCDR_20' ) start [2025-02-20 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515921', 'tblTempVendorCDR_20' ) end [2025-02-20 06:32:17] Production.INFO: ProcessCDR(1,14515921,1,1,2) [2025-02-20 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515921', 'tblTempUsageDetail_20' ) start [2025-02-20 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515921', 'tblTempUsageDetail_20' ) end [2025-02-20 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:32:20] Production.INFO: ==12469== Releasing lock... [2025-02-20 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:33:05 [end_date_ymd] => 2025-02-20 06:33:05 [RateCDR] => 1 ) [2025-02-20 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:33:05' and `end` < '2025-02-20 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:33:16] Production.INFO: count ==87 [2025-02-20 06:33:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:33:05 - End Time 2025-02-20 06:33:05 [2025-02-20 06:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515926', 'tblTempUsageDetail_20' ) start [2025-02-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515926', 'tblTempUsageDetail_20' ) end [2025-02-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515926', 'tblTempVendorCDR_20' ) start [2025-02-20 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515926', 'tblTempVendorCDR_20' ) end [2025-02-20 06:33:16] Production.INFO: ProcessCDR(1,14515926,1,1,2) [2025-02-20 06:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515926', 'tblTempUsageDetail_20' ) start [2025-02-20 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515926', 'tblTempUsageDetail_20' ) end [2025-02-20 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:33:20] Production.INFO: ==12540== Releasing lock... [2025-02-20 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:34:05 [end_date_ymd] => 2025-02-20 06:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:34:05' and `end` < '2025-02-20 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-02-20 06:34:17] Production.INFO: count ==87 [2025-02-20 06:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:34:05 - End Time 2025-02-20 06:34:05 [2025-02-20 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515931', 'tblTempUsageDetail_20' ) start [2025-02-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515931', 'tblTempUsageDetail_20' ) end [2025-02-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515931', 'tblTempVendorCDR_20' ) start [2025-02-20 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515931', 'tblTempVendorCDR_20' ) end [2025-02-20 06:34:17] Production.INFO: ProcessCDR(1,14515931,1,1,2) [2025-02-20 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515931', 'tblTempUsageDetail_20' ) start [2025-02-20 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515931', 'tblTempUsageDetail_20' ) end [2025-02-20 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:34:20] Production.INFO: ==12611== Releasing lock... [2025-02-20 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:35:04 [end_date_ymd] => 2025-02-20 06:35:04 [RateCDR] => 1 ) [2025-02-20 06:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:35:04' and `end` < '2025-02-20 06:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:35:16] Production.INFO: count ==87 [2025-02-20 06:35:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:35:04 - End Time 2025-02-20 06:35:04 [2025-02-20 06:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515932', 'tblTempUsageDetail_20' ) start [2025-02-20 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515932', 'tblTempUsageDetail_20' ) end [2025-02-20 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515932', 'tblTempVendorCDR_20' ) start [2025-02-20 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515932', 'tblTempVendorCDR_20' ) end [2025-02-20 06:35:16] Production.INFO: ProcessCDR(1,14515932,1,1,2) [2025-02-20 06:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515932', 'tblTempUsageDetail_20' ) start [2025-02-20 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515932', 'tblTempUsageDetail_20' ) end [2025-02-20 06:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:35:19] Production.INFO: ==12722== Releasing lock... [2025-02-20 06:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:35:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:36:05 [end_date_ymd] => 2025-02-20 06:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:36:05' and `end` < '2025-02-20 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-02-20 06:36:17] Production.INFO: count ==87 [2025-02-20 06:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:36:05 - End Time 2025-02-20 06:36:05 [2025-02-20 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515941', 'tblTempUsageDetail_20' ) start [2025-02-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515941', 'tblTempUsageDetail_20' ) end [2025-02-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515941', 'tblTempVendorCDR_20' ) start [2025-02-20 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515941', 'tblTempVendorCDR_20' ) end [2025-02-20 06:36:17] Production.INFO: ProcessCDR(1,14515941,1,1,2) [2025-02-20 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515941', 'tblTempUsageDetail_20' ) start [2025-02-20 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515941', 'tblTempUsageDetail_20' ) end [2025-02-20 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:36:20] Production.INFO: ==12795== Releasing lock... [2025-02-20 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:37:05 [end_date_ymd] => 2025-02-20 06:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:37:05' and `end` < '2025-02-20 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-02-20 06:37:16] Production.INFO: count ==87 [2025-02-20 06:37:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:37:05 - End Time 2025-02-20 06:37:05 [2025-02-20 06:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515946', 'tblTempUsageDetail_20' ) start [2025-02-20 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515946', 'tblTempUsageDetail_20' ) end [2025-02-20 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515946', 'tblTempVendorCDR_20' ) start [2025-02-20 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515946', 'tblTempVendorCDR_20' ) end [2025-02-20 06:37:16] Production.INFO: ProcessCDR(1,14515946,1,1,2) [2025-02-20 06:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515946', 'tblTempUsageDetail_20' ) start [2025-02-20 06:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515946', 'tblTempUsageDetail_20' ) end [2025-02-20 06:37:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:37:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:37:19] Production.INFO: ==12872== Releasing lock... [2025-02-20 06:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:37:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:38:05 [end_date_ymd] => 2025-02-20 06:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:38:05' and `end` < '2025-02-20 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-02-20 06:38:17] Production.INFO: count ==87 [2025-02-20 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:38:05 - End Time 2025-02-20 06:38:05 [2025-02-20 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515951', 'tblTempUsageDetail_20' ) start [2025-02-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515951', 'tblTempUsageDetail_20' ) end [2025-02-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515951', 'tblTempVendorCDR_20' ) start [2025-02-20 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515951', 'tblTempVendorCDR_20' ) end [2025-02-20 06:38:17] Production.INFO: ProcessCDR(1,14515951,1,1,2) [2025-02-20 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515951', 'tblTempUsageDetail_20' ) start [2025-02-20 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515951', 'tblTempUsageDetail_20' ) end [2025-02-20 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:38:20] Production.INFO: ==12949== Releasing lock... [2025-02-20 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:39:06 [end_date_ymd] => 2025-02-20 06:39:06 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:39:06' and `end` < '2025-02-20 06: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-02-20 06:39:17] Production.INFO: count ==87 [2025-02-20 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:39:06 - End Time 2025-02-20 06:39:06 [2025-02-20 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515956', 'tblTempUsageDetail_20' ) start [2025-02-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515956', 'tblTempUsageDetail_20' ) end [2025-02-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515956', 'tblTempVendorCDR_20' ) start [2025-02-20 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515956', 'tblTempVendorCDR_20' ) end [2025-02-20 06:39:17] Production.INFO: ProcessCDR(1,14515956,1,1,2) [2025-02-20 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515956', 'tblTempUsageDetail_20' ) start [2025-02-20 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515956', 'tblTempUsageDetail_20' ) end [2025-02-20 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:39:20] Production.INFO: ==13026== Releasing lock... [2025-02-20 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:40:06 [end_date_ymd] => 2025-02-20 06:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:40:06' and `end` < '2025-02-20 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-02-20 06:40:18] Production.INFO: count ==87 [2025-02-20 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:40:06 - End Time 2025-02-20 06:40:06 [2025-02-20 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515962', 'tblTempUsageDetail_20' ) start [2025-02-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515962', 'tblTempUsageDetail_20' ) end [2025-02-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515962', 'tblTempVendorCDR_20' ) start [2025-02-20 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515962', 'tblTempVendorCDR_20' ) end [2025-02-20 06:40:18] Production.INFO: ProcessCDR(1,14515962,1,1,2) [2025-02-20 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515962', 'tblTempUsageDetail_20' ) start [2025-02-20 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515962', 'tblTempUsageDetail_20' ) end [2025-02-20 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:40:21] Production.INFO: ==13105== Releasing lock... [2025-02-20 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:41:06 [end_date_ymd] => 2025-02-20 06:41:06 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:41:06' and `end` < '2025-02-20 06: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-02-20 06:41:18] Production.INFO: count ==87 [2025-02-20 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:41:06 - End Time 2025-02-20 06:41:06 [2025-02-20 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515967', 'tblTempUsageDetail_20' ) start [2025-02-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515967', 'tblTempUsageDetail_20' ) end [2025-02-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515967', 'tblTempVendorCDR_20' ) start [2025-02-20 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515967', 'tblTempVendorCDR_20' ) end [2025-02-20 06:41:18] Production.INFO: ProcessCDR(1,14515967,1,1,2) [2025-02-20 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515967', 'tblTempUsageDetail_20' ) start [2025-02-20 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515967', 'tblTempUsageDetail_20' ) end [2025-02-20 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:41:21] Production.INFO: ==13182== Releasing lock... [2025-02-20 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:42:05 [end_date_ymd] => 2025-02-20 06:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:42:05' and `end` < '2025-02-20 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-02-20 06:42:17] Production.INFO: count ==87 [2025-02-20 06:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:42:05 - End Time 2025-02-20 06:42:05 [2025-02-20 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515972', 'tblTempUsageDetail_20' ) start [2025-02-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515972', 'tblTempUsageDetail_20' ) end [2025-02-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515972', 'tblTempVendorCDR_20' ) start [2025-02-20 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515972', 'tblTempVendorCDR_20' ) end [2025-02-20 06:42:17] Production.INFO: ProcessCDR(1,14515972,1,1,2) [2025-02-20 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515972', 'tblTempUsageDetail_20' ) start [2025-02-20 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515972', 'tblTempUsageDetail_20' ) end [2025-02-20 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:42:20] Production.INFO: ==13261== Releasing lock... [2025-02-20 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:43:06 [end_date_ymd] => 2025-02-20 06:43:06 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:43:06' and `end` < '2025-02-20 06: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-02-20 06:43:18] Production.INFO: count ==88 [2025-02-20 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:43:06 - End Time 2025-02-20 06:43:06 [2025-02-20 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515977', 'tblTempUsageDetail_20' ) start [2025-02-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515977', 'tblTempUsageDetail_20' ) end [2025-02-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515977', 'tblTempVendorCDR_20' ) start [2025-02-20 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515977', 'tblTempVendorCDR_20' ) end [2025-02-20 06:43:18] Production.INFO: ProcessCDR(1,14515977,1,1,2) [2025-02-20 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515977', 'tblTempUsageDetail_20' ) start [2025-02-20 06:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515977', 'tblTempUsageDetail_20' ) end [2025-02-20 06:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:43:23] Production.INFO: ==13339== Releasing lock... [2025-02-20 06:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:43:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:44:05 [end_date_ymd] => 2025-02-20 06:44:05 [RateCDR] => 1 ) [2025-02-20 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:44:05' and `end` < '2025-02-20 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:44:17] Production.INFO: count ==84 [2025-02-20 06:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:44:05 - End Time 2025-02-20 06:44:05 [2025-02-20 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515982', 'tblTempUsageDetail_20' ) start [2025-02-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515982', 'tblTempUsageDetail_20' ) end [2025-02-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515982', 'tblTempVendorCDR_20' ) start [2025-02-20 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515982', 'tblTempVendorCDR_20' ) end [2025-02-20 06:44:17] Production.INFO: ProcessCDR(1,14515982,1,1,2) [2025-02-20 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515982', 'tblTempUsageDetail_20' ) start [2025-02-20 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515982', 'tblTempUsageDetail_20' ) end [2025-02-20 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:44:20] Production.INFO: ==13415== Releasing lock... [2025-02-20 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:45:04 [end_date_ymd] => 2025-02-20 06:45:04 [RateCDR] => 1 ) [2025-02-20 06:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:45:04' and `end` < '2025-02-20 06: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-02-20 06:45:16] Production.INFO: count ==80 [2025-02-20 06:45:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:45:04 - End Time 2025-02-20 06:45:04 [2025-02-20 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515987', 'tblTempUsageDetail_20' ) start [2025-02-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515987', 'tblTempUsageDetail_20' ) end [2025-02-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515987', 'tblTempVendorCDR_20' ) start [2025-02-20 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515987', 'tblTempVendorCDR_20' ) end [2025-02-20 06:45:16] Production.INFO: ProcessCDR(1,14515987,1,1,2) [2025-02-20 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515987', 'tblTempUsageDetail_20' ) start [2025-02-20 06:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515987', 'tblTempUsageDetail_20' ) end [2025-02-20 06:45:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:45:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:45:19] Production.INFO: ==13489== Releasing lock... [2025-02-20 06:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:45:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:46:05 [end_date_ymd] => 2025-02-20 06:46:05 [RateCDR] => 1 ) [2025-02-20 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:46:05' and `end` < '2025-02-20 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:46:17] Production.INFO: count ==80 [2025-02-20 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:46:05 - End Time 2025-02-20 06:46:05 [2025-02-20 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515992', 'tblTempUsageDetail_20' ) start [2025-02-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515992', 'tblTempUsageDetail_20' ) end [2025-02-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515992', 'tblTempVendorCDR_20' ) start [2025-02-20 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515992', 'tblTempVendorCDR_20' ) end [2025-02-20 06:46:17] Production.INFO: ProcessCDR(1,14515992,1,1,2) [2025-02-20 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515992', 'tblTempUsageDetail_20' ) start [2025-02-20 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515992', 'tblTempUsageDetail_20' ) end [2025-02-20 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:46:21] Production.INFO: ==13564== Releasing lock... [2025-02-20 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:47:05 [end_date_ymd] => 2025-02-20 06:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:47:05' and `end` < '2025-02-20 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-02-20 06:47:17] Production.INFO: count ==85 [2025-02-20 06:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:47:05 - End Time 2025-02-20 06:47:05 [2025-02-20 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515997', 'tblTempUsageDetail_20' ) start [2025-02-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14515997', 'tblTempUsageDetail_20' ) end [2025-02-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515997', 'tblTempVendorCDR_20' ) start [2025-02-20 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14515997', 'tblTempVendorCDR_20' ) end [2025-02-20 06:47:17] Production.INFO: ProcessCDR(1,14515997,1,1,2) [2025-02-20 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14515997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14515997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14515997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14515997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515997', 'tblTempUsageDetail_20' ) start [2025-02-20 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14515997', 'tblTempUsageDetail_20' ) end [2025-02-20 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:47:22] Production.INFO: ==13641== Releasing lock... [2025-02-20 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:48:05 [end_date_ymd] => 2025-02-20 06:48:05 [RateCDR] => 1 ) [2025-02-20 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:48:05' and `end` < '2025-02-20 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:48:17] Production.INFO: count ==85 [2025-02-20 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:48:05 - End Time 2025-02-20 06:48:05 [2025-02-20 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516002', 'tblTempUsageDetail_20' ) start [2025-02-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516002', 'tblTempUsageDetail_20' ) end [2025-02-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516002', 'tblTempVendorCDR_20' ) start [2025-02-20 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516002', 'tblTempVendorCDR_20' ) end [2025-02-20 06:48:17] Production.INFO: ProcessCDR(1,14516002,1,1,2) [2025-02-20 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516002', 'tblTempUsageDetail_20' ) start [2025-02-20 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516002', 'tblTempUsageDetail_20' ) end [2025-02-20 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:48:20] Production.INFO: ==13719== Releasing lock... [2025-02-20 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:49:04 [end_date_ymd] => 2025-02-20 06:49:04 [RateCDR] => 1 ) [2025-02-20 06:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:49:04' and `end` < '2025-02-20 06:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:49:16] Production.INFO: count ==85 [2025-02-20 06:49:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:49:04 - End Time 2025-02-20 06:49:04 [2025-02-20 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516007', 'tblTempUsageDetail_20' ) start [2025-02-20 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516007', 'tblTempUsageDetail_20' ) end [2025-02-20 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516007', 'tblTempVendorCDR_20' ) start [2025-02-20 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516007', 'tblTempVendorCDR_20' ) end [2025-02-20 06:49:16] Production.INFO: ProcessCDR(1,14516007,1,1,2) [2025-02-20 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516007', 'tblTempUsageDetail_20' ) start [2025-02-20 06:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516007', 'tblTempUsageDetail_20' ) end [2025-02-20 06:49:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:49:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:49:19] Production.INFO: ==13798== Releasing lock... [2025-02-20 06:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:49:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-20 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:50:06 [end_date_ymd] => 2025-02-20 06:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:50:06' and `end` < '2025-02-20 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-02-20 06:50:18] Production.INFO: count ==91 [2025-02-20 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 03:50:06 - End Time 2025-02-20 06:50:06 [2025-02-20 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516012', 'tblTempUsageDetail_20' ) start [2025-02-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516012', 'tblTempUsageDetail_20' ) end [2025-02-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516012', 'tblTempVendorCDR_20' ) start [2025-02-20 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516012', 'tblTempVendorCDR_20' ) end [2025-02-20 06:50:18] Production.INFO: ProcessCDR(1,14516012,1,1,2) [2025-02-20 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516012', 'tblTempUsageDetail_20' ) start [2025-02-20 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516012', 'tblTempUsageDetail_20' ) end [2025-02-20 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:50:21] Production.INFO: ==13877== Releasing lock... [2025-02-20 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:51:06 [end_date_ymd] => 2025-02-20 06:51:06 [RateCDR] => 1 ) [2025-02-20 06: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-02-20 03:51:06' and `end` < '2025-02-20 06: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-02-20 06:51:17] Production.INFO: count ==91 [2025-02-20 06:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:51:06 - End Time 2025-02-20 06:51:06 [2025-02-20 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516018', 'tblTempUsageDetail_20' ) start [2025-02-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516018', 'tblTempUsageDetail_20' ) end [2025-02-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516018', 'tblTempVendorCDR_20' ) start [2025-02-20 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516018', 'tblTempVendorCDR_20' ) end [2025-02-20 06:51:17] Production.INFO: ProcessCDR(1,14516018,1,1,2) [2025-02-20 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516018', 'tblTempUsageDetail_20' ) start [2025-02-20 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516018', 'tblTempUsageDetail_20' ) end [2025-02-20 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:51:20] Production.INFO: ==13992== Releasing lock... [2025-02-20 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:52:05 [end_date_ymd] => 2025-02-20 06:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:52:05' and `end` < '2025-02-20 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-02-20 06:52:17] Production.INFO: count ==91 [2025-02-20 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:52:05 - End Time 2025-02-20 06:52:05 [2025-02-20 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516023', 'tblTempUsageDetail_20' ) start [2025-02-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516023', 'tblTempUsageDetail_20' ) end [2025-02-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516023', 'tblTempVendorCDR_20' ) start [2025-02-20 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516023', 'tblTempVendorCDR_20' ) end [2025-02-20 06:52:17] Production.INFO: ProcessCDR(1,14516023,1,1,2) [2025-02-20 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516023', 'tblTempUsageDetail_20' ) start [2025-02-20 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516023', 'tblTempUsageDetail_20' ) end [2025-02-20 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:52:20] Production.INFO: ==14067== Releasing lock... [2025-02-20 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:53:05 [end_date_ymd] => 2025-02-20 06:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:53:05' and `end` < '2025-02-20 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-02-20 06:53:17] Production.INFO: count ==91 [2025-02-20 06:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:53:05 - End Time 2025-02-20 06:53:05 [2025-02-20 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516028', 'tblTempUsageDetail_20' ) start [2025-02-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516028', 'tblTempUsageDetail_20' ) end [2025-02-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516028', 'tblTempVendorCDR_20' ) start [2025-02-20 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516028', 'tblTempVendorCDR_20' ) end [2025-02-20 06:53:17] Production.INFO: ProcessCDR(1,14516028,1,1,2) [2025-02-20 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516028', 'tblTempUsageDetail_20' ) start [2025-02-20 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516028', 'tblTempUsageDetail_20' ) end [2025-02-20 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:53:20] Production.INFO: ==14147== Releasing lock... [2025-02-20 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:54:05 [end_date_ymd] => 2025-02-20 06:54:05 [RateCDR] => 1 ) [2025-02-20 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:54:05' and `end` < '2025-02-20 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:54:17] Production.INFO: count ==92 [2025-02-20 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:54:05 - End Time 2025-02-20 06:54:05 [2025-02-20 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516033', 'tblTempUsageDetail_20' ) start [2025-02-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516033', 'tblTempUsageDetail_20' ) end [2025-02-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516033', 'tblTempVendorCDR_20' ) start [2025-02-20 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516033', 'tblTempVendorCDR_20' ) end [2025-02-20 06:54:17] Production.INFO: ProcessCDR(1,14516033,1,1,2) [2025-02-20 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516033', 'tblTempUsageDetail_20' ) start [2025-02-20 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516033', 'tblTempUsageDetail_20' ) end [2025-02-20 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:54:21] Production.INFO: ==14223== Releasing lock... [2025-02-20 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:55:05 [end_date_ymd] => 2025-02-20 06:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:55:05' and `end` < '2025-02-20 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-02-20 06:55:17] Production.INFO: count ==92 [2025-02-20 06:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:55:05 - End Time 2025-02-20 06:55:05 [2025-02-20 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516038', 'tblTempUsageDetail_20' ) start [2025-02-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516038', 'tblTempUsageDetail_20' ) end [2025-02-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516038', 'tblTempVendorCDR_20' ) start [2025-02-20 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516038', 'tblTempVendorCDR_20' ) end [2025-02-20 06:55:17] Production.INFO: ProcessCDR(1,14516038,1,1,2) [2025-02-20 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516038', 'tblTempUsageDetail_20' ) start [2025-02-20 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516038', 'tblTempUsageDetail_20' ) end [2025-02-20 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:55:20] Production.INFO: ==14301== Releasing lock... [2025-02-20 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:56:04 [end_date_ymd] => 2025-02-20 06:56:04 [RateCDR] => 1 ) [2025-02-20 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:56:04' and `end` < '2025-02-20 06:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:56:16] Production.INFO: count ==92 [2025-02-20 06:56:16] Production.ERROR: pbx CDR StartTime 2025-02-20 03:56:04 - End Time 2025-02-20 06:56:04 [2025-02-20 06:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516043', 'tblTempUsageDetail_20' ) start [2025-02-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516043', 'tblTempUsageDetail_20' ) end [2025-02-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516043', 'tblTempVendorCDR_20' ) start [2025-02-20 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516043', 'tblTempVendorCDR_20' ) end [2025-02-20 06:56:16] Production.INFO: ProcessCDR(1,14516043,1,1,2) [2025-02-20 06:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516043', 'tblTempUsageDetail_20' ) start [2025-02-20 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516043', 'tblTempUsageDetail_20' ) end [2025-02-20 06:56:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:56:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:56:19] Production.INFO: ==14375== Releasing lock... [2025-02-20 06:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:56:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:57:05 [end_date_ymd] => 2025-02-20 06:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:57:05' and `end` < '2025-02-20 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-02-20 06:57:17] Production.INFO: count ==92 [2025-02-20 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:57:05 - End Time 2025-02-20 06:57:05 [2025-02-20 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516048', 'tblTempUsageDetail_20' ) start [2025-02-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516048', 'tblTempUsageDetail_20' ) end [2025-02-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516048', 'tblTempVendorCDR_20' ) start [2025-02-20 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516048', 'tblTempVendorCDR_20' ) end [2025-02-20 06:57:17] Production.INFO: ProcessCDR(1,14516048,1,1,2) [2025-02-20 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516048', 'tblTempUsageDetail_20' ) start [2025-02-20 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516048', 'tblTempUsageDetail_20' ) end [2025-02-20 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:57:20] Production.INFO: ==14452== Releasing lock... [2025-02-20 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:58:05 [end_date_ymd] => 2025-02-20 06:58:05 [RateCDR] => 1 ) [2025-02-20 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 03:58:05' and `end` < '2025-02-20 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 06:58:17] Production.INFO: count ==92 [2025-02-20 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:58:05 - End Time 2025-02-20 06:58:05 [2025-02-20 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516053', 'tblTempUsageDetail_20' ) start [2025-02-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516053', 'tblTempUsageDetail_20' ) end [2025-02-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516053', 'tblTempVendorCDR_20' ) start [2025-02-20 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516053', 'tblTempVendorCDR_20' ) end [2025-02-20 06:58:17] Production.INFO: ProcessCDR(1,14516053,1,1,2) [2025-02-20 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516053', 'tblTempUsageDetail_20' ) start [2025-02-20 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516053', 'tblTempUsageDetail_20' ) end [2025-02-20 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:58:20] Production.INFO: ==14531== Releasing lock... [2025-02-20 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 03:59:05 [end_date_ymd] => 2025-02-20 06:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 03:59:05' and `end` < '2025-02-20 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-02-20 06:59:17] Production.INFO: count ==92 [2025-02-20 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-20 03:59:05 - End Time 2025-02-20 06:59:05 [2025-02-20 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516058', 'tblTempUsageDetail_20' ) start [2025-02-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516058', 'tblTempUsageDetail_20' ) end [2025-02-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516058', 'tblTempVendorCDR_20' ) start [2025-02-20 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516058', 'tblTempVendorCDR_20' ) end [2025-02-20 06:59:17] Production.INFO: ProcessCDR(1,14516058,1,1,2) [2025-02-20 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516058', 'tblTempUsageDetail_20' ) start [2025-02-20 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516058', 'tblTempUsageDetail_20' ) end [2025-02-20 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 06:59:20] Production.INFO: ==14603== Releasing lock... [2025-02-20 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:00:06 [end_date_ymd] => 2025-02-20 07:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:00:06' and `end` < '2025-02-20 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-02-20 07:00:18] Production.INFO: count ==101 [2025-02-20 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:00:06 - End Time 2025-02-20 07:00:06 [2025-02-20 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516064', 'tblTempUsageDetail_20' ) start [2025-02-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516064', 'tblTempUsageDetail_20' ) end [2025-02-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516064', 'tblTempVendorCDR_20' ) start [2025-02-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516064', 'tblTempVendorCDR_20' ) end [2025-02-20 07:00:18] Production.INFO: ProcessCDR(1,14516064,1,1,2) [2025-02-20 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516064', 'tblTempUsageDetail_20' ) start [2025-02-20 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516064', 'tblTempUsageDetail_20' ) end [2025-02-20 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:00:23] Production.INFO: ==14683== Releasing lock... [2025-02-20 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:01:05 [end_date_ymd] => 2025-02-20 07:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:01:05' and `end` < '2025-02-20 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-02-20 07:01:17] Production.INFO: count ==103 [2025-02-20 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:01:05 - End Time 2025-02-20 07:01:05 [2025-02-20 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516069', 'tblTempUsageDetail_20' ) start [2025-02-20 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516069', 'tblTempUsageDetail_20' ) end [2025-02-20 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516069', 'tblTempVendorCDR_20' ) start [2025-02-20 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516069', 'tblTempVendorCDR_20' ) end [2025-02-20 07:01:17] Production.INFO: ProcessCDR(1,14516069,1,1,2) [2025-02-20 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516069', 'tblTempUsageDetail_20' ) start [2025-02-20 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516069', 'tblTempUsageDetail_20' ) end [2025-02-20 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:01:20] Production.INFO: ==14819== Releasing lock... [2025-02-20 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:02:06 [end_date_ymd] => 2025-02-20 07:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:02:06' and `end` < '2025-02-20 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-02-20 07:02:18] Production.INFO: count ==105 [2025-02-20 07:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:02:06 - End Time 2025-02-20 07:02:06 [2025-02-20 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516074', 'tblTempUsageDetail_20' ) start [2025-02-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516074', 'tblTempUsageDetail_20' ) end [2025-02-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516074', 'tblTempVendorCDR_20' ) start [2025-02-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516074', 'tblTempVendorCDR_20' ) end [2025-02-20 07:02:18] Production.INFO: ProcessCDR(1,14516074,1,1,2) [2025-02-20 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516074', 'tblTempUsageDetail_20' ) start [2025-02-20 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516074', 'tblTempUsageDetail_20' ) end [2025-02-20 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:02:22] Production.INFO: ==14927== Releasing lock... [2025-02-20 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:03:05 [end_date_ymd] => 2025-02-20 07:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:03:05' and `end` < '2025-02-20 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-02-20 07:03:17] Production.INFO: count ==109 [2025-02-20 07:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:03:05 - End Time 2025-02-20 07:03:05 [2025-02-20 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516079', 'tblTempUsageDetail_20' ) start [2025-02-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516079', 'tblTempUsageDetail_20' ) end [2025-02-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516079', 'tblTempVendorCDR_20' ) start [2025-02-20 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516079', 'tblTempVendorCDR_20' ) end [2025-02-20 07:03:17] Production.INFO: ProcessCDR(1,14516079,1,1,2) [2025-02-20 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516079', 'tblTempUsageDetail_20' ) start [2025-02-20 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516079', 'tblTempUsageDetail_20' ) end [2025-02-20 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:03:21] Production.INFO: ==15001== Releasing lock... [2025-02-20 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-20 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:04:06 [end_date_ymd] => 2025-02-20 07:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:04:06' and `end` < '2025-02-20 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-02-20 07:04:18] Production.INFO: count ==114 [2025-02-20 07:04:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:04:06 - End Time 2025-02-20 07:04:06 [2025-02-20 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516084', 'tblTempUsageDetail_20' ) start [2025-02-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516084', 'tblTempUsageDetail_20' ) end [2025-02-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516084', 'tblTempVendorCDR_20' ) start [2025-02-20 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516084', 'tblTempVendorCDR_20' ) end [2025-02-20 07:04:18] Production.INFO: ProcessCDR(1,14516084,1,1,2) [2025-02-20 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516084', 'tblTempUsageDetail_20' ) start [2025-02-20 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516084', 'tblTempUsageDetail_20' ) end [2025-02-20 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:04:23] Production.INFO: ==15081== Releasing lock... [2025-02-20 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:04:23] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:05:05 [end_date_ymd] => 2025-02-20 07:05:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:05:05' and `end` < '2025-02-20 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-02-20 07:05:18] Production.INFO: count ==114 [2025-02-20 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:05:05 - End Time 2025-02-20 07:05:05 [2025-02-20 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516089', 'tblTempUsageDetail_20' ) start [2025-02-20 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516089', 'tblTempUsageDetail_20' ) end [2025-02-20 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516089', 'tblTempVendorCDR_20' ) start [2025-02-20 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516089', 'tblTempVendorCDR_20' ) end [2025-02-20 07:05:18] Production.INFO: ProcessCDR(1,14516089,1,1,2) [2025-02-20 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516089', 'tblTempUsageDetail_20' ) start [2025-02-20 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516089', 'tblTempUsageDetail_20' ) end [2025-02-20 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:05:21] Production.INFO: ==15231== Releasing lock... [2025-02-20 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:05:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:06:05 [end_date_ymd] => 2025-02-20 07:06:05 [RateCDR] => 1 ) [2025-02-20 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:06:05' and `end` < '2025-02-20 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:06:18] Production.INFO: count ==114 [2025-02-20 07:06:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:06:05 - End Time 2025-02-20 07:06:05 [2025-02-20 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516094', 'tblTempUsageDetail_20' ) start [2025-02-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516094', 'tblTempUsageDetail_20' ) end [2025-02-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516094', 'tblTempVendorCDR_20' ) start [2025-02-20 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516094', 'tblTempVendorCDR_20' ) end [2025-02-20 07:06:18] Production.INFO: ProcessCDR(1,14516094,1,1,2) [2025-02-20 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516094', 'tblTempUsageDetail_20' ) start [2025-02-20 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516094', 'tblTempUsageDetail_20' ) end [2025-02-20 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:06:21] Production.INFO: ==15351== Releasing lock... [2025-02-20 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:06:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:07:04 [end_date_ymd] => 2025-02-20 07:07:04 [RateCDR] => 1 ) [2025-02-20 07:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:07:04' and `end` < '2025-02-20 07:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:07:16] Production.INFO: count ==114 [2025-02-20 07:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:07:04 - End Time 2025-02-20 07:07:04 [2025-02-20 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516099', 'tblTempUsageDetail_20' ) start [2025-02-20 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516099', 'tblTempUsageDetail_20' ) end [2025-02-20 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516099', 'tblTempVendorCDR_20' ) start [2025-02-20 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516099', 'tblTempVendorCDR_20' ) end [2025-02-20 07:07:17] Production.INFO: ProcessCDR(1,14516099,1,1,2) [2025-02-20 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516099', 'tblTempUsageDetail_20' ) start [2025-02-20 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516099', 'tblTempUsageDetail_20' ) end [2025-02-20 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:07:20] Production.INFO: ==15425== Releasing lock... [2025-02-20 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:07:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:08:05 [end_date_ymd] => 2025-02-20 07:08:05 [RateCDR] => 1 ) [2025-02-20 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:08:05' and `end` < '2025-02-20 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:08:18] Production.INFO: count ==114 [2025-02-20 07:08:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:08:05 - End Time 2025-02-20 07:08:05 [2025-02-20 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516104', 'tblTempUsageDetail_20' ) start [2025-02-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516104', 'tblTempUsageDetail_20' ) end [2025-02-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516104', 'tblTempVendorCDR_20' ) start [2025-02-20 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516104', 'tblTempVendorCDR_20' ) end [2025-02-20 07:08:18] Production.INFO: ProcessCDR(1,14516104,1,1,2) [2025-02-20 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516104', 'tblTempUsageDetail_20' ) start [2025-02-20 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516104', 'tblTempUsageDetail_20' ) end [2025-02-20 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:08:21] Production.INFO: ==15579== Releasing lock... [2025-02-20 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:08:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:09:05 [end_date_ymd] => 2025-02-20 07:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:09:05' and `end` < '2025-02-20 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-02-20 07:09:18] Production.INFO: count ==114 [2025-02-20 07:09:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:09:05 - End Time 2025-02-20 07:09:05 [2025-02-20 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516109', 'tblTempUsageDetail_20' ) start [2025-02-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516109', 'tblTempUsageDetail_20' ) end [2025-02-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516109', 'tblTempVendorCDR_20' ) start [2025-02-20 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516109', 'tblTempVendorCDR_20' ) end [2025-02-20 07:09:18] Production.INFO: ProcessCDR(1,14516109,1,1,2) [2025-02-20 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516109', 'tblTempUsageDetail_20' ) start [2025-02-20 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516109', 'tblTempUsageDetail_20' ) end [2025-02-20 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:09:21] Production.INFO: ==15656== Releasing lock... [2025-02-20 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:09:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:10:06 [end_date_ymd] => 2025-02-20 07:10:06 [RateCDR] => 1 ) [2025-02-20 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:10:06' and `end` < '2025-02-20 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:10:17] Production.INFO: count ==108 [2025-02-20 07:10:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:10:06 - End Time 2025-02-20 07:10:06 [2025-02-20 07:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516114', 'tblTempUsageDetail_20' ) start [2025-02-20 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516114', 'tblTempUsageDetail_20' ) end [2025-02-20 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516114', 'tblTempVendorCDR_20' ) start [2025-02-20 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516114', 'tblTempVendorCDR_20' ) end [2025-02-20 07:10:17] Production.INFO: ProcessCDR(1,14516114,1,1,2) [2025-02-20 07:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516114', 'tblTempUsageDetail_20' ) start [2025-02-20 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516114', 'tblTempUsageDetail_20' ) end [2025-02-20 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:10:21] Production.INFO: ==15733== Releasing lock... [2025-02-20 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:10:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:11:05 [end_date_ymd] => 2025-02-20 07:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:11:05' and `end` < '2025-02-20 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-02-20 07:11:17] Production.INFO: count ==110 [2025-02-20 07:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:11:05 - End Time 2025-02-20 07:11:05 [2025-02-20 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516120', 'tblTempUsageDetail_20' ) start [2025-02-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516120', 'tblTempUsageDetail_20' ) end [2025-02-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516120', 'tblTempVendorCDR_20' ) start [2025-02-20 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516120', 'tblTempVendorCDR_20' ) end [2025-02-20 07:11:17] Production.INFO: ProcessCDR(1,14516120,1,1,2) [2025-02-20 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516120', 'tblTempUsageDetail_20' ) start [2025-02-20 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516120', 'tblTempUsageDetail_20' ) end [2025-02-20 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:11:20] Production.INFO: ==15809== Releasing lock... [2025-02-20 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:11:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:12:05 [end_date_ymd] => 2025-02-20 07:12:05 [RateCDR] => 1 ) [2025-02-20 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:12:05' and `end` < '2025-02-20 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:12:18] Production.INFO: count ==108 [2025-02-20 07:12:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:12:05 - End Time 2025-02-20 07:12:05 [2025-02-20 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516125', 'tblTempUsageDetail_20' ) start [2025-02-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516125', 'tblTempUsageDetail_20' ) end [2025-02-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516125', 'tblTempVendorCDR_20' ) start [2025-02-20 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516125', 'tblTempVendorCDR_20' ) end [2025-02-20 07:12:18] Production.INFO: ProcessCDR(1,14516125,1,1,2) [2025-02-20 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516125', 'tblTempUsageDetail_20' ) start [2025-02-20 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516125', 'tblTempUsageDetail_20' ) end [2025-02-20 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:12:21] Production.INFO: ==15958== Releasing lock... [2025-02-20 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:12:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:13:06 [end_date_ymd] => 2025-02-20 07:13:06 [RateCDR] => 1 ) [2025-02-20 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:13:06' and `end` < '2025-02-20 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:13:17] Production.INFO: count ==108 [2025-02-20 07:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:13:06 - End Time 2025-02-20 07:13:06 [2025-02-20 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516130', 'tblTempUsageDetail_20' ) start [2025-02-20 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516130', 'tblTempUsageDetail_20' ) end [2025-02-20 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516130', 'tblTempVendorCDR_20' ) start [2025-02-20 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516130', 'tblTempVendorCDR_20' ) end [2025-02-20 07:13:17] Production.INFO: ProcessCDR(1,14516130,1,1,2) [2025-02-20 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516130', 'tblTempUsageDetail_20' ) start [2025-02-20 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516130', 'tblTempUsageDetail_20' ) end [2025-02-20 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:13:21] Production.INFO: ==16032== Releasing lock... [2025-02-20 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:13:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:14:05 [end_date_ymd] => 2025-02-20 07:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:14:05' and `end` < '2025-02-20 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-02-20 07:14:17] Production.INFO: count ==108 [2025-02-20 07:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:14:05 - End Time 2025-02-20 07:14:05 [2025-02-20 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516135', 'tblTempUsageDetail_20' ) start [2025-02-20 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516135', 'tblTempUsageDetail_20' ) end [2025-02-20 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516135', 'tblTempVendorCDR_20' ) start [2025-02-20 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516135', 'tblTempVendorCDR_20' ) end [2025-02-20 07:14:17] Production.INFO: ProcessCDR(1,14516135,1,1,2) [2025-02-20 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516135', 'tblTempUsageDetail_20' ) start [2025-02-20 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516135', 'tblTempUsageDetail_20' ) end [2025-02-20 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:14:20] Production.INFO: ==16104== Releasing lock... [2025-02-20 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:14:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:15:05 [end_date_ymd] => 2025-02-20 07:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:15:05' and `end` < '2025-02-20 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-02-20 07:15:17] Production.INFO: count ==108 [2025-02-20 07:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:15:05 - End Time 2025-02-20 07:15:05 [2025-02-20 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516140', 'tblTempUsageDetail_20' ) start [2025-02-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516140', 'tblTempUsageDetail_20' ) end [2025-02-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516140', 'tblTempVendorCDR_20' ) start [2025-02-20 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516140', 'tblTempVendorCDR_20' ) end [2025-02-20 07:15:17] Production.INFO: ProcessCDR(1,14516140,1,1,2) [2025-02-20 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516140', 'tblTempUsageDetail_20' ) start [2025-02-20 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516140', 'tblTempUsageDetail_20' ) end [2025-02-20 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:15:21] Production.INFO: ==16256== Releasing lock... [2025-02-20 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:15:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:16:05 [end_date_ymd] => 2025-02-20 07:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:16:05' and `end` < '2025-02-20 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-02-20 07:16:16] Production.INFO: count ==112 [2025-02-20 07:16:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:16:05 - End Time 2025-02-20 07:16:05 [2025-02-20 07:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516145', 'tblTempUsageDetail_20' ) start [2025-02-20 07:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516145', 'tblTempUsageDetail_20' ) end [2025-02-20 07:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516145', 'tblTempVendorCDR_20' ) start [2025-02-20 07:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516145', 'tblTempVendorCDR_20' ) end [2025-02-20 07:16:16] Production.INFO: ProcessCDR(1,14516145,1,1,2) [2025-02-20 07:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516145', 'tblTempUsageDetail_20' ) start [2025-02-20 07:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516145', 'tblTempUsageDetail_20' ) end [2025-02-20 07:16:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:16:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:16:19] Production.INFO: ==16327== Releasing lock... [2025-02-20 07:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:16:19] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:17:05 [end_date_ymd] => 2025-02-20 07:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:17:05' and `end` < '2025-02-20 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-02-20 07:17:17] Production.INFO: count ==112 [2025-02-20 07:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:17:05 - End Time 2025-02-20 07:17:05 [2025-02-20 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516150', 'tblTempUsageDetail_20' ) start [2025-02-20 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516150', 'tblTempUsageDetail_20' ) end [2025-02-20 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516150', 'tblTempVendorCDR_20' ) start [2025-02-20 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516150', 'tblTempVendorCDR_20' ) end [2025-02-20 07:17:17] Production.INFO: ProcessCDR(1,14516150,1,1,2) [2025-02-20 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516150', 'tblTempUsageDetail_20' ) start [2025-02-20 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516150', 'tblTempUsageDetail_20' ) end [2025-02-20 07:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:17:20] Production.INFO: ==16400== Releasing lock... [2025-02-20 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:17:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:18:05 [end_date_ymd] => 2025-02-20 07:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:18:05' and `end` < '2025-02-20 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-02-20 07:18:17] Production.INFO: count ==112 [2025-02-20 07:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:18:05 - End Time 2025-02-20 07:18:05 [2025-02-20 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516155', 'tblTempUsageDetail_20' ) start [2025-02-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516155', 'tblTempUsageDetail_20' ) end [2025-02-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516155', 'tblTempVendorCDR_20' ) start [2025-02-20 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516155', 'tblTempVendorCDR_20' ) end [2025-02-20 07:18:17] Production.INFO: ProcessCDR(1,14516155,1,1,2) [2025-02-20 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516155', 'tblTempUsageDetail_20' ) start [2025-02-20 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516155', 'tblTempUsageDetail_20' ) end [2025-02-20 07:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:18:20] Production.INFO: ==16473== Releasing lock... [2025-02-20 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:18:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:19:05 [end_date_ymd] => 2025-02-20 07:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:19:05' and `end` < '2025-02-20 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-02-20 07:19:17] Production.INFO: count ==112 [2025-02-20 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:19:05 - End Time 2025-02-20 07:19:05 [2025-02-20 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516160', 'tblTempUsageDetail_20' ) start [2025-02-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516160', 'tblTempUsageDetail_20' ) end [2025-02-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516160', 'tblTempVendorCDR_20' ) start [2025-02-20 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516160', 'tblTempVendorCDR_20' ) end [2025-02-20 07:19:17] Production.INFO: ProcessCDR(1,14516160,1,1,2) [2025-02-20 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516160', 'tblTempUsageDetail_20' ) start [2025-02-20 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516160', 'tblTempUsageDetail_20' ) end [2025-02-20 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:19:20] Production.INFO: ==16544== Releasing lock... [2025-02-20 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:19:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:20:05 [end_date_ymd] => 2025-02-20 07:20:05 [RateCDR] => 1 ) [2025-02-20 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:20:05' and `end` < '2025-02-20 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:20:17] Production.INFO: count ==110 [2025-02-20 07:20:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:20:05 - End Time 2025-02-20 07:20:05 [2025-02-20 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516165', 'tblTempUsageDetail_20' ) start [2025-02-20 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516165', 'tblTempUsageDetail_20' ) end [2025-02-20 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516165', 'tblTempVendorCDR_20' ) start [2025-02-20 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516165', 'tblTempVendorCDR_20' ) end [2025-02-20 07:20:17] Production.INFO: ProcessCDR(1,14516165,1,1,2) [2025-02-20 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516165', 'tblTempUsageDetail_20' ) start [2025-02-20 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516165', 'tblTempUsageDetail_20' ) end [2025-02-20 07:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:20:20] Production.INFO: ==16619== Releasing lock... [2025-02-20 07:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:20:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:21:05 [end_date_ymd] => 2025-02-20 07:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:21:05' and `end` < '2025-02-20 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-02-20 07:21:17] Production.INFO: count ==112 [2025-02-20 07:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:21:05 - End Time 2025-02-20 07:21:05 [2025-02-20 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516171', 'tblTempUsageDetail_20' ) start [2025-02-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516171', 'tblTempUsageDetail_20' ) end [2025-02-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516171', 'tblTempVendorCDR_20' ) start [2025-02-20 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516171', 'tblTempVendorCDR_20' ) end [2025-02-20 07:21:17] Production.INFO: ProcessCDR(1,14516171,1,1,2) [2025-02-20 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516171', 'tblTempUsageDetail_20' ) start [2025-02-20 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516171', 'tblTempUsageDetail_20' ) end [2025-02-20 07:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:21:20] Production.INFO: ==16692== Releasing lock... [2025-02-20 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:21:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:22:05 [end_date_ymd] => 2025-02-20 07:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:22:05' and `end` < '2025-02-20 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-02-20 07:22:16] Production.INFO: count ==110 [2025-02-20 07:22:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:22:05 - End Time 2025-02-20 07:22:05 [2025-02-20 07:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516176', 'tblTempUsageDetail_20' ) start [2025-02-20 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516176', 'tblTempUsageDetail_20' ) end [2025-02-20 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516176', 'tblTempVendorCDR_20' ) start [2025-02-20 07:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516176', 'tblTempVendorCDR_20' ) end [2025-02-20 07:22:16] Production.INFO: ProcessCDR(1,14516176,1,1,2) [2025-02-20 07:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516176', 'tblTempUsageDetail_20' ) start [2025-02-20 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516176', 'tblTempUsageDetail_20' ) end [2025-02-20 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:22:20] Production.INFO: ==16802== Releasing lock... [2025-02-20 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:23:05 [end_date_ymd] => 2025-02-20 07:23:05 [RateCDR] => 1 ) [2025-02-20 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:23:05' and `end` < '2025-02-20 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:23:17] Production.INFO: count ==112 [2025-02-20 07:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:23:05 - End Time 2025-02-20 07:23:05 [2025-02-20 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516181', 'tblTempUsageDetail_20' ) start [2025-02-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516181', 'tblTempUsageDetail_20' ) end [2025-02-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516181', 'tblTempVendorCDR_20' ) start [2025-02-20 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516181', 'tblTempVendorCDR_20' ) end [2025-02-20 07:23:17] Production.INFO: ProcessCDR(1,14516181,1,1,2) [2025-02-20 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516181', 'tblTempUsageDetail_20' ) start [2025-02-20 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516181', 'tblTempUsageDetail_20' ) end [2025-02-20 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:23:21] Production.INFO: ==16878== Releasing lock... [2025-02-20 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:24:05 [end_date_ymd] => 2025-02-20 07:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:24:05' and `end` < '2025-02-20 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-02-20 07:24:17] Production.INFO: count ==116 [2025-02-20 07:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:24:05 - End Time 2025-02-20 07:24:05 [2025-02-20 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516186', 'tblTempUsageDetail_20' ) start [2025-02-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516186', 'tblTempUsageDetail_20' ) end [2025-02-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516186', 'tblTempVendorCDR_20' ) start [2025-02-20 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516186', 'tblTempVendorCDR_20' ) end [2025-02-20 07:24:17] Production.INFO: ProcessCDR(1,14516186,1,1,2) [2025-02-20 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516186', 'tblTempUsageDetail_20' ) start [2025-02-20 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516186', 'tblTempUsageDetail_20' ) end [2025-02-20 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:24:20] Production.INFO: ==16949== Releasing lock... [2025-02-20 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:25:05 [end_date_ymd] => 2025-02-20 07:25:05 [RateCDR] => 1 ) [2025-02-20 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:25:05' and `end` < '2025-02-20 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:25:16] Production.INFO: count ==116 [2025-02-20 07:25:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:25:05 - End Time 2025-02-20 07:25:05 [2025-02-20 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516191', 'tblTempUsageDetail_20' ) start [2025-02-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516191', 'tblTempUsageDetail_20' ) end [2025-02-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516191', 'tblTempVendorCDR_20' ) start [2025-02-20 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516191', 'tblTempVendorCDR_20' ) end [2025-02-20 07:25:16] Production.INFO: ProcessCDR(1,14516191,1,1,2) [2025-02-20 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516191', 'tblTempUsageDetail_20' ) start [2025-02-20 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516191', 'tblTempUsageDetail_20' ) end [2025-02-20 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:25:20] Production.INFO: ==17017== Releasing lock... [2025-02-20 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:26:05 [end_date_ymd] => 2025-02-20 07:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:26:05' and `end` < '2025-02-20 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-02-20 07:26:17] Production.INFO: count ==113 [2025-02-20 07:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:26:05 - End Time 2025-02-20 07:26:05 [2025-02-20 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516196', 'tblTempUsageDetail_20' ) start [2025-02-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516196', 'tblTempUsageDetail_20' ) end [2025-02-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516196', 'tblTempVendorCDR_20' ) start [2025-02-20 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516196', 'tblTempVendorCDR_20' ) end [2025-02-20 07:26:17] Production.INFO: ProcessCDR(1,14516196,1,1,2) [2025-02-20 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516196', 'tblTempUsageDetail_20' ) start [2025-02-20 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516196', 'tblTempUsageDetail_20' ) end [2025-02-20 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:26:21] Production.INFO: ==17092== Releasing lock... [2025-02-20 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:27:05 [end_date_ymd] => 2025-02-20 07:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:27:05' and `end` < '2025-02-20 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-02-20 07:27:16] Production.INFO: count ==113 [2025-02-20 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:27:05 - End Time 2025-02-20 07:27:05 [2025-02-20 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516201', 'tblTempUsageDetail_20' ) start [2025-02-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516201', 'tblTempUsageDetail_20' ) end [2025-02-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516201', 'tblTempVendorCDR_20' ) start [2025-02-20 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516201', 'tblTempVendorCDR_20' ) end [2025-02-20 07:27:17] Production.INFO: ProcessCDR(1,14516201,1,1,2) [2025-02-20 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516201', 'tblTempUsageDetail_20' ) start [2025-02-20 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516201', 'tblTempUsageDetail_20' ) end [2025-02-20 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:27:20] Production.INFO: ==17165== Releasing lock... [2025-02-20 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:28:06 [end_date_ymd] => 2025-02-20 07:28:06 [RateCDR] => 1 ) [2025-02-20 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:28:06' and `end` < '2025-02-20 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:28:17] Production.INFO: count ==113 [2025-02-20 07:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:28:06 - End Time 2025-02-20 07:28:06 [2025-02-20 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516206', 'tblTempUsageDetail_20' ) start [2025-02-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516206', 'tblTempUsageDetail_20' ) end [2025-02-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516206', 'tblTempVendorCDR_20' ) start [2025-02-20 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516206', 'tblTempVendorCDR_20' ) end [2025-02-20 07:28:17] Production.INFO: ProcessCDR(1,14516206,1,1,2) [2025-02-20 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516206', 'tblTempUsageDetail_20' ) start [2025-02-20 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516206', 'tblTempUsageDetail_20' ) end [2025-02-20 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:28:21] Production.INFO: ==17242== Releasing lock... [2025-02-20 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:29:05 [end_date_ymd] => 2025-02-20 07:29:05 [RateCDR] => 1 ) [2025-02-20 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:29:05' and `end` < '2025-02-20 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:29:17] Production.INFO: count ==114 [2025-02-20 07:29:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:29:05 - End Time 2025-02-20 07:29:05 [2025-02-20 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516211', 'tblTempUsageDetail_20' ) start [2025-02-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516211', 'tblTempUsageDetail_20' ) end [2025-02-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516211', 'tblTempVendorCDR_20' ) start [2025-02-20 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516211', 'tblTempVendorCDR_20' ) end [2025-02-20 07:29:17] Production.INFO: ProcessCDR(1,14516211,1,1,2) [2025-02-20 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516211', 'tblTempUsageDetail_20' ) start [2025-02-20 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516211', 'tblTempUsageDetail_20' ) end [2025-02-20 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:29:21] Production.INFO: ==17318== Releasing lock... [2025-02-20 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:30:06 [end_date_ymd] => 2025-02-20 07:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:30:06' and `end` < '2025-02-20 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:30:18] Production.INFO: count ==101 [2025-02-20 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:30:06 - End Time 2025-02-20 07:30:06 [2025-02-20 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516217', 'tblTempUsageDetail_20' ) start [2025-02-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516217', 'tblTempUsageDetail_20' ) end [2025-02-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516217', 'tblTempVendorCDR_20' ) start [2025-02-20 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516217', 'tblTempVendorCDR_20' ) end [2025-02-20 07:30:18] Production.INFO: ProcessCDR(1,14516217,1,1,2) [2025-02-20 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516217', 'tblTempUsageDetail_20' ) start [2025-02-20 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516217', 'tblTempUsageDetail_20' ) end [2025-02-20 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:30:21] Production.INFO: ==17403== Releasing lock... [2025-02-20 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:31:05 [end_date_ymd] => 2025-02-20 07:31:05 [RateCDR] => 1 ) [2025-02-20 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:31:05' and `end` < '2025-02-20 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:31:17] Production.INFO: count ==99 [2025-02-20 07:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:31:05 - End Time 2025-02-20 07:31:05 [2025-02-20 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516222', 'tblTempUsageDetail_20' ) start [2025-02-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516222', 'tblTempUsageDetail_20' ) end [2025-02-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516222', 'tblTempVendorCDR_20' ) start [2025-02-20 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516222', 'tblTempVendorCDR_20' ) end [2025-02-20 07:31:17] Production.INFO: ProcessCDR(1,14516222,1,1,2) [2025-02-20 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516222', 'tblTempUsageDetail_20' ) start [2025-02-20 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516222', 'tblTempUsageDetail_20' ) end [2025-02-20 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:31:20] Production.INFO: ==17482== Releasing lock... [2025-02-20 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:31:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:32:05 [end_date_ymd] => 2025-02-20 07:32:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:32:05' and `end` < '2025-02-20 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-02-20 07:32:17] Production.INFO: count ==99 [2025-02-20 07:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:32:05 - End Time 2025-02-20 07:32:05 [2025-02-20 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516227', 'tblTempUsageDetail_20' ) start [2025-02-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516227', 'tblTempUsageDetail_20' ) end [2025-02-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516227', 'tblTempVendorCDR_20' ) start [2025-02-20 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516227', 'tblTempVendorCDR_20' ) end [2025-02-20 07:32:17] Production.INFO: ProcessCDR(1,14516227,1,1,2) [2025-02-20 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516227', 'tblTempUsageDetail_20' ) start [2025-02-20 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516227', 'tblTempUsageDetail_20' ) end [2025-02-20 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:32:20] Production.INFO: ==17565== Releasing lock... [2025-02-20 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:33:05 [end_date_ymd] => 2025-02-20 07:33:05 [RateCDR] => 1 ) [2025-02-20 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:33:05' and `end` < '2025-02-20 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:33:16] Production.INFO: count ==99 [2025-02-20 07:33:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:33:05 - End Time 2025-02-20 07:33:05 [2025-02-20 07:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516232', 'tblTempUsageDetail_20' ) start [2025-02-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516232', 'tblTempUsageDetail_20' ) end [2025-02-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516232', 'tblTempVendorCDR_20' ) start [2025-02-20 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516232', 'tblTempVendorCDR_20' ) end [2025-02-20 07:33:17] Production.INFO: ProcessCDR(1,14516232,1,1,2) [2025-02-20 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516232', 'tblTempUsageDetail_20' ) start [2025-02-20 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516232', 'tblTempUsageDetail_20' ) end [2025-02-20 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:33:20] Production.INFO: ==17646== Releasing lock... [2025-02-20 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:34:05 [end_date_ymd] => 2025-02-20 07:34:05 [RateCDR] => 1 ) [2025-02-20 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:34:05' and `end` < '2025-02-20 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:34:17] Production.INFO: count ==104 [2025-02-20 07:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:34:05 - End Time 2025-02-20 07:34:05 [2025-02-20 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516237', 'tblTempUsageDetail_20' ) start [2025-02-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516237', 'tblTempUsageDetail_20' ) end [2025-02-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516237', 'tblTempVendorCDR_20' ) start [2025-02-20 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516237', 'tblTempVendorCDR_20' ) end [2025-02-20 07:34:17] Production.INFO: ProcessCDR(1,14516237,1,1,2) [2025-02-20 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516237', 'tblTempUsageDetail_20' ) start [2025-02-20 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516237', 'tblTempUsageDetail_20' ) end [2025-02-20 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:34:20] Production.INFO: ==17726== Releasing lock... [2025-02-20 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:35:06 [end_date_ymd] => 2025-02-20 07:35:06 [RateCDR] => 1 ) [2025-02-20 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:35:06' and `end` < '2025-02-20 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:35:17] Production.INFO: count ==104 [2025-02-20 07:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:35:06 - End Time 2025-02-20 07:35:06 [2025-02-20 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516242', 'tblTempUsageDetail_20' ) start [2025-02-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516242', 'tblTempUsageDetail_20' ) end [2025-02-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516242', 'tblTempVendorCDR_20' ) start [2025-02-20 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516242', 'tblTempVendorCDR_20' ) end [2025-02-20 07:35:17] Production.INFO: ProcessCDR(1,14516242,1,1,2) [2025-02-20 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516242', 'tblTempUsageDetail_20' ) start [2025-02-20 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516242', 'tblTempUsageDetail_20' ) end [2025-02-20 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:35:21] Production.INFO: ==17811== Releasing lock... [2025-02-20 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:36:05 [end_date_ymd] => 2025-02-20 07:36:05 [RateCDR] => 1 ) [2025-02-20 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:36:05' and `end` < '2025-02-20 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:36:17] Production.INFO: count ==105 [2025-02-20 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:36:05 - End Time 2025-02-20 07:36:05 [2025-02-20 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516247', 'tblTempUsageDetail_20' ) start [2025-02-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516247', 'tblTempUsageDetail_20' ) end [2025-02-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516247', 'tblTempVendorCDR_20' ) start [2025-02-20 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516247', 'tblTempVendorCDR_20' ) end [2025-02-20 07:36:17] Production.INFO: ProcessCDR(1,14516247,1,1,2) [2025-02-20 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516247', 'tblTempUsageDetail_20' ) start [2025-02-20 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516247', 'tblTempUsageDetail_20' ) end [2025-02-20 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:36:20] Production.INFO: ==17890== Releasing lock... [2025-02-20 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:37:05 [end_date_ymd] => 2025-02-20 07:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:37:05' and `end` < '2025-02-20 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-02-20 07:37:17] Production.INFO: count ==104 [2025-02-20 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:37:05 - End Time 2025-02-20 07:37:05 [2025-02-20 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516252', 'tblTempUsageDetail_20' ) start [2025-02-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516252', 'tblTempUsageDetail_20' ) end [2025-02-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516252', 'tblTempVendorCDR_20' ) start [2025-02-20 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516252', 'tblTempVendorCDR_20' ) end [2025-02-20 07:37:17] Production.INFO: ProcessCDR(1,14516252,1,1,2) [2025-02-20 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516252', 'tblTempUsageDetail_20' ) start [2025-02-20 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516252', 'tblTempUsageDetail_20' ) end [2025-02-20 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:37:20] Production.INFO: ==18009== Releasing lock... [2025-02-20 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:37:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:38:05 [end_date_ymd] => 2025-02-20 07:38:05 [RateCDR] => 1 ) [2025-02-20 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:38:05' and `end` < '2025-02-20 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:38:17] Production.INFO: count ==104 [2025-02-20 07:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:38:05 - End Time 2025-02-20 07:38:05 [2025-02-20 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516257', 'tblTempUsageDetail_20' ) start [2025-02-20 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516257', 'tblTempUsageDetail_20' ) end [2025-02-20 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516257', 'tblTempVendorCDR_20' ) start [2025-02-20 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516257', 'tblTempVendorCDR_20' ) end [2025-02-20 07:38:17] Production.INFO: ProcessCDR(1,14516257,1,1,2) [2025-02-20 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516257', 'tblTempUsageDetail_20' ) start [2025-02-20 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516257', 'tblTempUsageDetail_20' ) end [2025-02-20 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:38:21] Production.INFO: ==18091== Releasing lock... [2025-02-20 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:38:21] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:39:05 [end_date_ymd] => 2025-02-20 07:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:39:05' and `end` < '2025-02-20 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-02-20 07:39:17] Production.INFO: count ==104 [2025-02-20 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:39:05 - End Time 2025-02-20 07:39:05 [2025-02-20 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516262', 'tblTempUsageDetail_20' ) start [2025-02-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516262', 'tblTempUsageDetail_20' ) end [2025-02-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516262', 'tblTempVendorCDR_20' ) start [2025-02-20 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516262', 'tblTempVendorCDR_20' ) end [2025-02-20 07:39:17] Production.INFO: ProcessCDR(1,14516262,1,1,2) [2025-02-20 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516262', 'tblTempUsageDetail_20' ) start [2025-02-20 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516262', 'tblTempUsageDetail_20' ) end [2025-02-20 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:39:20] Production.INFO: ==18170== Releasing lock... [2025-02-20 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:39:20] Production.INFO: 29 MB #Memory Used# [2025-02-20 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:40:05 [end_date_ymd] => 2025-02-20 07:40:05 [RateCDR] => 1 ) [2025-02-20 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:40:05' and `end` < '2025-02-20 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:40:17] Production.INFO: count ==110 [2025-02-20 07:40:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:40:05 - End Time 2025-02-20 07:40:05 [2025-02-20 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516268', 'tblTempUsageDetail_20' ) start [2025-02-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516268', 'tblTempUsageDetail_20' ) end [2025-02-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516268', 'tblTempVendorCDR_20' ) start [2025-02-20 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516268', 'tblTempVendorCDR_20' ) end [2025-02-20 07:40:17] Production.INFO: ProcessCDR(1,14516268,1,1,2) [2025-02-20 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516268', 'tblTempUsageDetail_20' ) start [2025-02-20 07:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516268', 'tblTempUsageDetail_20' ) end [2025-02-20 07:40:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:40:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:40:20] Production.INFO: ==18250== Releasing lock... [2025-02-20 07:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:40:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:41:05 [end_date_ymd] => 2025-02-20 07:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:41:05' and `end` < '2025-02-20 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-02-20 07:41:16] Production.INFO: count ==110 [2025-02-20 07:41:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:41:05 - End Time 2025-02-20 07:41:05 [2025-02-20 07:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516273', 'tblTempUsageDetail_20' ) start [2025-02-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516273', 'tblTempUsageDetail_20' ) end [2025-02-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516273', 'tblTempVendorCDR_20' ) start [2025-02-20 07:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516273', 'tblTempVendorCDR_20' ) end [2025-02-20 07:41:16] Production.INFO: ProcessCDR(1,14516273,1,1,2) [2025-02-20 07:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516273', 'tblTempUsageDetail_20' ) start [2025-02-20 07:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516273', 'tblTempUsageDetail_20' ) end [2025-02-20 07:41:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:41:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:41:19] Production.INFO: ==18331== Releasing lock... [2025-02-20 07:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:41:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:42:05 [end_date_ymd] => 2025-02-20 07:42:05 [RateCDR] => 1 ) [2025-02-20 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:42:05' and `end` < '2025-02-20 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:42:17] Production.INFO: count ==110 [2025-02-20 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:42:05 - End Time 2025-02-20 07:42:05 [2025-02-20 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516278', 'tblTempUsageDetail_20' ) start [2025-02-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516278', 'tblTempUsageDetail_20' ) end [2025-02-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516278', 'tblTempVendorCDR_20' ) start [2025-02-20 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516278', 'tblTempVendorCDR_20' ) end [2025-02-20 07:42:17] Production.INFO: ProcessCDR(1,14516278,1,1,2) [2025-02-20 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516278', 'tblTempUsageDetail_20' ) start [2025-02-20 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516278', 'tblTempUsageDetail_20' ) end [2025-02-20 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:42:20] Production.INFO: ==18404== Releasing lock... [2025-02-20 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:43:05 [end_date_ymd] => 2025-02-20 07:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:43:05' and `end` < '2025-02-20 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-02-20 07:43:16] Production.INFO: count ==110 [2025-02-20 07:43:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:43:05 - End Time 2025-02-20 07:43:05 [2025-02-20 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516283', 'tblTempUsageDetail_20' ) start [2025-02-20 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516283', 'tblTempUsageDetail_20' ) end [2025-02-20 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516283', 'tblTempVendorCDR_20' ) start [2025-02-20 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516283', 'tblTempVendorCDR_20' ) end [2025-02-20 07:43:16] Production.INFO: ProcessCDR(1,14516283,1,1,2) [2025-02-20 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516283', 'tblTempUsageDetail_20' ) start [2025-02-20 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516283', 'tblTempUsageDetail_20' ) end [2025-02-20 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:43:20] Production.INFO: ==18476== Releasing lock... [2025-02-20 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:44:06 [end_date_ymd] => 2025-02-20 07:44:06 [RateCDR] => 1 ) [2025-02-20 07:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:44:06' and `end` < '2025-02-20 07:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:44:18] Production.INFO: count ==110 [2025-02-20 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:44:06 - End Time 2025-02-20 07:44:06 [2025-02-20 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516288', 'tblTempUsageDetail_20' ) start [2025-02-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516288', 'tblTempUsageDetail_20' ) end [2025-02-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516288', 'tblTempVendorCDR_20' ) start [2025-02-20 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516288', 'tblTempVendorCDR_20' ) end [2025-02-20 07:44:18] Production.INFO: ProcessCDR(1,14516288,1,1,2) [2025-02-20 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516288', 'tblTempUsageDetail_20' ) start [2025-02-20 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516288', 'tblTempUsageDetail_20' ) end [2025-02-20 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:44:21] Production.INFO: ==18550== Releasing lock... [2025-02-20 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:45:05 [end_date_ymd] => 2025-02-20 07:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:45:05' and `end` < '2025-02-20 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-02-20 07:45:17] Production.INFO: count ==110 [2025-02-20 07:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:45:05 - End Time 2025-02-20 07:45:05 [2025-02-20 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516293', 'tblTempUsageDetail_20' ) start [2025-02-20 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516293', 'tblTempUsageDetail_20' ) end [2025-02-20 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516293', 'tblTempVendorCDR_20' ) start [2025-02-20 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516293', 'tblTempVendorCDR_20' ) end [2025-02-20 07:45:17] Production.INFO: ProcessCDR(1,14516293,1,1,2) [2025-02-20 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516293', 'tblTempUsageDetail_20' ) start [2025-02-20 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516293', 'tblTempUsageDetail_20' ) end [2025-02-20 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:45:20] Production.INFO: ==18622== Releasing lock... [2025-02-20 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:46:05 [end_date_ymd] => 2025-02-20 07:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:46:05' and `end` < '2025-02-20 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-02-20 07:46:17] Production.INFO: count ==110 [2025-02-20 07:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:46:05 - End Time 2025-02-20 07:46:05 [2025-02-20 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516298', 'tblTempUsageDetail_20' ) start [2025-02-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516298', 'tblTempUsageDetail_20' ) end [2025-02-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516298', 'tblTempVendorCDR_20' ) start [2025-02-20 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516298', 'tblTempVendorCDR_20' ) end [2025-02-20 07:46:17] Production.INFO: ProcessCDR(1,14516298,1,1,2) [2025-02-20 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516298', 'tblTempUsageDetail_20' ) start [2025-02-20 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516298', 'tblTempUsageDetail_20' ) end [2025-02-20 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:46:20] Production.INFO: ==18696== Releasing lock... [2025-02-20 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:47:05 [end_date_ymd] => 2025-02-20 07:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:47:05' and `end` < '2025-02-20 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-02-20 07:47:17] Production.INFO: count ==110 [2025-02-20 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:47:05 - End Time 2025-02-20 07:47:05 [2025-02-20 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516303', 'tblTempUsageDetail_20' ) start [2025-02-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516303', 'tblTempUsageDetail_20' ) end [2025-02-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516303', 'tblTempVendorCDR_20' ) start [2025-02-20 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516303', 'tblTempVendorCDR_20' ) end [2025-02-20 07:47:17] Production.INFO: ProcessCDR(1,14516303,1,1,2) [2025-02-20 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516303', 'tblTempUsageDetail_20' ) start [2025-02-20 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516303', 'tblTempUsageDetail_20' ) end [2025-02-20 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:47:20] Production.INFO: ==18775== Releasing lock... [2025-02-20 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:48:05 [end_date_ymd] => 2025-02-20 07:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:48:05' and `end` < '2025-02-20 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-02-20 07:48:17] Production.INFO: count ==110 [2025-02-20 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:48:05 - End Time 2025-02-20 07:48:05 [2025-02-20 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516308', 'tblTempUsageDetail_20' ) start [2025-02-20 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516308', 'tblTempUsageDetail_20' ) end [2025-02-20 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516308', 'tblTempVendorCDR_20' ) start [2025-02-20 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516308', 'tblTempVendorCDR_20' ) end [2025-02-20 07:48:17] Production.INFO: ProcessCDR(1,14516308,1,1,2) [2025-02-20 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516308', 'tblTempUsageDetail_20' ) start [2025-02-20 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516308', 'tblTempUsageDetail_20' ) end [2025-02-20 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:48:20] Production.INFO: ==18849== Releasing lock... [2025-02-20 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:49:05 [end_date_ymd] => 2025-02-20 07:49:05 [RateCDR] => 1 ) [2025-02-20 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:49:05' and `end` < '2025-02-20 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:49:16] Production.INFO: count ==110 [2025-02-20 07:49:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:49:05 - End Time 2025-02-20 07:49:05 [2025-02-20 07:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516313', 'tblTempUsageDetail_20' ) start [2025-02-20 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516313', 'tblTempUsageDetail_20' ) end [2025-02-20 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516313', 'tblTempVendorCDR_20' ) start [2025-02-20 07:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516313', 'tblTempVendorCDR_20' ) end [2025-02-20 07:49:16] Production.INFO: ProcessCDR(1,14516313,1,1,2) [2025-02-20 07:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516313', 'tblTempUsageDetail_20' ) start [2025-02-20 07:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516313', 'tblTempUsageDetail_20' ) end [2025-02-20 07:49:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:49:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:49:19] Production.INFO: ==18928== Releasing lock... [2025-02-20 07:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:49:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:50:06 [end_date_ymd] => 2025-02-20 07:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:50:06' and `end` < '2025-02-20 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-02-20 07:50:18] Production.INFO: count ==110 [2025-02-20 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 04:50:06 - End Time 2025-02-20 07:50:06 [2025-02-20 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516319', 'tblTempUsageDetail_20' ) start [2025-02-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516319', 'tblTempUsageDetail_20' ) end [2025-02-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516319', 'tblTempVendorCDR_20' ) start [2025-02-20 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516319', 'tblTempVendorCDR_20' ) end [2025-02-20 07:50:18] Production.INFO: ProcessCDR(1,14516319,1,1,2) [2025-02-20 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516319', 'tblTempUsageDetail_20' ) start [2025-02-20 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516319', 'tblTempUsageDetail_20' ) end [2025-02-20 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:50:21] Production.INFO: ==19002== Releasing lock... [2025-02-20 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:51:05 [end_date_ymd] => 2025-02-20 07:51:05 [RateCDR] => 1 ) [2025-02-20 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:51:05' and `end` < '2025-02-20 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:51:16] Production.INFO: count ==110 [2025-02-20 07:51:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:51:05 - End Time 2025-02-20 07:51:05 [2025-02-20 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516324', 'tblTempUsageDetail_20' ) start [2025-02-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516324', 'tblTempUsageDetail_20' ) end [2025-02-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516324', 'tblTempVendorCDR_20' ) start [2025-02-20 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516324', 'tblTempVendorCDR_20' ) end [2025-02-20 07:51:16] Production.INFO: ProcessCDR(1,14516324,1,1,2) [2025-02-20 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516324', 'tblTempUsageDetail_20' ) start [2025-02-20 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516324', 'tblTempUsageDetail_20' ) end [2025-02-20 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:51:20] Production.INFO: ==19074== Releasing lock... [2025-02-20 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:52:05 [end_date_ymd] => 2025-02-20 07:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:52:05' and `end` < '2025-02-20 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-02-20 07:52:17] Production.INFO: count ==115 [2025-02-20 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:52:05 - End Time 2025-02-20 07:52:05 [2025-02-20 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516329', 'tblTempUsageDetail_20' ) start [2025-02-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516329', 'tblTempUsageDetail_20' ) end [2025-02-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516329', 'tblTempVendorCDR_20' ) start [2025-02-20 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516329', 'tblTempVendorCDR_20' ) end [2025-02-20 07:52:17] Production.INFO: ProcessCDR(1,14516329,1,1,2) [2025-02-20 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516329', 'tblTempUsageDetail_20' ) start [2025-02-20 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516329', 'tblTempUsageDetail_20' ) end [2025-02-20 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:52:20] Production.INFO: ==19152== Releasing lock... [2025-02-20 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:52:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:53:05 [end_date_ymd] => 2025-02-20 07:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:53:05' and `end` < '2025-02-20 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-02-20 07:53:17] Production.INFO: count ==116 [2025-02-20 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:53:05 - End Time 2025-02-20 07:53:05 [2025-02-20 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516334', 'tblTempUsageDetail_20' ) start [2025-02-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516334', 'tblTempUsageDetail_20' ) end [2025-02-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516334', 'tblTempVendorCDR_20' ) start [2025-02-20 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516334', 'tblTempVendorCDR_20' ) end [2025-02-20 07:53:17] Production.INFO: ProcessCDR(1,14516334,1,1,2) [2025-02-20 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516334', 'tblTempUsageDetail_20' ) start [2025-02-20 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516334', 'tblTempUsageDetail_20' ) end [2025-02-20 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:53:22] Production.INFO: ==19267== Releasing lock... [2025-02-20 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-20 07:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:54:04 [end_date_ymd] => 2025-02-20 07:54:04 [RateCDR] => 1 ) [2025-02-20 07:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:54:04' and `end` < '2025-02-20 07:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:54:16] Production.INFO: count ==120 [2025-02-20 07:54:16] Production.ERROR: pbx CDR StartTime 2025-02-20 04:54:04 - End Time 2025-02-20 07:54:04 [2025-02-20 07:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516339', 'tblTempUsageDetail_20' ) start [2025-02-20 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516339', 'tblTempUsageDetail_20' ) end [2025-02-20 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516339', 'tblTempVendorCDR_20' ) start [2025-02-20 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516339', 'tblTempVendorCDR_20' ) end [2025-02-20 07:54:16] Production.INFO: ProcessCDR(1,14516339,1,1,2) [2025-02-20 07:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516339', 'tblTempUsageDetail_20' ) start [2025-02-20 07:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516339', 'tblTempUsageDetail_20' ) end [2025-02-20 07:54:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:54:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:54:19] Production.INFO: ==19341== Releasing lock... [2025-02-20 07:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:54:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:55:05 [end_date_ymd] => 2025-02-20 07:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:55:05' and `end` < '2025-02-20 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-02-20 07:55:17] Production.INFO: count ==120 [2025-02-20 07:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:55:05 - End Time 2025-02-20 07:55:05 [2025-02-20 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516344', 'tblTempUsageDetail_20' ) start [2025-02-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516344', 'tblTempUsageDetail_20' ) end [2025-02-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516344', 'tblTempVendorCDR_20' ) start [2025-02-20 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516344', 'tblTempVendorCDR_20' ) end [2025-02-20 07:55:17] Production.INFO: ProcessCDR(1,14516344,1,1,2) [2025-02-20 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516344', 'tblTempUsageDetail_20' ) start [2025-02-20 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516344', 'tblTempUsageDetail_20' ) end [2025-02-20 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:55:20] Production.INFO: ==19414== Releasing lock... [2025-02-20 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:56:05 [end_date_ymd] => 2025-02-20 07:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:56:05' and `end` < '2025-02-20 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-02-20 07:56:17] Production.INFO: count ==121 [2025-02-20 07:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:56:05 - End Time 2025-02-20 07:56:05 [2025-02-20 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516349', 'tblTempUsageDetail_20' ) start [2025-02-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516349', 'tblTempUsageDetail_20' ) end [2025-02-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516349', 'tblTempVendorCDR_20' ) start [2025-02-20 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516349', 'tblTempVendorCDR_20' ) end [2025-02-20 07:56:17] Production.INFO: ProcessCDR(1,14516349,1,1,2) [2025-02-20 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516349', 'tblTempUsageDetail_20' ) start [2025-02-20 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516349', 'tblTempUsageDetail_20' ) end [2025-02-20 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:56:21] Production.INFO: ==19489== Releasing lock... [2025-02-20 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:57:05 [end_date_ymd] => 2025-02-20 07:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 04:57:05' and `end` < '2025-02-20 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-02-20 07:57:17] Production.INFO: count ==122 [2025-02-20 07:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:57:05 - End Time 2025-02-20 07:57:05 [2025-02-20 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516354', 'tblTempUsageDetail_20' ) start [2025-02-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516354', 'tblTempUsageDetail_20' ) end [2025-02-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516354', 'tblTempVendorCDR_20' ) start [2025-02-20 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516354', 'tblTempVendorCDR_20' ) end [2025-02-20 07:57:17] Production.INFO: ProcessCDR(1,14516354,1,1,2) [2025-02-20 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516354', 'tblTempUsageDetail_20' ) start [2025-02-20 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516354', 'tblTempUsageDetail_20' ) end [2025-02-20 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:57:22] Production.INFO: ==19564== Releasing lock... [2025-02-20 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:58:05 [end_date_ymd] => 2025-02-20 07:58:05 [RateCDR] => 1 ) [2025-02-20 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:58:05' and `end` < '2025-02-20 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:58:17] Production.INFO: count ==123 [2025-02-20 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:58:05 - End Time 2025-02-20 07:58:05 [2025-02-20 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516359', 'tblTempUsageDetail_20' ) start [2025-02-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516359', 'tblTempUsageDetail_20' ) end [2025-02-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516359', 'tblTempVendorCDR_20' ) start [2025-02-20 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516359', 'tblTempVendorCDR_20' ) end [2025-02-20 07:58:17] Production.INFO: ProcessCDR(1,14516359,1,1,2) [2025-02-20 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516359', 'tblTempUsageDetail_20' ) start [2025-02-20 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516359', 'tblTempUsageDetail_20' ) end [2025-02-20 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:58:21] Production.INFO: ==19637== Releasing lock... [2025-02-20 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 04:59:05 [end_date_ymd] => 2025-02-20 07:59:05 [RateCDR] => 1 ) [2025-02-20 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 04:59:05' and `end` < '2025-02-20 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 07:59:17] Production.INFO: count ==124 [2025-02-20 07:59:17] Production.ERROR: pbx CDR StartTime 2025-02-20 04:59:05 - End Time 2025-02-20 07:59:05 [2025-02-20 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516364', 'tblTempUsageDetail_20' ) start [2025-02-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516364', 'tblTempUsageDetail_20' ) end [2025-02-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516364', 'tblTempVendorCDR_20' ) start [2025-02-20 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516364', 'tblTempVendorCDR_20' ) end [2025-02-20 07:59:17] Production.INFO: ProcessCDR(1,14516364,1,1,2) [2025-02-20 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516364', 'tblTempUsageDetail_20' ) start [2025-02-20 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516364', 'tblTempUsageDetail_20' ) end [2025-02-20 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 07:59:22] Production.INFO: ==19711== Releasing lock... [2025-02-20 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 07:59:22] Production.INFO: 29 MB #Memory Used# [2025-02-20 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:00:06 [end_date_ymd] => 2025-02-20 08:00:06 [RateCDR] => 1 ) [2025-02-20 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:00:06' and `end` < '2025-02-20 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:00:18] Production.INFO: count ==133 [2025-02-20 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:00:06 - End Time 2025-02-20 08:00:06 [2025-02-20 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516370', 'tblTempUsageDetail_20' ) start [2025-02-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516370', 'tblTempUsageDetail_20' ) end [2025-02-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516370', 'tblTempVendorCDR_20' ) start [2025-02-20 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516370', 'tblTempVendorCDR_20' ) end [2025-02-20 08:00:18] Production.INFO: ProcessCDR(1,14516370,1,1,2) [2025-02-20 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516370', 'tblTempUsageDetail_20' ) start [2025-02-20 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516370', 'tblTempUsageDetail_20' ) end [2025-02-20 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:00:23] Production.INFO: ==19787== Releasing lock... [2025-02-20 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:01:05 [end_date_ymd] => 2025-02-20 08:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:01:05' and `end` < '2025-02-20 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-02-20 08:01:17] Production.INFO: count ==141 [2025-02-20 08:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:01:05 - End Time 2025-02-20 08:01:05 [2025-02-20 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516375', 'tblTempUsageDetail_20' ) start [2025-02-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516375', 'tblTempUsageDetail_20' ) end [2025-02-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516375', 'tblTempVendorCDR_20' ) start [2025-02-20 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516375', 'tblTempVendorCDR_20' ) end [2025-02-20 08:01:17] Production.INFO: ProcessCDR(1,14516375,1,1,2) [2025-02-20 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516375', 'tblTempUsageDetail_20' ) start [2025-02-20 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516375', 'tblTempUsageDetail_20' ) end [2025-02-20 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:01:21] Production.INFO: ==19876== Releasing lock... [2025-02-20 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:02:04 [end_date_ymd] => 2025-02-20 08:02:04 [RateCDR] => 1 ) [2025-02-20 08:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:02:04' and `end` < '2025-02-20 08:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:02:16] Production.INFO: count ==146 [2025-02-20 08:02:16] Production.ERROR: pbx CDR StartTime 2025-02-20 05:02:04 - End Time 2025-02-20 08:02:04 [2025-02-20 08:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516380', 'tblTempUsageDetail_20' ) start [2025-02-20 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516380', 'tblTempUsageDetail_20' ) end [2025-02-20 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516380', 'tblTempVendorCDR_20' ) start [2025-02-20 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516380', 'tblTempVendorCDR_20' ) end [2025-02-20 08:02:16] Production.INFO: ProcessCDR(1,14516380,1,1,2) [2025-02-20 08:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516380', 'tblTempUsageDetail_20' ) start [2025-02-20 08:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516380', 'tblTempUsageDetail_20' ) end [2025-02-20 08:02:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:02:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:02:19] Production.INFO: ==19949== Releasing lock... [2025-02-20 08:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:02:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:03:05 [end_date_ymd] => 2025-02-20 08:03:05 [RateCDR] => 1 ) [2025-02-20 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:03:05' and `end` < '2025-02-20 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:03:17] Production.INFO: count ==150 [2025-02-20 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:03:05 - End Time 2025-02-20 08:03:05 [2025-02-20 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516385', 'tblTempUsageDetail_20' ) start [2025-02-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516385', 'tblTempUsageDetail_20' ) end [2025-02-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516385', 'tblTempVendorCDR_20' ) start [2025-02-20 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516385', 'tblTempVendorCDR_20' ) end [2025-02-20 08:03:17] Production.INFO: ProcessCDR(1,14516385,1,1,2) [2025-02-20 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516385', 'tblTempUsageDetail_20' ) start [2025-02-20 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516385', 'tblTempUsageDetail_20' ) end [2025-02-20 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:03:21] Production.INFO: ==20023== Releasing lock... [2025-02-20 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:04:05 [end_date_ymd] => 2025-02-20 08:04:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:04:05' and `end` < '2025-02-20 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-02-20 08:04:17] Production.INFO: count ==150 [2025-02-20 08:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:04:05 - End Time 2025-02-20 08:04:05 [2025-02-20 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516390', 'tblTempUsageDetail_20' ) start [2025-02-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516390', 'tblTempUsageDetail_20' ) end [2025-02-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516390', 'tblTempVendorCDR_20' ) start [2025-02-20 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516390', 'tblTempVendorCDR_20' ) end [2025-02-20 08:04:17] Production.INFO: ProcessCDR(1,14516390,1,1,2) [2025-02-20 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516390', 'tblTempUsageDetail_20' ) start [2025-02-20 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516390', 'tblTempUsageDetail_20' ) end [2025-02-20 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:04:20] Production.INFO: ==20096== Releasing lock... [2025-02-20 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:04:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:05:05 [end_date_ymd] => 2025-02-20 08:05:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:05:05' and `end` < '2025-02-20 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-02-20 08:05:17] Production.INFO: count ==154 [2025-02-20 08:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:05:05 - End Time 2025-02-20 08:05:05 [2025-02-20 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516395', 'tblTempUsageDetail_20' ) start [2025-02-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516395', 'tblTempUsageDetail_20' ) end [2025-02-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516395', 'tblTempVendorCDR_20' ) start [2025-02-20 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516395', 'tblTempVendorCDR_20' ) end [2025-02-20 08:05:17] Production.INFO: ProcessCDR(1,14516395,1,1,2) [2025-02-20 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516395', 'tblTempUsageDetail_20' ) start [2025-02-20 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516395', 'tblTempUsageDetail_20' ) end [2025-02-20 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:05:20] Production.INFO: ==20172== Releasing lock... [2025-02-20 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:05:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:06:04 [end_date_ymd] => 2025-02-20 08:06:04 [RateCDR] => 1 ) [2025-02-20 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:06:04' and `end` < '2025-02-20 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:06:16] Production.INFO: count ==155 [2025-02-20 08:06:16] Production.ERROR: pbx CDR StartTime 2025-02-20 05:06:04 - End Time 2025-02-20 08:06:04 [2025-02-20 08:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516400', 'tblTempUsageDetail_20' ) start [2025-02-20 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516400', 'tblTempUsageDetail_20' ) end [2025-02-20 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516400', 'tblTempVendorCDR_20' ) start [2025-02-20 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516400', 'tblTempVendorCDR_20' ) end [2025-02-20 08:06:16] Production.INFO: ProcessCDR(1,14516400,1,1,2) [2025-02-20 08:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516400', 'tblTempUsageDetail_20' ) start [2025-02-20 08:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516400', 'tblTempUsageDetail_20' ) end [2025-02-20 08:06:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:06:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:06:19] Production.INFO: ==20247== Releasing lock... [2025-02-20 08:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:06:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:07:05 [end_date_ymd] => 2025-02-20 08:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:07:05' and `end` < '2025-02-20 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-02-20 08:07:17] Production.INFO: count ==169 [2025-02-20 08:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:07:05 - End Time 2025-02-20 08:07:05 [2025-02-20 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516405', 'tblTempUsageDetail_20' ) start [2025-02-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516405', 'tblTempUsageDetail_20' ) end [2025-02-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516405', 'tblTempVendorCDR_20' ) start [2025-02-20 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516405', 'tblTempVendorCDR_20' ) end [2025-02-20 08:07:17] Production.INFO: ProcessCDR(1,14516405,1,1,2) [2025-02-20 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516405', 'tblTempUsageDetail_20' ) start [2025-02-20 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516405', 'tblTempUsageDetail_20' ) end [2025-02-20 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:07:22] Production.INFO: ==20321== Releasing lock... [2025-02-20 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:08:05 [end_date_ymd] => 2025-02-20 08:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:08:05' and `end` < '2025-02-20 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-02-20 08:08:17] Production.INFO: count ==170 [2025-02-20 08:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:08:05 - End Time 2025-02-20 08:08:05 [2025-02-20 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516410', 'tblTempUsageDetail_20' ) start [2025-02-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516410', 'tblTempUsageDetail_20' ) end [2025-02-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516410', 'tblTempVendorCDR_20' ) start [2025-02-20 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516410', 'tblTempVendorCDR_20' ) end [2025-02-20 08:08:17] Production.INFO: ProcessCDR(1,14516410,1,1,2) [2025-02-20 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516410', 'tblTempUsageDetail_20' ) start [2025-02-20 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516410', 'tblTempUsageDetail_20' ) end [2025-02-20 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:08:22] Production.INFO: ==20433== Releasing lock... [2025-02-20 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-20 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:09:05 [end_date_ymd] => 2025-02-20 08:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:09:05' and `end` < '2025-02-20 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-02-20 08:09:16] Production.INFO: count ==171 [2025-02-20 08:09:16] Production.ERROR: pbx CDR StartTime 2025-02-20 05:09:05 - End Time 2025-02-20 08:09:05 [2025-02-20 08:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516415', 'tblTempUsageDetail_20' ) start [2025-02-20 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516415', 'tblTempUsageDetail_20' ) end [2025-02-20 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516415', 'tblTempVendorCDR_20' ) start [2025-02-20 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516415', 'tblTempVendorCDR_20' ) end [2025-02-20 08:09:16] Production.INFO: ProcessCDR(1,14516415,1,1,2) [2025-02-20 08:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516415', 'tblTempUsageDetail_20' ) start [2025-02-20 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516415', 'tblTempUsageDetail_20' ) end [2025-02-20 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:09:21] Production.INFO: ==20503== Releasing lock... [2025-02-20 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:10:06 [end_date_ymd] => 2025-02-20 08:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:10:06' and `end` < '2025-02-20 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-02-20 08:10:18] Production.INFO: count ==181 [2025-02-20 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:10:06 - End Time 2025-02-20 08:10:06 [2025-02-20 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516421', 'tblTempUsageDetail_20' ) start [2025-02-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516421', 'tblTempUsageDetail_20' ) end [2025-02-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516421', 'tblTempVendorCDR_20' ) start [2025-02-20 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516421', 'tblTempVendorCDR_20' ) end [2025-02-20 08:10:18] Production.INFO: ProcessCDR(1,14516421,1,1,2) [2025-02-20 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516421', 'tblTempUsageDetail_20' ) start [2025-02-20 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516421', 'tblTempUsageDetail_20' ) end [2025-02-20 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:10:23] Production.INFO: ==20577== Releasing lock... [2025-02-20 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:10:23] Production.INFO: 30 MB #Memory Used# [2025-02-20 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:11:05 [end_date_ymd] => 2025-02-20 08:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:11:05' and `end` < '2025-02-20 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-02-20 08:11:17] Production.INFO: count ==199 [2025-02-20 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:11:05 - End Time 2025-02-20 08:11:05 [2025-02-20 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516426', 'tblTempUsageDetail_20' ) start [2025-02-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516426', 'tblTempUsageDetail_20' ) end [2025-02-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516426', 'tblTempVendorCDR_20' ) start [2025-02-20 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516426', 'tblTempVendorCDR_20' ) end [2025-02-20 08:11:17] Production.INFO: ProcessCDR(1,14516426,1,1,2) [2025-02-20 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516426', 'tblTempUsageDetail_20' ) start [2025-02-20 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516426', 'tblTempUsageDetail_20' ) end [2025-02-20 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:11:22] Production.INFO: ==20651== Releasing lock... [2025-02-20 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-20 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:12:05 [end_date_ymd] => 2025-02-20 08:12:05 [RateCDR] => 1 ) [2025-02-20 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:12:05' and `end` < '2025-02-20 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:12:17] Production.INFO: count ==206 [2025-02-20 08:12:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:12:05 - End Time 2025-02-20 08:12:05 [2025-02-20 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516431', 'tblTempUsageDetail_20' ) start [2025-02-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516431', 'tblTempUsageDetail_20' ) end [2025-02-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516431', 'tblTempVendorCDR_20' ) start [2025-02-20 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516431', 'tblTempVendorCDR_20' ) end [2025-02-20 08:12:17] Production.INFO: ProcessCDR(1,14516431,1,1,2) [2025-02-20 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516431', 'tblTempUsageDetail_20' ) start [2025-02-20 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516431', 'tblTempUsageDetail_20' ) end [2025-02-20 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:12:22] Production.INFO: ==20724== Releasing lock... [2025-02-20 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:13:05 [end_date_ymd] => 2025-02-20 08:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:13:05' and `end` < '2025-02-20 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-02-20 08:13:17] Production.INFO: count ==207 [2025-02-20 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:13:05 - End Time 2025-02-20 08:13:05 [2025-02-20 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516436', 'tblTempUsageDetail_20' ) start [2025-02-20 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516436', 'tblTempUsageDetail_20' ) end [2025-02-20 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516436', 'tblTempVendorCDR_20' ) start [2025-02-20 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516436', 'tblTempVendorCDR_20' ) end [2025-02-20 08:13:17] Production.INFO: ProcessCDR(1,14516436,1,1,2) [2025-02-20 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516436', 'tblTempUsageDetail_20' ) start [2025-02-20 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516436', 'tblTempUsageDetail_20' ) end [2025-02-20 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:13:21] Production.INFO: ==20801== Releasing lock... [2025-02-20 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:14:05 [end_date_ymd] => 2025-02-20 08:14:05 [RateCDR] => 1 ) [2025-02-20 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:14:05' and `end` < '2025-02-20 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:14:17] Production.INFO: count ==207 [2025-02-20 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:14:05 - End Time 2025-02-20 08:14:05 [2025-02-20 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516441', 'tblTempUsageDetail_20' ) start [2025-02-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516441', 'tblTempUsageDetail_20' ) end [2025-02-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516441', 'tblTempVendorCDR_20' ) start [2025-02-20 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516441', 'tblTempVendorCDR_20' ) end [2025-02-20 08:14:17] Production.INFO: ProcessCDR(1,14516441,1,1,2) [2025-02-20 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516441', 'tblTempUsageDetail_20' ) start [2025-02-20 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516441', 'tblTempUsageDetail_20' ) end [2025-02-20 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:14:21] Production.INFO: ==20872== Releasing lock... [2025-02-20 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:15:05 [end_date_ymd] => 2025-02-20 08:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:15:05' and `end` < '2025-02-20 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-02-20 08:15:17] Production.INFO: count ==215 [2025-02-20 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:15:05 - End Time 2025-02-20 08:15:05 [2025-02-20 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516446', 'tblTempUsageDetail_20' ) start [2025-02-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516446', 'tblTempUsageDetail_20' ) end [2025-02-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516446', 'tblTempVendorCDR_20' ) start [2025-02-20 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516446', 'tblTempVendorCDR_20' ) end [2025-02-20 08:15:17] Production.INFO: ProcessCDR(1,14516446,1,1,2) [2025-02-20 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516446', 'tblTempUsageDetail_20' ) start [2025-02-20 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516446', 'tblTempUsageDetail_20' ) end [2025-02-20 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:15:20] Production.INFO: ==20942== Releasing lock... [2025-02-20 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:16:05 [end_date_ymd] => 2025-02-20 08:16:05 [RateCDR] => 1 ) [2025-02-20 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:16:05' and `end` < '2025-02-20 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:16:17] Production.INFO: count ==233 [2025-02-20 08:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:16:05 - End Time 2025-02-20 08:16:05 [2025-02-20 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516451', 'tblTempUsageDetail_20' ) start [2025-02-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516451', 'tblTempUsageDetail_20' ) end [2025-02-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516451', 'tblTempVendorCDR_20' ) start [2025-02-20 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516451', 'tblTempVendorCDR_20' ) end [2025-02-20 08:16:17] Production.INFO: ProcessCDR(1,14516451,1,1,2) [2025-02-20 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516451', 'tblTempUsageDetail_20' ) start [2025-02-20 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516451', 'tblTempUsageDetail_20' ) end [2025-02-20 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:16:21] Production.INFO: ==21020== Releasing lock... [2025-02-20 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-20 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:17:05 [end_date_ymd] => 2025-02-20 08:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:17:05' and `end` < '2025-02-20 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-02-20 08:17:17] Production.INFO: count ==250 [2025-02-20 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:17:05 - End Time 2025-02-20 08:17:05 [2025-02-20 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516456', 'tblTempUsageDetail_20' ) start [2025-02-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516456', 'tblTempUsageDetail_20' ) end [2025-02-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516456', 'tblTempVendorCDR_20' ) start [2025-02-20 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516456', 'tblTempVendorCDR_20' ) end [2025-02-20 08:17:17] Production.INFO: ProcessCDR(1,14516456,1,1,2) [2025-02-20 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516456', 'tblTempUsageDetail_20' ) start [2025-02-20 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516456', 'tblTempUsageDetail_20' ) end [2025-02-20 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:17:20] Production.INFO: ==21094== Releasing lock... [2025-02-20 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-20 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:18:05 [end_date_ymd] => 2025-02-20 08:18:05 [RateCDR] => 1 ) [2025-02-20 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:18:05' and `end` < '2025-02-20 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:18:17] Production.INFO: count ==258 [2025-02-20 08:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:18:05 - End Time 2025-02-20 08:18:05 [2025-02-20 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516461', 'tblTempUsageDetail_20' ) start [2025-02-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516461', 'tblTempUsageDetail_20' ) end [2025-02-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516461', 'tblTempVendorCDR_20' ) start [2025-02-20 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516461', 'tblTempVendorCDR_20' ) end [2025-02-20 08:18:17] Production.INFO: ProcessCDR(1,14516461,1,1,2) [2025-02-20 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516461', 'tblTempUsageDetail_20' ) start [2025-02-20 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516461', 'tblTempUsageDetail_20' ) end [2025-02-20 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:18:22] Production.INFO: ==21177== Releasing lock... [2025-02-20 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:18:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:19:05 [end_date_ymd] => 2025-02-20 08:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:19:05' and `end` < '2025-02-20 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-02-20 08:19:17] Production.INFO: count ==272 [2025-02-20 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:19:05 - End Time 2025-02-20 08:19:05 [2025-02-20 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516466', 'tblTempUsageDetail_20' ) start [2025-02-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516466', 'tblTempUsageDetail_20' ) end [2025-02-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516466', 'tblTempVendorCDR_20' ) start [2025-02-20 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516466', 'tblTempVendorCDR_20' ) end [2025-02-20 08:19:17] Production.INFO: ProcessCDR(1,14516466,1,1,2) [2025-02-20 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516466', 'tblTempUsageDetail_20' ) start [2025-02-20 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516466', 'tblTempUsageDetail_20' ) end [2025-02-20 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:19:21] Production.INFO: ==21249== Releasing lock... [2025-02-20 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:19:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:20:06 [end_date_ymd] => 2025-02-20 08:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:20:06' and `end` < '2025-02-20 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-02-20 08:20:18] Production.INFO: count ==307 [2025-02-20 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:20:06 - End Time 2025-02-20 08:20:06 [2025-02-20 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516472', 'tblTempUsageDetail_20' ) start [2025-02-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516472', 'tblTempUsageDetail_20' ) end [2025-02-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516472', 'tblTempVendorCDR_20' ) start [2025-02-20 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516472', 'tblTempVendorCDR_20' ) end [2025-02-20 08:20:18] Production.INFO: ProcessCDR(1,14516472,1,1,2) [2025-02-20 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516472', 'tblTempUsageDetail_20' ) start [2025-02-20 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516472', 'tblTempUsageDetail_20' ) end [2025-02-20 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:20:22] Production.INFO: ==21323== Releasing lock... [2025-02-20 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:20:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:21:04 [end_date_ymd] => 2025-02-20 08:21:04 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:21:04' and `end` < '2025-02-20 08: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-02-20 08:21:16] Production.INFO: count ==324 [2025-02-20 08:21:16] Production.ERROR: pbx CDR StartTime 2025-02-20 05:21:04 - End Time 2025-02-20 08:21:04 [2025-02-20 08:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516477', 'tblTempUsageDetail_20' ) start [2025-02-20 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516477', 'tblTempUsageDetail_20' ) end [2025-02-20 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516477', 'tblTempVendorCDR_20' ) start [2025-02-20 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516477', 'tblTempVendorCDR_20' ) end [2025-02-20 08:21:16] Production.INFO: ProcessCDR(1,14516477,1,1,2) [2025-02-20 08:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516477', 'tblTempUsageDetail_20' ) start [2025-02-20 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516477', 'tblTempUsageDetail_20' ) end [2025-02-20 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:21:21] Production.INFO: ==21395== Releasing lock... [2025-02-20 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:21:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:22:05 [end_date_ymd] => 2025-02-20 08:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:22:05' and `end` < '2025-02-20 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-02-20 08:22:17] Production.INFO: count ==330 [2025-02-20 08:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:22:05 - End Time 2025-02-20 08:22:05 [2025-02-20 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516482', 'tblTempUsageDetail_20' ) start [2025-02-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516482', 'tblTempUsageDetail_20' ) end [2025-02-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516482', 'tblTempVendorCDR_20' ) start [2025-02-20 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516482', 'tblTempVendorCDR_20' ) end [2025-02-20 08:22:17] Production.INFO: ProcessCDR(1,14516482,1,1,2) [2025-02-20 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516482', 'tblTempUsageDetail_20' ) start [2025-02-20 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516482', 'tblTempUsageDetail_20' ) end [2025-02-20 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:22:22] Production.INFO: ==21465== Releasing lock... [2025-02-20 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:22:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:23:06 [end_date_ymd] => 2025-02-20 08:23:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:23:06' and `end` < '2025-02-20 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-02-20 08:23:17] Production.INFO: count ==335 [2025-02-20 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:23:06 - End Time 2025-02-20 08:23:06 [2025-02-20 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516487', 'tblTempUsageDetail_20' ) start [2025-02-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516487', 'tblTempUsageDetail_20' ) end [2025-02-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516487', 'tblTempVendorCDR_20' ) start [2025-02-20 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516487', 'tblTempVendorCDR_20' ) end [2025-02-20 08:23:18] Production.INFO: ProcessCDR(1,14516487,1,1,2) [2025-02-20 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516487', 'tblTempUsageDetail_20' ) start [2025-02-20 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516487', 'tblTempUsageDetail_20' ) end [2025-02-20 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:23:21] Production.INFO: ==21576== Releasing lock... [2025-02-20 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:23:21] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:24:06 [end_date_ymd] => 2025-02-20 08:24:06 [RateCDR] => 1 ) [2025-02-20 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:24:06' and `end` < '2025-02-20 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:24:18] Production.INFO: count ==336 [2025-02-20 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:24:06 - End Time 2025-02-20 08:24:06 [2025-02-20 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516492', 'tblTempUsageDetail_20' ) start [2025-02-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516492', 'tblTempUsageDetail_20' ) end [2025-02-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516492', 'tblTempVendorCDR_20' ) start [2025-02-20 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516492', 'tblTempVendorCDR_20' ) end [2025-02-20 08:24:18] Production.INFO: ProcessCDR(1,14516492,1,1,2) [2025-02-20 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516492', 'tblTempUsageDetail_20' ) start [2025-02-20 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516492', 'tblTempUsageDetail_20' ) end [2025-02-20 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:24:22] Production.INFO: ==21646== Releasing lock... [2025-02-20 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:24:22] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:25:05 [end_date_ymd] => 2025-02-20 08:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:25:05' and `end` < '2025-02-20 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-02-20 08:25:17] Production.INFO: count ==344 [2025-02-20 08:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:25:05 - End Time 2025-02-20 08:25:05 [2025-02-20 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516497', 'tblTempUsageDetail_20' ) start [2025-02-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516497', 'tblTempUsageDetail_20' ) end [2025-02-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516497', 'tblTempVendorCDR_20' ) start [2025-02-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516497', 'tblTempVendorCDR_20' ) end [2025-02-20 08:25:17] Production.INFO: ProcessCDR(1,14516497,1,1,2) [2025-02-20 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516497', 'tblTempUsageDetail_20' ) start [2025-02-20 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516497', 'tblTempUsageDetail_20' ) end [2025-02-20 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:25:20] Production.INFO: ==21720== Releasing lock... [2025-02-20 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-20 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:26:06 [end_date_ymd] => 2025-02-20 08:26:06 [RateCDR] => 1 ) [2025-02-20 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:26:06' and `end` < '2025-02-20 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:26:17] Production.INFO: count ==355 [2025-02-20 08:26:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:26:06 - End Time 2025-02-20 08:26:06 [2025-02-20 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516502', 'tblTempUsageDetail_20' ) start [2025-02-20 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516502', 'tblTempUsageDetail_20' ) end [2025-02-20 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516502', 'tblTempVendorCDR_20' ) start [2025-02-20 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516502', 'tblTempVendorCDR_20' ) end [2025-02-20 08:26:18] Production.INFO: ProcessCDR(1,14516502,1,1,2) [2025-02-20 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516502', 'tblTempUsageDetail_20' ) start [2025-02-20 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516502', 'tblTempUsageDetail_20' ) end [2025-02-20 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:26:21] Production.INFO: ==21802== Releasing lock... [2025-02-20 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-20 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:27:05 [end_date_ymd] => 2025-02-20 08:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:27:05' and `end` < '2025-02-20 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-02-20 08:27:16] Production.INFO: count ==361 [2025-02-20 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:27:05 - End Time 2025-02-20 08:27:05 [2025-02-20 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516507', 'tblTempUsageDetail_20' ) start [2025-02-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516507', 'tblTempUsageDetail_20' ) end [2025-02-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516507', 'tblTempVendorCDR_20' ) start [2025-02-20 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516507', 'tblTempVendorCDR_20' ) end [2025-02-20 08:27:17] Production.INFO: ProcessCDR(1,14516507,1,1,2) [2025-02-20 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516507', 'tblTempUsageDetail_20' ) start [2025-02-20 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516507', 'tblTempUsageDetail_20' ) end [2025-02-20 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:27:22] Production.INFO: ==21877== Releasing lock... [2025-02-20 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:28:05 [end_date_ymd] => 2025-02-20 08:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:28:05' and `end` < '2025-02-20 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-02-20 08:28:17] Production.INFO: count ==368 [2025-02-20 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:28:05 - End Time 2025-02-20 08:28:05 [2025-02-20 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516512', 'tblTempUsageDetail_20' ) start [2025-02-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516512', 'tblTempUsageDetail_20' ) end [2025-02-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516512', 'tblTempVendorCDR_20' ) start [2025-02-20 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516512', 'tblTempVendorCDR_20' ) end [2025-02-20 08:28:17] Production.INFO: ProcessCDR(1,14516512,1,1,2) [2025-02-20 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516512', 'tblTempUsageDetail_20' ) start [2025-02-20 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516512', 'tblTempUsageDetail_20' ) end [2025-02-20 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:28:22] Production.INFO: ==21953== Releasing lock... [2025-02-20 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:29:05 [end_date_ymd] => 2025-02-20 08:29:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:29:05' and `end` < '2025-02-20 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-02-20 08:29:16] Production.INFO: count ==379 [2025-02-20 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:29:05 - End Time 2025-02-20 08:29:05 [2025-02-20 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516517', 'tblTempUsageDetail_20' ) start [2025-02-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516517', 'tblTempUsageDetail_20' ) end [2025-02-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516517', 'tblTempVendorCDR_20' ) start [2025-02-20 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516517', 'tblTempVendorCDR_20' ) end [2025-02-20 08:29:17] Production.INFO: ProcessCDR(1,14516517,1,1,2) [2025-02-20 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516517', 'tblTempUsageDetail_20' ) start [2025-02-20 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516517', 'tblTempUsageDetail_20' ) end [2025-02-20 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:29:20] Production.INFO: ==22030== Releasing lock... [2025-02-20 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:29:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-20 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:30:06 [end_date_ymd] => 2025-02-20 08:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:30:06' and `end` < '2025-02-20 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-02-20 08:30:18] Production.INFO: count ==393 [2025-02-20 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:30:06 - End Time 2025-02-20 08:30:06 [2025-02-20 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516523', 'tblTempUsageDetail_20' ) start [2025-02-20 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516523', 'tblTempUsageDetail_20' ) end [2025-02-20 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516523', 'tblTempVendorCDR_20' ) start [2025-02-20 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516523', 'tblTempVendorCDR_20' ) end [2025-02-20 08:30:18] Production.INFO: ProcessCDR(1,14516523,1,1,2) [2025-02-20 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516523', 'tblTempUsageDetail_20' ) start [2025-02-20 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516523', 'tblTempUsageDetail_20' ) end [2025-02-20 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:30:23] Production.INFO: ==22111== Releasing lock... [2025-02-20 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:30:23] Production.INFO: 31 MB #Memory Used# [2025-02-20 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:31:05 [end_date_ymd] => 2025-02-20 08:31:05 [RateCDR] => 1 ) [2025-02-20 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:31:05' and `end` < '2025-02-20 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:31:17] Production.INFO: count ==422 [2025-02-20 08:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:31:05 - End Time 2025-02-20 08:31:05 [2025-02-20 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516528', 'tblTempUsageDetail_20' ) start [2025-02-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516528', 'tblTempUsageDetail_20' ) end [2025-02-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516528', 'tblTempVendorCDR_20' ) start [2025-02-20 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516528', 'tblTempVendorCDR_20' ) end [2025-02-20 08:31:17] Production.INFO: ProcessCDR(1,14516528,1,1,2) [2025-02-20 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516528', 'tblTempUsageDetail_20' ) start [2025-02-20 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516528', 'tblTempUsageDetail_20' ) end [2025-02-20 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:31:22] Production.INFO: ==22204== Releasing lock... [2025-02-20 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:31:22] Production.INFO: 32 MB #Memory Used# [2025-02-20 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:32:06 [end_date_ymd] => 2025-02-20 08:32:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:32:06' and `end` < '2025-02-20 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-02-20 08:32:18] Production.INFO: count ==424 [2025-02-20 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:32:06 - End Time 2025-02-20 08:32:06 [2025-02-20 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516533', 'tblTempUsageDetail_20' ) start [2025-02-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516533', 'tblTempUsageDetail_20' ) end [2025-02-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516533', 'tblTempVendorCDR_20' ) start [2025-02-20 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516533', 'tblTempVendorCDR_20' ) end [2025-02-20 08:32:18] Production.INFO: ProcessCDR(1,14516533,1,1,2) [2025-02-20 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516533', 'tblTempUsageDetail_20' ) start [2025-02-20 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516533', 'tblTempUsageDetail_20' ) end [2025-02-20 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:32:21] Production.INFO: ==22292== Releasing lock... [2025-02-20 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-20 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:33:05 [end_date_ymd] => 2025-02-20 08:33:05 [RateCDR] => 1 ) [2025-02-20 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:33:05' and `end` < '2025-02-20 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:33:16] Production.INFO: count ==424 [2025-02-20 08:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:33:05 - End Time 2025-02-20 08:33:05 [2025-02-20 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516538', 'tblTempUsageDetail_20' ) start [2025-02-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516538', 'tblTempUsageDetail_20' ) end [2025-02-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516538', 'tblTempVendorCDR_20' ) start [2025-02-20 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516538', 'tblTempVendorCDR_20' ) end [2025-02-20 08:33:17] Production.INFO: ProcessCDR(1,14516538,1,1,2) [2025-02-20 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516538', 'tblTempUsageDetail_20' ) start [2025-02-20 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516538', 'tblTempUsageDetail_20' ) end [2025-02-20 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:33:20] Production.INFO: ==22376== Releasing lock... [2025-02-20 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:33:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-20 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:34:05 [end_date_ymd] => 2025-02-20 08:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:34:05' and `end` < '2025-02-20 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-02-20 08:34:17] Production.INFO: count ==429 [2025-02-20 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:34:05 - End Time 2025-02-20 08:34:05 [2025-02-20 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516543', 'tblTempUsageDetail_20' ) start [2025-02-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516543', 'tblTempUsageDetail_20' ) end [2025-02-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516543', 'tblTempVendorCDR_20' ) start [2025-02-20 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516543', 'tblTempVendorCDR_20' ) end [2025-02-20 08:34:18] Production.INFO: ProcessCDR(1,14516543,1,1,2) [2025-02-20 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516543', 'tblTempUsageDetail_20' ) start [2025-02-20 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516543', 'tblTempUsageDetail_20' ) end [2025-02-20 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:34:22] Production.INFO: ==22462== Releasing lock... [2025-02-20 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:35:05 [end_date_ymd] => 2025-02-20 08:35:05 [RateCDR] => 1 ) [2025-02-20 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:35:05' and `end` < '2025-02-20 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:35:17] Production.INFO: count ==429 [2025-02-20 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:35:05 - End Time 2025-02-20 08:35:05 [2025-02-20 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516548', 'tblTempUsageDetail_20' ) start [2025-02-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516548', 'tblTempUsageDetail_20' ) end [2025-02-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516548', 'tblTempVendorCDR_20' ) start [2025-02-20 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516548', 'tblTempVendorCDR_20' ) end [2025-02-20 08:35:17] Production.INFO: ProcessCDR(1,14516548,1,1,2) [2025-02-20 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516548', 'tblTempUsageDetail_20' ) start [2025-02-20 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516548', 'tblTempUsageDetail_20' ) end [2025-02-20 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:35:20] Production.INFO: ==22549== Releasing lock... [2025-02-20 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:36:05 [end_date_ymd] => 2025-02-20 08:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:36:05' and `end` < '2025-02-20 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-02-20 08:36:17] Production.INFO: count ==431 [2025-02-20 08:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:36:05 - End Time 2025-02-20 08:36:05 [2025-02-20 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516553', 'tblTempUsageDetail_20' ) start [2025-02-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516553', 'tblTempUsageDetail_20' ) end [2025-02-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516553', 'tblTempVendorCDR_20' ) start [2025-02-20 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516553', 'tblTempVendorCDR_20' ) end [2025-02-20 08:36:17] Production.INFO: ProcessCDR(1,14516553,1,1,2) [2025-02-20 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516553', 'tblTempUsageDetail_20' ) start [2025-02-20 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516553', 'tblTempUsageDetail_20' ) end [2025-02-20 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:36:22] Production.INFO: ==22635== Releasing lock... [2025-02-20 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-20 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:37:05 [end_date_ymd] => 2025-02-20 08:37:05 [RateCDR] => 1 ) [2025-02-20 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:37:05' and `end` < '2025-02-20 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:37:16] Production.INFO: count ==432 [2025-02-20 08:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:37:05 - End Time 2025-02-20 08:37:05 [2025-02-20 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516558', 'tblTempUsageDetail_20' ) start [2025-02-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516558', 'tblTempUsageDetail_20' ) end [2025-02-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516558', 'tblTempVendorCDR_20' ) start [2025-02-20 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516558', 'tblTempVendorCDR_20' ) end [2025-02-20 08:37:17] Production.INFO: ProcessCDR(1,14516558,1,1,2) [2025-02-20 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516558', 'tblTempUsageDetail_20' ) start [2025-02-20 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516558', 'tblTempUsageDetail_20' ) end [2025-02-20 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:37:20] Production.INFO: ==22722== Releasing lock... [2025-02-20 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:37:20] Production.INFO: 32 MB #Memory Used# [2025-02-20 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:38:05 [end_date_ymd] => 2025-02-20 08:38:05 [RateCDR] => 1 ) [2025-02-20 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:38:05' and `end` < '2025-02-20 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:38:17] Production.INFO: count ==435 [2025-02-20 08:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:38:05 - End Time 2025-02-20 08:38:05 [2025-02-20 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516563', 'tblTempUsageDetail_20' ) start [2025-02-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516563', 'tblTempUsageDetail_20' ) end [2025-02-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516563', 'tblTempVendorCDR_20' ) start [2025-02-20 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516563', 'tblTempVendorCDR_20' ) end [2025-02-20 08:38:17] Production.INFO: ProcessCDR(1,14516563,1,1,2) [2025-02-20 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516563', 'tblTempUsageDetail_20' ) start [2025-02-20 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516563', 'tblTempUsageDetail_20' ) end [2025-02-20 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:38:22] Production.INFO: ==22805== Releasing lock... [2025-02-20 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-20 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:39:05 [end_date_ymd] => 2025-02-20 08:39:05 [RateCDR] => 1 ) [2025-02-20 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:39:05' and `end` < '2025-02-20 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:39:17] Production.INFO: count ==447 [2025-02-20 08:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:39:05 - End Time 2025-02-20 08:39:05 [2025-02-20 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516568', 'tblTempUsageDetail_20' ) start [2025-02-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516568', 'tblTempUsageDetail_20' ) end [2025-02-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516568', 'tblTempVendorCDR_20' ) start [2025-02-20 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516568', 'tblTempVendorCDR_20' ) end [2025-02-20 08:39:17] Production.INFO: ProcessCDR(1,14516568,1,1,2) [2025-02-20 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516568', 'tblTempUsageDetail_20' ) start [2025-02-20 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516568', 'tblTempUsageDetail_20' ) end [2025-02-20 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:39:22] Production.INFO: ==22932== Releasing lock... [2025-02-20 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-20 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:40:05 [end_date_ymd] => 2025-02-20 08:40:05 [RateCDR] => 1 ) [2025-02-20 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:40:05' and `end` < '2025-02-20 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:40:17] Production.INFO: count ==463 [2025-02-20 08:40:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:40:05 - End Time 2025-02-20 08:40:05 [2025-02-20 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516574', 'tblTempUsageDetail_20' ) start [2025-02-20 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516574', 'tblTempUsageDetail_20' ) end [2025-02-20 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516574', 'tblTempVendorCDR_20' ) start [2025-02-20 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516574', 'tblTempVendorCDR_20' ) end [2025-02-20 08:40:17] Production.INFO: ProcessCDR(1,14516574,1,1,2) [2025-02-20 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516574', 'tblTempUsageDetail_20' ) start [2025-02-20 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516574', 'tblTempUsageDetail_20' ) end [2025-02-20 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:40:23] Production.INFO: ==23017== Releasing lock... [2025-02-20 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-20 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:41:04 [end_date_ymd] => 2025-02-20 08:41:04 [RateCDR] => 1 ) [2025-02-20 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:41:04' and `end` < '2025-02-20 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:41:16] Production.INFO: count ==485 [2025-02-20 08:41:16] Production.ERROR: pbx CDR StartTime 2025-02-20 05:41:04 - End Time 2025-02-20 08:41:04 [2025-02-20 08:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516578', 'tblTempUsageDetail_20' ) start [2025-02-20 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516578', 'tblTempUsageDetail_20' ) end [2025-02-20 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516578', 'tblTempVendorCDR_20' ) start [2025-02-20 08:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516578', 'tblTempVendorCDR_20' ) end [2025-02-20 08:41:16] Production.INFO: ProcessCDR(1,14516578,1,1,2) [2025-02-20 08:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516578', 'tblTempUsageDetail_20' ) start [2025-02-20 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516578', 'tblTempUsageDetail_20' ) end [2025-02-20 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:41:21] Production.INFO: ==23105== Releasing lock... [2025-02-20 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:41:21] Production.INFO: 32 MB #Memory Used# [2025-02-20 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:42:06 [end_date_ymd] => 2025-02-20 08:42:06 [RateCDR] => 1 ) [2025-02-20 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:42:06' and `end` < '2025-02-20 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:42:17] Production.INFO: count ==491 [2025-02-20 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:42:06 - End Time 2025-02-20 08:42:06 [2025-02-20 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516584', 'tblTempUsageDetail_20' ) start [2025-02-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516584', 'tblTempUsageDetail_20' ) end [2025-02-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516584', 'tblTempVendorCDR_20' ) start [2025-02-20 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516584', 'tblTempVendorCDR_20' ) end [2025-02-20 08:42:18] Production.INFO: ProcessCDR(1,14516584,1,1,2) [2025-02-20 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516584', 'tblTempUsageDetail_20' ) start [2025-02-20 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516584', 'tblTempUsageDetail_20' ) end [2025-02-20 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:42:21] Production.INFO: ==23190== Releasing lock... [2025-02-20 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-20 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:43:06 [end_date_ymd] => 2025-02-20 08:43:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:43:06' and `end` < '2025-02-20 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-02-20 08:43:18] Production.INFO: count ==496 [2025-02-20 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:43:06 - End Time 2025-02-20 08:43:06 [2025-02-20 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516589', 'tblTempUsageDetail_20' ) start [2025-02-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516589', 'tblTempUsageDetail_20' ) end [2025-02-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516589', 'tblTempVendorCDR_20' ) start [2025-02-20 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516589', 'tblTempVendorCDR_20' ) end [2025-02-20 08:43:18] Production.INFO: ProcessCDR(1,14516589,1,1,2) [2025-02-20 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516589', 'tblTempUsageDetail_20' ) start [2025-02-20 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516589', 'tblTempUsageDetail_20' ) end [2025-02-20 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:43:21] Production.INFO: ==23277== Releasing lock... [2025-02-20 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-20 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:44:05 [end_date_ymd] => 2025-02-20 08:44:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:44:05' and `end` < '2025-02-20 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-02-20 08:44:17] Production.INFO: count ==504 [2025-02-20 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:44:05 - End Time 2025-02-20 08:44:05 [2025-02-20 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516594', 'tblTempUsageDetail_20' ) start [2025-02-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516594', 'tblTempUsageDetail_20' ) end [2025-02-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516594', 'tblTempVendorCDR_20' ) start [2025-02-20 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516594', 'tblTempVendorCDR_20' ) end [2025-02-20 08:44:17] Production.INFO: ProcessCDR(1,14516594,1,1,2) [2025-02-20 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516594', 'tblTempUsageDetail_20' ) start [2025-02-20 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516594', 'tblTempUsageDetail_20' ) end [2025-02-20 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:44:22] Production.INFO: ==23361== Releasing lock... [2025-02-20 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-20 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:45:06 [end_date_ymd] => 2025-02-20 08:45:06 [RateCDR] => 1 ) [2025-02-20 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:45:06' and `end` < '2025-02-20 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:45:17] Production.INFO: count ==506 [2025-02-20 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:45:06 - End Time 2025-02-20 08:45:06 [2025-02-20 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516599', 'tblTempUsageDetail_20' ) start [2025-02-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516599', 'tblTempUsageDetail_20' ) end [2025-02-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516599', 'tblTempVendorCDR_20' ) start [2025-02-20 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516599', 'tblTempVendorCDR_20' ) end [2025-02-20 08:45:18] Production.INFO: ProcessCDR(1,14516599,1,1,2) [2025-02-20 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516599', 'tblTempUsageDetail_20' ) start [2025-02-20 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516599', 'tblTempUsageDetail_20' ) end [2025-02-20 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:45:23] Production.INFO: ==23446== Releasing lock... [2025-02-20 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:45:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-20 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:46:05 [end_date_ymd] => 2025-02-20 08:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:46:05' and `end` < '2025-02-20 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-02-20 08:46:16] Production.INFO: count ==512 [2025-02-20 08:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:46:05 - End Time 2025-02-20 08:46:05 [2025-02-20 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516604', 'tblTempUsageDetail_20' ) start [2025-02-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516604', 'tblTempUsageDetail_20' ) end [2025-02-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516604', 'tblTempVendorCDR_20' ) start [2025-02-20 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516604', 'tblTempVendorCDR_20' ) end [2025-02-20 08:46:17] Production.INFO: ProcessCDR(1,14516604,1,1,2) [2025-02-20 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516604', 'tblTempUsageDetail_20' ) start [2025-02-20 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516604', 'tblTempUsageDetail_20' ) end [2025-02-20 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:46:20] Production.INFO: ==23533== Releasing lock... [2025-02-20 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:46:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-20 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:47:06 [end_date_ymd] => 2025-02-20 08:47:06 [RateCDR] => 1 ) [2025-02-20 08: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-02-20 05:47:06' and `end` < '2025-02-20 08: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-02-20 08:47:18] Production.INFO: count ==526 [2025-02-20 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:47:06 - End Time 2025-02-20 08:47:06 [2025-02-20 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516609', 'tblTempUsageDetail_20' ) start [2025-02-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516609', 'tblTempUsageDetail_20' ) end [2025-02-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516609', 'tblTempVendorCDR_20' ) start [2025-02-20 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516609', 'tblTempVendorCDR_20' ) end [2025-02-20 08:47:18] Production.INFO: ProcessCDR(1,14516609,1,1,2) [2025-02-20 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516609', 'tblTempUsageDetail_20' ) start [2025-02-20 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516609', 'tblTempUsageDetail_20' ) end [2025-02-20 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:47:23] Production.INFO: ==23626== Releasing lock... [2025-02-20 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:48:05 [end_date_ymd] => 2025-02-20 08:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:48:05' and `end` < '2025-02-20 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-02-20 08:48:17] Production.INFO: count ==536 [2025-02-20 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:48:05 - End Time 2025-02-20 08:48:05 [2025-02-20 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516614', 'tblTempUsageDetail_20' ) start [2025-02-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516614', 'tblTempUsageDetail_20' ) end [2025-02-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516614', 'tblTempVendorCDR_20' ) start [2025-02-20 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516614', 'tblTempVendorCDR_20' ) end [2025-02-20 08:48:17] Production.INFO: ProcessCDR(1,14516614,1,1,2) [2025-02-20 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516614', 'tblTempUsageDetail_20' ) start [2025-02-20 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516614', 'tblTempUsageDetail_20' ) end [2025-02-20 08:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:48:20] Production.INFO: ==23711== Releasing lock... [2025-02-20 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-20 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:49:05 [end_date_ymd] => 2025-02-20 08:49:05 [RateCDR] => 1 ) [2025-02-20 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:49:05' and `end` < '2025-02-20 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:49:17] Production.INFO: count ==543 [2025-02-20 08:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:49:05 - End Time 2025-02-20 08:49:05 [2025-02-20 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516619', 'tblTempUsageDetail_20' ) start [2025-02-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516619', 'tblTempUsageDetail_20' ) end [2025-02-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516619', 'tblTempVendorCDR_20' ) start [2025-02-20 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516619', 'tblTempVendorCDR_20' ) end [2025-02-20 08:49:17] Production.INFO: ProcessCDR(1,14516619,1,1,2) [2025-02-20 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516619', 'tblTempUsageDetail_20' ) start [2025-02-20 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516619', 'tblTempUsageDetail_20' ) end [2025-02-20 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:49:22] Production.INFO: ==23798== Releasing lock... [2025-02-20 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:49:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:50:06 [end_date_ymd] => 2025-02-20 08:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:50:06' and `end` < '2025-02-20 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-02-20 08:50:18] Production.INFO: count ==560 [2025-02-20 08:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:50:06 - End Time 2025-02-20 08:50:06 [2025-02-20 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516624', 'tblTempUsageDetail_20' ) start [2025-02-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516624', 'tblTempUsageDetail_20' ) end [2025-02-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516624', 'tblTempVendorCDR_20' ) start [2025-02-20 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516624', 'tblTempVendorCDR_20' ) end [2025-02-20 08:50:18] Production.INFO: ProcessCDR(1,14516624,1,1,2) [2025-02-20 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516624', 'tblTempUsageDetail_20' ) start [2025-02-20 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516624', 'tblTempUsageDetail_20' ) end [2025-02-20 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:50:23] Production.INFO: ==23884== Releasing lock... [2025-02-20 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:50:23] Production.INFO: 33 MB #Memory Used# [2025-02-20 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:51:05 [end_date_ymd] => 2025-02-20 08:51:05 [RateCDR] => 1 ) [2025-02-20 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:51:05' and `end` < '2025-02-20 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:51:17] Production.INFO: count ==590 [2025-02-20 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:51:05 - End Time 2025-02-20 08:51:05 [2025-02-20 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516630', 'tblTempUsageDetail_20' ) start [2025-02-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516630', 'tblTempUsageDetail_20' ) end [2025-02-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516630', 'tblTempVendorCDR_20' ) start [2025-02-20 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516630', 'tblTempVendorCDR_20' ) end [2025-02-20 08:51:18] Production.INFO: ProcessCDR(1,14516630,1,1,2) [2025-02-20 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516630', 'tblTempUsageDetail_20' ) start [2025-02-20 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516630', 'tblTempUsageDetail_20' ) end [2025-02-20 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:51:21] Production.INFO: ==23971== Releasing lock... [2025-02-20 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:51:21] Production.INFO: 33 MB #Memory Used# [2025-02-20 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:52:05 [end_date_ymd] => 2025-02-20 08:52:05 [RateCDR] => 1 ) [2025-02-20 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:52:05' and `end` < '2025-02-20 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:52:17] Production.INFO: count ==598 [2025-02-20 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:52:05 - End Time 2025-02-20 08:52:05 [2025-02-20 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516635', 'tblTempUsageDetail_20' ) start [2025-02-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516635', 'tblTempUsageDetail_20' ) end [2025-02-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516635', 'tblTempVendorCDR_20' ) start [2025-02-20 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516635', 'tblTempVendorCDR_20' ) end [2025-02-20 08:52:18] Production.INFO: ProcessCDR(1,14516635,1,1,2) [2025-02-20 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516635', 'tblTempUsageDetail_20' ) start [2025-02-20 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516635', 'tblTempUsageDetail_20' ) end [2025-02-20 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:52:23] Production.INFO: ==24061== Releasing lock... [2025-02-20 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:52:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-20 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:53:06 [end_date_ymd] => 2025-02-20 08:53:06 [RateCDR] => 1 ) [2025-02-20 08: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-02-20 05:53:06' and `end` < '2025-02-20 08: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-02-20 08:53:18] Production.INFO: count ==604 [2025-02-20 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:53:06 - End Time 2025-02-20 08:53:06 [2025-02-20 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516640', 'tblTempUsageDetail_20' ) start [2025-02-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516640', 'tblTempUsageDetail_20' ) end [2025-02-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516640', 'tblTempVendorCDR_20' ) start [2025-02-20 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516640', 'tblTempVendorCDR_20' ) end [2025-02-20 08:53:18] Production.INFO: ProcessCDR(1,14516640,1,1,2) [2025-02-20 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516640', 'tblTempUsageDetail_20' ) start [2025-02-20 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516640', 'tblTempUsageDetail_20' ) end [2025-02-20 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:53:23] Production.INFO: ==24146== Releasing lock... [2025-02-20 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:53:23] Production.INFO: 33 MB #Memory Used# [2025-02-20 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:54:05 [end_date_ymd] => 2025-02-20 08:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:54:05' and `end` < '2025-02-20 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-02-20 08:54:16] Production.INFO: count ==619 [2025-02-20 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:54:05 - End Time 2025-02-20 08:54:05 [2025-02-20 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516645', 'tblTempUsageDetail_20' ) start [2025-02-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516645', 'tblTempUsageDetail_20' ) end [2025-02-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516645', 'tblTempVendorCDR_20' ) start [2025-02-20 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516645', 'tblTempVendorCDR_20' ) end [2025-02-20 08:54:17] Production.INFO: ProcessCDR(1,14516645,1,1,2) [2025-02-20 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516645', 'tblTempUsageDetail_20' ) start [2025-02-20 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516645', 'tblTempUsageDetail_20' ) end [2025-02-20 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:54:22] Production.INFO: ==24269== Releasing lock... [2025-02-20 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:55:05 [end_date_ymd] => 2025-02-20 08:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:55:05' and `end` < '2025-02-20 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-02-20 08:55:18] Production.INFO: count ==632 [2025-02-20 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:55:05 - End Time 2025-02-20 08:55:05 [2025-02-20 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516650', 'tblTempUsageDetail_20' ) start [2025-02-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516650', 'tblTempUsageDetail_20' ) end [2025-02-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516650', 'tblTempVendorCDR_20' ) start [2025-02-20 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516650', 'tblTempVendorCDR_20' ) end [2025-02-20 08:55:18] Production.INFO: ProcessCDR(1,14516650,1,1,2) [2025-02-20 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516650', 'tblTempUsageDetail_20' ) start [2025-02-20 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516650', 'tblTempUsageDetail_20' ) end [2025-02-20 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:55:21] Production.INFO: ==24360== Releasing lock... [2025-02-20 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-20 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:56:05 [end_date_ymd] => 2025-02-20 08:56:05 [RateCDR] => 1 ) [2025-02-20 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:56:05' and `end` < '2025-02-20 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:56:17] Production.INFO: count ==652 [2025-02-20 08:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:56:05 - End Time 2025-02-20 08:56:05 [2025-02-20 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516655', 'tblTempUsageDetail_20' ) start [2025-02-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516655', 'tblTempUsageDetail_20' ) end [2025-02-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516655', 'tblTempVendorCDR_20' ) start [2025-02-20 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516655', 'tblTempVendorCDR_20' ) end [2025-02-20 08:56:17] Production.INFO: ProcessCDR(1,14516655,1,1,2) [2025-02-20 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516655', 'tblTempUsageDetail_20' ) start [2025-02-20 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516655', 'tblTempUsageDetail_20' ) end [2025-02-20 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:56:22] Production.INFO: ==24450== Releasing lock... [2025-02-20 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-20 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:57:05 [end_date_ymd] => 2025-02-20 08:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:57:05' and `end` < '2025-02-20 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-02-20 08:57:17] Production.INFO: count ==679 [2025-02-20 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:57:05 - End Time 2025-02-20 08:57:05 [2025-02-20 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516660', 'tblTempUsageDetail_20' ) start [2025-02-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516660', 'tblTempUsageDetail_20' ) end [2025-02-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516660', 'tblTempVendorCDR_20' ) start [2025-02-20 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516660', 'tblTempVendorCDR_20' ) end [2025-02-20 08:57:17] Production.INFO: ProcessCDR(1,14516660,1,1,2) [2025-02-20 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516660', 'tblTempUsageDetail_20' ) start [2025-02-20 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516660', 'tblTempUsageDetail_20' ) end [2025-02-20 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:57:23] Production.INFO: ==24540== Releasing lock... [2025-02-20 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:58:05 [end_date_ymd] => 2025-02-20 08:58:05 [RateCDR] => 1 ) [2025-02-20 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 05:58:05' and `end` < '2025-02-20 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 08:58:17] Production.INFO: count ==682 [2025-02-20 08:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 05:58:05 - End Time 2025-02-20 08:58:05 [2025-02-20 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516665', 'tblTempUsageDetail_20' ) start [2025-02-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516665', 'tblTempUsageDetail_20' ) end [2025-02-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516665', 'tblTempVendorCDR_20' ) start [2025-02-20 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516665', 'tblTempVendorCDR_20' ) end [2025-02-20 08:58:17] Production.INFO: ProcessCDR(1,14516665,1,1,2) [2025-02-20 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516665', 'tblTempUsageDetail_20' ) start [2025-02-20 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516665', 'tblTempUsageDetail_20' ) end [2025-02-20 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:58:22] Production.INFO: ==24627== Releasing lock... [2025-02-20 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 05:59:05 [end_date_ymd] => 2025-02-20 08:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 05:59:05' and `end` < '2025-02-20 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-02-20 08:59:17] Production.INFO: count ==690 [2025-02-20 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 05:59:05 - End Time 2025-02-20 08:59:05 [2025-02-20 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516670', 'tblTempUsageDetail_20' ) start [2025-02-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516670', 'tblTempUsageDetail_20' ) end [2025-02-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516670', 'tblTempVendorCDR_20' ) start [2025-02-20 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516670', 'tblTempVendorCDR_20' ) end [2025-02-20 08:59:18] Production.INFO: ProcessCDR(1,14516670,1,1,2) [2025-02-20 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516670', 'tblTempUsageDetail_20' ) start [2025-02-20 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516670', 'tblTempUsageDetail_20' ) end [2025-02-20 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 08:59:21] Production.INFO: ==24719== Releasing lock... [2025-02-20 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 08:59:21] Production.INFO: 34 MB #Memory Used# [2025-02-20 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:00:06 [end_date_ymd] => 2025-02-20 09:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:00:06' and `end` < '2025-02-20 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-02-20 09:00:18] Production.INFO: count ==708 [2025-02-20 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:00:06 - End Time 2025-02-20 09:00:06 [2025-02-20 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516676', 'tblTempUsageDetail_20' ) start [2025-02-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516676', 'tblTempUsageDetail_20' ) end [2025-02-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516676', 'tblTempVendorCDR_20' ) start [2025-02-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516676', 'tblTempVendorCDR_20' ) end [2025-02-20 09:00:19] Production.INFO: ProcessCDR(1,14516676,1,1,2) [2025-02-20 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516676', 'tblTempUsageDetail_20' ) start [2025-02-20 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516676', 'tblTempUsageDetail_20' ) end [2025-02-20 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:00:24] Production.INFO: ==24806== Releasing lock... [2025-02-20 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:00:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-20 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:01:05 [end_date_ymd] => 2025-02-20 09:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:01:05' and `end` < '2025-02-20 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-02-20 09:01:17] Production.INFO: count ==765 [2025-02-20 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:01:05 - End Time 2025-02-20 09:01:05 [2025-02-20 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516681', 'tblTempUsageDetail_20' ) start [2025-02-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516681', 'tblTempUsageDetail_20' ) end [2025-02-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516681', 'tblTempVendorCDR_20' ) start [2025-02-20 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516681', 'tblTempVendorCDR_20' ) end [2025-02-20 09:01:18] Production.INFO: ProcessCDR(1,14516681,1,1,2) [2025-02-20 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516681', 'tblTempUsageDetail_20' ) start [2025-02-20 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516681', 'tblTempUsageDetail_20' ) end [2025-02-20 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:01:21] Production.INFO: ==24907== Releasing lock... [2025-02-20 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:01:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:02:05 [end_date_ymd] => 2025-02-20 09:02:05 [RateCDR] => 1 ) [2025-02-20 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:02:05' and `end` < '2025-02-20 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:02:17] Production.INFO: count ==778 [2025-02-20 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:02:05 - End Time 2025-02-20 09:02:05 [2025-02-20 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516686', 'tblTempUsageDetail_20' ) start [2025-02-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516686', 'tblTempUsageDetail_20' ) end [2025-02-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516686', 'tblTempVendorCDR_20' ) start [2025-02-20 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516686', 'tblTempVendorCDR_20' ) end [2025-02-20 09:02:18] Production.INFO: ProcessCDR(1,14516686,1,1,2) [2025-02-20 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516686', 'tblTempUsageDetail_20' ) start [2025-02-20 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516686', 'tblTempUsageDetail_20' ) end [2025-02-20 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:02:22] Production.INFO: ==24995== Releasing lock... [2025-02-20 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:02:22] Production.INFO: 34 MB #Memory Used# [2025-02-20 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:03:06 [end_date_ymd] => 2025-02-20 09:03:06 [RateCDR] => 1 ) [2025-02-20 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:03:06' and `end` < '2025-02-20 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:03:18] Production.INFO: count ==833 [2025-02-20 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:03:06 - End Time 2025-02-20 09:03:06 [2025-02-20 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516691', 'tblTempUsageDetail_20' ) start [2025-02-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516691', 'tblTempUsageDetail_20' ) end [2025-02-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516691', 'tblTempVendorCDR_20' ) start [2025-02-20 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516691', 'tblTempVendorCDR_20' ) end [2025-02-20 09:03:18] Production.INFO: ProcessCDR(1,14516691,1,1,2) [2025-02-20 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516691', 'tblTempUsageDetail_20' ) start [2025-02-20 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516691', 'tblTempUsageDetail_20' ) end [2025-02-20 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:03:24] Production.INFO: ==25084== Releasing lock... [2025-02-20 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:03:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-20 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:04:05 [end_date_ymd] => 2025-02-20 09:04:05 [RateCDR] => 1 ) [2025-02-20 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:04:05' and `end` < '2025-02-20 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:04:17] Production.INFO: count ==842 [2025-02-20 09:04:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:04:05 - End Time 2025-02-20 09:04:05 [2025-02-20 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516696', 'tblTempUsageDetail_20' ) start [2025-02-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516696', 'tblTempUsageDetail_20' ) end [2025-02-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516696', 'tblTempVendorCDR_20' ) start [2025-02-20 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516696', 'tblTempVendorCDR_20' ) end [2025-02-20 09:04:18] Production.INFO: ProcessCDR(1,14516696,1,1,2) [2025-02-20 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516696', 'tblTempUsageDetail_20' ) start [2025-02-20 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516696', 'tblTempUsageDetail_20' ) end [2025-02-20 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:04:21] Production.INFO: ==25167== Releasing lock... [2025-02-20 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:04:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-20 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:05:05 [end_date_ymd] => 2025-02-20 09:05:05 [RateCDR] => 1 ) [2025-02-20 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:05:05' and `end` < '2025-02-20 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:05:17] Production.INFO: count ==877 [2025-02-20 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:05:05 - End Time 2025-02-20 09:05:05 [2025-02-20 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516701', 'tblTempUsageDetail_20' ) start [2025-02-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516701', 'tblTempUsageDetail_20' ) end [2025-02-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516701', 'tblTempVendorCDR_20' ) start [2025-02-20 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516701', 'tblTempVendorCDR_20' ) end [2025-02-20 09:05:18] Production.INFO: ProcessCDR(1,14516701,1,1,2) [2025-02-20 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516701', 'tblTempUsageDetail_20' ) start [2025-02-20 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516701', 'tblTempUsageDetail_20' ) end [2025-02-20 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:05:23] Production.INFO: ==25251== Releasing lock... [2025-02-20 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-20 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:06:06 [end_date_ymd] => 2025-02-20 09:06:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:06:06' and `end` < '2025-02-20 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-02-20 09:06:18] Production.INFO: count ==887 [2025-02-20 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:06:06 - End Time 2025-02-20 09:06:06 [2025-02-20 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516706', 'tblTempUsageDetail_20' ) start [2025-02-20 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516706', 'tblTempUsageDetail_20' ) end [2025-02-20 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516706', 'tblTempVendorCDR_20' ) start [2025-02-20 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516706', 'tblTempVendorCDR_20' ) end [2025-02-20 09:06:19] Production.INFO: ProcessCDR(1,14516706,1,1,2) [2025-02-20 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516706', 'tblTempUsageDetail_20' ) start [2025-02-20 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516706', 'tblTempUsageDetail_20' ) end [2025-02-20 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:06:24] Production.INFO: ==25332== Releasing lock... [2025-02-20 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:06:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-20 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:07:06 [end_date_ymd] => 2025-02-20 09:07:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:07:06' and `end` < '2025-02-20 09: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-02-20 09:07:18] Production.INFO: count ==904 [2025-02-20 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:07:06 - End Time 2025-02-20 09:07:06 [2025-02-20 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516711', 'tblTempUsageDetail_20' ) start [2025-02-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516711', 'tblTempUsageDetail_20' ) end [2025-02-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516711', 'tblTempVendorCDR_20' ) start [2025-02-20 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516711', 'tblTempVendorCDR_20' ) end [2025-02-20 09:07:18] Production.INFO: ProcessCDR(1,14516711,1,1,2) [2025-02-20 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516711', 'tblTempUsageDetail_20' ) start [2025-02-20 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516711', 'tblTempUsageDetail_20' ) end [2025-02-20 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:07:22] Production.INFO: ==25421== Releasing lock... [2025-02-20 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:07:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-20 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:08:06 [end_date_ymd] => 2025-02-20 09:08:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:08:06' and `end` < '2025-02-20 09: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-02-20 09:08:18] Production.INFO: count ==923 [2025-02-20 09:08:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:08:06 - End Time 2025-02-20 09:08:06 [2025-02-20 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516716', 'tblTempUsageDetail_20' ) start [2025-02-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516716', 'tblTempUsageDetail_20' ) end [2025-02-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516716', 'tblTempVendorCDR_20' ) start [2025-02-20 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516716', 'tblTempVendorCDR_20' ) end [2025-02-20 09:08:18] Production.INFO: ProcessCDR(1,14516716,1,1,2) [2025-02-20 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516716', 'tblTempUsageDetail_20' ) start [2025-02-20 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516716', 'tblTempUsageDetail_20' ) end [2025-02-20 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:08:24] Production.INFO: ==25498== Releasing lock... [2025-02-20 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:08:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:09:05 [end_date_ymd] => 2025-02-20 09:09:05 [RateCDR] => 1 ) [2025-02-20 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:09:05' and `end` < '2025-02-20 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:09:17] Production.INFO: count ==953 [2025-02-20 09:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 06:09:05 - End Time 2025-02-20 09:09:05 [2025-02-20 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516721', 'tblTempUsageDetail_20' ) start [2025-02-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516721', 'tblTempUsageDetail_20' ) end [2025-02-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516721', 'tblTempVendorCDR_20' ) start [2025-02-20 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516721', 'tblTempVendorCDR_20' ) end [2025-02-20 09:09:18] Production.INFO: ProcessCDR(1,14516721,1,1,2) [2025-02-20 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516721', 'tblTempUsageDetail_20' ) start [2025-02-20 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516721', 'tblTempUsageDetail_20' ) end [2025-02-20 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:09:22] Production.INFO: ==25583== Releasing lock... [2025-02-20 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:09:22] Production.INFO: 36 MB #Memory Used# [2025-02-20 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:10:06 [end_date_ymd] => 2025-02-20 09:10:06 [RateCDR] => 1 ) [2025-02-20 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:10:06' and `end` < '2025-02-20 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:10:19] Production.INFO: count ==986 [2025-02-20 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:10:06 - End Time 2025-02-20 09:10:06 [2025-02-20 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516727', 'tblTempUsageDetail_20' ) start [2025-02-20 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516727', 'tblTempUsageDetail_20' ) end [2025-02-20 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516727', 'tblTempVendorCDR_20' ) start [2025-02-20 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516727', 'tblTempVendorCDR_20' ) end [2025-02-20 09:10:20] Production.INFO: ProcessCDR(1,14516727,1,1,2) [2025-02-20 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516727', 'tblTempUsageDetail_20' ) start [2025-02-20 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516727', 'tblTempUsageDetail_20' ) end [2025-02-20 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:10:25] Production.INFO: ==25706== Releasing lock... [2025-02-20 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:10:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:11:05 [end_date_ymd] => 2025-02-20 09:11:05 [RateCDR] => 1 ) [2025-02-20 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:11:05' and `end` < '2025-02-20 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:11:17] Production.INFO: count ==1060 [2025-02-20 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:11:05 - End Time 2025-02-20 09:11:05 [2025-02-20 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516732', 'tblTempUsageDetail_20' ) start [2025-02-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516732', 'tblTempUsageDetail_20' ) end [2025-02-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516732', 'tblTempVendorCDR_20' ) start [2025-02-20 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516732', 'tblTempVendorCDR_20' ) end [2025-02-20 09:11:18] Production.INFO: ProcessCDR(1,14516732,1,1,2) [2025-02-20 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516732', 'tblTempUsageDetail_20' ) start [2025-02-20 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516732', 'tblTempUsageDetail_20' ) end [2025-02-20 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:11:23] Production.INFO: ==25793== Releasing lock... [2025-02-20 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:12:05 [end_date_ymd] => 2025-02-20 09:12:05 [RateCDR] => 1 ) [2025-02-20 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:12:05' and `end` < '2025-02-20 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:12:17] Production.INFO: count ==1067 [2025-02-20 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:12:05 - End Time 2025-02-20 09:12:05 [2025-02-20 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516737', 'tblTempUsageDetail_20' ) start [2025-02-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516737', 'tblTempUsageDetail_20' ) end [2025-02-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516737', 'tblTempVendorCDR_20' ) start [2025-02-20 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516737', 'tblTempVendorCDR_20' ) end [2025-02-20 09:12:18] Production.INFO: ProcessCDR(1,14516737,1,1,2) [2025-02-20 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516737', 'tblTempUsageDetail_20' ) start [2025-02-20 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516737', 'tblTempUsageDetail_20' ) end [2025-02-20 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:12:23] Production.INFO: ==25877== Releasing lock... [2025-02-20 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:12:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:13:06 [end_date_ymd] => 2025-02-20 09:13:06 [RateCDR] => 1 ) [2025-02-20 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:13:06' and `end` < '2025-02-20 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:13:18] Production.INFO: count ==1080 [2025-02-20 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:13:06 - End Time 2025-02-20 09:13:06 [2025-02-20 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516742', 'tblTempUsageDetail_20' ) start [2025-02-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516742', 'tblTempUsageDetail_20' ) end [2025-02-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516742', 'tblTempVendorCDR_20' ) start [2025-02-20 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516742', 'tblTempVendorCDR_20' ) end [2025-02-20 09:13:18] Production.INFO: ProcessCDR(1,14516742,1,1,2) [2025-02-20 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516742', 'tblTempUsageDetail_20' ) start [2025-02-20 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516742', 'tblTempUsageDetail_20' ) end [2025-02-20 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:13:24] Production.INFO: ==25956== Releasing lock... [2025-02-20 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:13:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:14:05 [end_date_ymd] => 2025-02-20 09:14:05 [RateCDR] => 1 ) [2025-02-20 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:14:05' and `end` < '2025-02-20 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:14:17] Production.INFO: count ==1088 [2025-02-20 09:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 06:14:05 - End Time 2025-02-20 09:14:05 [2025-02-20 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516747', 'tblTempUsageDetail_20' ) start [2025-02-20 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516747', 'tblTempUsageDetail_20' ) end [2025-02-20 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516747', 'tblTempVendorCDR_20' ) start [2025-02-20 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516747', 'tblTempVendorCDR_20' ) end [2025-02-20 09:14:17] Production.INFO: ProcessCDR(1,14516747,1,1,2) [2025-02-20 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516747', 'tblTempUsageDetail_20' ) start [2025-02-20 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516747', 'tblTempUsageDetail_20' ) end [2025-02-20 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:14:23] Production.INFO: ==26039== Releasing lock... [2025-02-20 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:15:05 [end_date_ymd] => 2025-02-20 09:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:15:05' and `end` < '2025-02-20 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-02-20 09:15:17] Production.INFO: count ==1110 [2025-02-20 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:15:05 - End Time 2025-02-20 09:15:05 [2025-02-20 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516751', 'tblTempUsageDetail_20' ) start [2025-02-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516751', 'tblTempUsageDetail_20' ) end [2025-02-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516751', 'tblTempVendorCDR_20' ) start [2025-02-20 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516751', 'tblTempVendorCDR_20' ) end [2025-02-20 09:15:18] Production.INFO: ProcessCDR(1,14516751,1,1,2) [2025-02-20 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516751', 'tblTempUsageDetail_20' ) start [2025-02-20 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516751', 'tblTempUsageDetail_20' ) end [2025-02-20 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:15:24] Production.INFO: ==26126== Releasing lock... [2025-02-20 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:15:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-20 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:16:05 [end_date_ymd] => 2025-02-20 09:16:05 [RateCDR] => 1 ) [2025-02-20 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:16:05' and `end` < '2025-02-20 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:16:17] Production.INFO: count ==1121 [2025-02-20 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:16:05 - End Time 2025-02-20 09:16:05 [2025-02-20 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516757', 'tblTempUsageDetail_20' ) start [2025-02-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516757', 'tblTempUsageDetail_20' ) end [2025-02-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516757', 'tblTempVendorCDR_20' ) start [2025-02-20 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516757', 'tblTempVendorCDR_20' ) end [2025-02-20 09:16:18] Production.INFO: ProcessCDR(1,14516757,1,1,2) [2025-02-20 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516757', 'tblTempUsageDetail_20' ) start [2025-02-20 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516757', 'tblTempUsageDetail_20' ) end [2025-02-20 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:16:23] Production.INFO: ==26206== Releasing lock... [2025-02-20 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-20 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:17:06 [end_date_ymd] => 2025-02-20 09:17:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:17:06' and `end` < '2025-02-20 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-02-20 09:17:18] Production.INFO: count ==1131 [2025-02-20 09:17:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:17:06 - End Time 2025-02-20 09:17:06 [2025-02-20 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516762', 'tblTempUsageDetail_20' ) start [2025-02-20 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516762', 'tblTempUsageDetail_20' ) end [2025-02-20 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516762', 'tblTempVendorCDR_20' ) start [2025-02-20 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516762', 'tblTempVendorCDR_20' ) end [2025-02-20 09:17:19] Production.INFO: ProcessCDR(1,14516762,1,1,2) [2025-02-20 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516762', 'tblTempUsageDetail_20' ) start [2025-02-20 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516762', 'tblTempUsageDetail_20' ) end [2025-02-20 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:17:24] Production.INFO: ==26284== Releasing lock... [2025-02-20 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:17:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-20 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:18:05 [end_date_ymd] => 2025-02-20 09:18:05 [RateCDR] => 1 ) [2025-02-20 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:18:05' and `end` < '2025-02-20 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:18:17] Production.INFO: count ==1165 [2025-02-20 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:18:05 - End Time 2025-02-20 09:18:05 [2025-02-20 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516767', 'tblTempUsageDetail_20' ) start [2025-02-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516767', 'tblTempUsageDetail_20' ) end [2025-02-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516767', 'tblTempVendorCDR_20' ) start [2025-02-20 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516767', 'tblTempVendorCDR_20' ) end [2025-02-20 09:18:18] Production.INFO: ProcessCDR(1,14516767,1,1,2) [2025-02-20 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516767', 'tblTempUsageDetail_20' ) start [2025-02-20 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516767', 'tblTempUsageDetail_20' ) end [2025-02-20 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:18:24] Production.INFO: ==26363== Releasing lock... [2025-02-20 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:18:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-20 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:19:06 [end_date_ymd] => 2025-02-20 09:19:06 [RateCDR] => 1 ) [2025-02-20 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:19:06' and `end` < '2025-02-20 09:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:19:18] Production.INFO: count ==1167 [2025-02-20 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:19:06 - End Time 2025-02-20 09:19:06 [2025-02-20 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516772', 'tblTempUsageDetail_20' ) start [2025-02-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516772', 'tblTempUsageDetail_20' ) end [2025-02-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516772', 'tblTempVendorCDR_20' ) start [2025-02-20 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516772', 'tblTempVendorCDR_20' ) end [2025-02-20 09:19:18] Production.INFO: ProcessCDR(1,14516772,1,1,2) [2025-02-20 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516772', 'tblTempUsageDetail_20' ) start [2025-02-20 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516772', 'tblTempUsageDetail_20' ) end [2025-02-20 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:19:24] Production.INFO: ==26445== Releasing lock... [2025-02-20 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:19:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-20 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:20:06 [end_date_ymd] => 2025-02-20 09:20:06 [RateCDR] => 1 ) [2025-02-20 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:20:06' and `end` < '2025-02-20 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:20:18] Production.INFO: count ==1183 [2025-02-20 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:20:06 - End Time 2025-02-20 09:20:06 [2025-02-20 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516778', 'tblTempUsageDetail_20' ) start [2025-02-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516778', 'tblTempUsageDetail_20' ) end [2025-02-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516778', 'tblTempVendorCDR_20' ) start [2025-02-20 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516778', 'tblTempVendorCDR_20' ) end [2025-02-20 09:20:19] Production.INFO: ProcessCDR(1,14516778,1,1,2) [2025-02-20 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516778', 'tblTempUsageDetail_20' ) start [2025-02-20 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516778', 'tblTempUsageDetail_20' ) end [2025-02-20 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:20:25] Production.INFO: ==26525== Releasing lock... [2025-02-20 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:20:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:21:06 [end_date_ymd] => 2025-02-20 09:21:06 [RateCDR] => 1 ) [2025-02-20 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:21:06' and `end` < '2025-02-20 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:21:18] Production.INFO: count ==1248 [2025-02-20 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:21:06 - End Time 2025-02-20 09:21:06 [2025-02-20 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516783', 'tblTempUsageDetail_20' ) start [2025-02-20 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516783', 'tblTempUsageDetail_20' ) end [2025-02-20 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516783', 'tblTempVendorCDR_20' ) start [2025-02-20 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516783', 'tblTempVendorCDR_20' ) end [2025-02-20 09:21:19] Production.INFO: ProcessCDR(1,14516783,1,1,2) [2025-02-20 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516783', 'tblTempUsageDetail_20' ) start [2025-02-20 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516783', 'tblTempUsageDetail_20' ) end [2025-02-20 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:21:25] Production.INFO: ==26606== Releasing lock... [2025-02-20 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:21:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:22:05 [end_date_ymd] => 2025-02-20 09:22:05 [RateCDR] => 1 ) [2025-02-20 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:22:05' and `end` < '2025-02-20 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:22:17] Production.INFO: count ==1250 [2025-02-20 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:22:05 - End Time 2025-02-20 09:22:05 [2025-02-20 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516788', 'tblTempUsageDetail_20' ) start [2025-02-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516788', 'tblTempUsageDetail_20' ) end [2025-02-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516788', 'tblTempVendorCDR_20' ) start [2025-02-20 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516788', 'tblTempVendorCDR_20' ) end [2025-02-20 09:22:18] Production.INFO: ProcessCDR(1,14516788,1,1,2) [2025-02-20 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516788', 'tblTempUsageDetail_20' ) start [2025-02-20 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516788', 'tblTempUsageDetail_20' ) end [2025-02-20 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:22:23] Production.INFO: ==26685== Releasing lock... [2025-02-20 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:22:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-20 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:23:06 [end_date_ymd] => 2025-02-20 09:23:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:23:06' and `end` < '2025-02-20 09: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-02-20 09:23:18] Production.INFO: count ==1264 [2025-02-20 09:23:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:23:06 - End Time 2025-02-20 09:23:06 [2025-02-20 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516793', 'tblTempUsageDetail_20' ) start [2025-02-20 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516793', 'tblTempUsageDetail_20' ) end [2025-02-20 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516793', 'tblTempVendorCDR_20' ) start [2025-02-20 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516793', 'tblTempVendorCDR_20' ) end [2025-02-20 09:23:19] Production.INFO: ProcessCDR(1,14516793,1,1,2) [2025-02-20 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516793', 'tblTempUsageDetail_20' ) start [2025-02-20 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516793', 'tblTempUsageDetail_20' ) end [2025-02-20 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:23:24] Production.INFO: ==26761== Releasing lock... [2025-02-20 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:23:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:24:05 [end_date_ymd] => 2025-02-20 09:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:24:05' and `end` < '2025-02-20 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-02-20 09:24:17] Production.INFO: count ==1286 [2025-02-20 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:24:05 - End Time 2025-02-20 09:24:05 [2025-02-20 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516798', 'tblTempUsageDetail_20' ) start [2025-02-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516798', 'tblTempUsageDetail_20' ) end [2025-02-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516798', 'tblTempVendorCDR_20' ) start [2025-02-20 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516798', 'tblTempVendorCDR_20' ) end [2025-02-20 09:24:18] Production.INFO: ProcessCDR(1,14516798,1,1,2) [2025-02-20 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516798', 'tblTempUsageDetail_20' ) start [2025-02-20 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516798', 'tblTempUsageDetail_20' ) end [2025-02-20 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:24:24] Production.INFO: ==26845== Releasing lock... [2025-02-20 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:24:24] Production.INFO: 38 MB #Memory Used# [2025-02-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:25:05 [end_date_ymd] => 2025-02-20 09:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:25:05' and `end` < '2025-02-20 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-02-20 09:25:17] Production.INFO: count ==1307 [2025-02-20 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:25:05 - End Time 2025-02-20 09:25:05 [2025-02-20 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516803', 'tblTempUsageDetail_20' ) start [2025-02-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516803', 'tblTempUsageDetail_20' ) end [2025-02-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516803', 'tblTempVendorCDR_20' ) start [2025-02-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516803', 'tblTempVendorCDR_20' ) end [2025-02-20 09:25:18] Production.INFO: ProcessCDR(1,14516803,1,1,2) [2025-02-20 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516803', 'tblTempUsageDetail_20' ) start [2025-02-20 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516803', 'tblTempUsageDetail_20' ) end [2025-02-20 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:25:24] Production.INFO: ==26965== Releasing lock... [2025-02-20 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:25:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-20 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:26:05 [end_date_ymd] => 2025-02-20 09:26:05 [RateCDR] => 1 ) [2025-02-20 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:26:05' and `end` < '2025-02-20 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:26:17] Production.INFO: count ==1330 [2025-02-20 09:26:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:26:05 - End Time 2025-02-20 09:26:05 [2025-02-20 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516808', 'tblTempUsageDetail_20' ) start [2025-02-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516808', 'tblTempUsageDetail_20' ) end [2025-02-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516808', 'tblTempVendorCDR_20' ) start [2025-02-20 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516808', 'tblTempVendorCDR_20' ) end [2025-02-20 09:26:18] Production.INFO: ProcessCDR(1,14516808,1,1,2) [2025-02-20 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516808', 'tblTempUsageDetail_20' ) start [2025-02-20 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516808', 'tblTempUsageDetail_20' ) end [2025-02-20 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:26:23] Production.INFO: ==27044== Releasing lock... [2025-02-20 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:26:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-20 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:27:06 [end_date_ymd] => 2025-02-20 09:27:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:27:06' and `end` < '2025-02-20 09: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-02-20 09:27:18] Production.INFO: count ==1350 [2025-02-20 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:27:06 - End Time 2025-02-20 09:27:06 [2025-02-20 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516813', 'tblTempUsageDetail_20' ) start [2025-02-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516813', 'tblTempUsageDetail_20' ) end [2025-02-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516813', 'tblTempVendorCDR_20' ) start [2025-02-20 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516813', 'tblTempVendorCDR_20' ) end [2025-02-20 09:27:18] Production.INFO: ProcessCDR(1,14516813,1,1,2) [2025-02-20 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516813', 'tblTempUsageDetail_20' ) start [2025-02-20 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516813', 'tblTempUsageDetail_20' ) end [2025-02-20 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:27:24] Production.INFO: ==27127== Releasing lock... [2025-02-20 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:27:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-20 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:28:06 [end_date_ymd] => 2025-02-20 09:28:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:28:06' and `end` < '2025-02-20 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-02-20 09:28:18] Production.INFO: count ==1366 [2025-02-20 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:28:06 - End Time 2025-02-20 09:28:06 [2025-02-20 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516818', 'tblTempUsageDetail_20' ) start [2025-02-20 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516818', 'tblTempUsageDetail_20' ) end [2025-02-20 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516818', 'tblTempVendorCDR_20' ) start [2025-02-20 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516818', 'tblTempVendorCDR_20' ) end [2025-02-20 09:28:19] Production.INFO: ProcessCDR(1,14516818,1,1,2) [2025-02-20 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516818', 'tblTempUsageDetail_20' ) start [2025-02-20 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516818', 'tblTempUsageDetail_20' ) end [2025-02-20 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:28:24] Production.INFO: ==27204== Releasing lock... [2025-02-20 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:28:24] Production.INFO: 38 MB #Memory Used# [2025-02-20 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:29:06 [end_date_ymd] => 2025-02-20 09:29:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:29:06' and `end` < '2025-02-20 09: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-02-20 09:29:18] Production.INFO: count ==1367 [2025-02-20 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:29:06 - End Time 2025-02-20 09:29:06 [2025-02-20 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516823', 'tblTempUsageDetail_20' ) start [2025-02-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516823', 'tblTempUsageDetail_20' ) end [2025-02-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516823', 'tblTempVendorCDR_20' ) start [2025-02-20 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516823', 'tblTempVendorCDR_20' ) end [2025-02-20 09:29:18] Production.INFO: ProcessCDR(1,14516823,1,1,2) [2025-02-20 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516823', 'tblTempUsageDetail_20' ) start [2025-02-20 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516823', 'tblTempUsageDetail_20' ) end [2025-02-20 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:29:24] Production.INFO: ==27286== Releasing lock... [2025-02-20 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:29:24] Production.INFO: 38 MB #Memory Used# [2025-02-20 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:30:07 [end_date_ymd] => 2025-02-20 09:30:07 [RateCDR] => 1 ) [2025-02-20 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:30:07' and `end` < '2025-02-20 09:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:30:19] Production.INFO: count ==1381 [2025-02-20 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:30:07 - End Time 2025-02-20 09:30:07 [2025-02-20 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516828', 'tblTempUsageDetail_20' ) start [2025-02-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516828', 'tblTempUsageDetail_20' ) end [2025-02-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516828', 'tblTempVendorCDR_20' ) start [2025-02-20 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516828', 'tblTempVendorCDR_20' ) end [2025-02-20 09:30:19] Production.INFO: ProcessCDR(1,14516828,1,1,2) [2025-02-20 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516828', 'tblTempUsageDetail_20' ) start [2025-02-20 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516828', 'tblTempUsageDetail_20' ) end [2025-02-20 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:30:25] Production.INFO: ==27374== Releasing lock... [2025-02-20 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:30:25] Production.INFO: 38.5 MB #Memory Used# [2025-02-20 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:31:06 [end_date_ymd] => 2025-02-20 09:31:06 [RateCDR] => 1 ) [2025-02-20 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:31:06' and `end` < '2025-02-20 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:31:18] Production.INFO: count ==1449 [2025-02-20 09:31:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:31:06 - End Time 2025-02-20 09:31:06 [2025-02-20 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516834', 'tblTempUsageDetail_20' ) start [2025-02-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516834', 'tblTempUsageDetail_20' ) end [2025-02-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516834', 'tblTempVendorCDR_20' ) start [2025-02-20 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516834', 'tblTempVendorCDR_20' ) end [2025-02-20 09:31:19] Production.INFO: ProcessCDR(1,14516834,1,1,2) [2025-02-20 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516834', 'tblTempUsageDetail_20' ) start [2025-02-20 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516834', 'tblTempUsageDetail_20' ) end [2025-02-20 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:31:24] Production.INFO: ==27465== Releasing lock... [2025-02-20 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:31:24] Production.INFO: 39 MB #Memory Used# [2025-02-20 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:32:06 [end_date_ymd] => 2025-02-20 09:32:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:32:06' and `end` < '2025-02-20 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-02-20 09:32:19] Production.INFO: count ==1457 [2025-02-20 09:32:21] Production.ERROR: pbx CDR StartTime 2025-02-20 06:32:06 - End Time 2025-02-20 09:32:06 [2025-02-20 09:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516839', 'tblTempUsageDetail_20' ) start [2025-02-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516839', 'tblTempUsageDetail_20' ) end [2025-02-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516839', 'tblTempVendorCDR_20' ) start [2025-02-20 09:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516839', 'tblTempVendorCDR_20' ) end [2025-02-20 09:32:21] Production.INFO: ProcessCDR(1,14516839,1,1,2) [2025-02-20 09:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516839', 'tblTempUsageDetail_20' ) start [2025-02-20 09:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516839', 'tblTempUsageDetail_20' ) end [2025-02-20 09:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:32:27] Production.INFO: ==27544== Releasing lock... [2025-02-20 09:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:32:27] Production.INFO: 39 MB #Memory Used# [2025-02-20 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:33:06 [end_date_ymd] => 2025-02-20 09:33:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:33:06' and `end` < '2025-02-20 09: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-02-20 09:33:18] Production.INFO: count ==1462 [2025-02-20 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:33:06 - End Time 2025-02-20 09:33:06 [2025-02-20 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516844', 'tblTempUsageDetail_20' ) start [2025-02-20 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516844', 'tblTempUsageDetail_20' ) end [2025-02-20 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516844', 'tblTempVendorCDR_20' ) start [2025-02-20 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516844', 'tblTempVendorCDR_20' ) end [2025-02-20 09:33:19] Production.INFO: ProcessCDR(1,14516844,1,1,2) [2025-02-20 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516844', 'tblTempUsageDetail_20' ) start [2025-02-20 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516844', 'tblTempUsageDetail_20' ) end [2025-02-20 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:33:24] Production.INFO: ==27629== Releasing lock... [2025-02-20 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:33:24] Production.INFO: 39 MB #Memory Used# [2025-02-20 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:34:06 [end_date_ymd] => 2025-02-20 09:34:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:34:06' and `end` < '2025-02-20 09: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-02-20 09:34:18] Production.INFO: count ==1474 [2025-02-20 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:34:06 - End Time 2025-02-20 09:34:06 [2025-02-20 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516849', 'tblTempUsageDetail_20' ) start [2025-02-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516849', 'tblTempUsageDetail_20' ) end [2025-02-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516849', 'tblTempVendorCDR_20' ) start [2025-02-20 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516849', 'tblTempVendorCDR_20' ) end [2025-02-20 09:34:18] Production.INFO: ProcessCDR(1,14516849,1,1,2) [2025-02-20 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516849', 'tblTempUsageDetail_20' ) start [2025-02-20 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516849', 'tblTempUsageDetail_20' ) end [2025-02-20 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:34:24] Production.INFO: ==27717== Releasing lock... [2025-02-20 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:34:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-20 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:35:06 [end_date_ymd] => 2025-02-20 09:35:06 [RateCDR] => 1 ) [2025-02-20 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:35:06' and `end` < '2025-02-20 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:35:18] Production.INFO: count ==1483 [2025-02-20 09:35:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:35:06 - End Time 2025-02-20 09:35:06 [2025-02-20 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516854', 'tblTempUsageDetail_20' ) start [2025-02-20 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516854', 'tblTempUsageDetail_20' ) end [2025-02-20 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516854', 'tblTempVendorCDR_20' ) start [2025-02-20 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516854', 'tblTempVendorCDR_20' ) end [2025-02-20 09:35:19] Production.INFO: ProcessCDR(1,14516854,1,1,2) [2025-02-20 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516854', 'tblTempUsageDetail_20' ) start [2025-02-20 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516854', 'tblTempUsageDetail_20' ) end [2025-02-20 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:35:24] Production.INFO: ==27801== Releasing lock... [2025-02-20 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-20 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:36:06 [end_date_ymd] => 2025-02-20 09:36:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:36:06' and `end` < '2025-02-20 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-02-20 09:36:18] Production.INFO: count ==1501 [2025-02-20 09:36:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:36:06 - End Time 2025-02-20 09:36:06 [2025-02-20 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516859', 'tblTempUsageDetail_20' ) start [2025-02-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516859', 'tblTempUsageDetail_20' ) end [2025-02-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516859', 'tblTempVendorCDR_20' ) start [2025-02-20 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516859', 'tblTempVendorCDR_20' ) end [2025-02-20 09:36:18] Production.INFO: ProcessCDR(1,14516859,1,1,2) [2025-02-20 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516859', 'tblTempUsageDetail_20' ) start [2025-02-20 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516859', 'tblTempUsageDetail_20' ) end [2025-02-20 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:36:24] Production.INFO: ==27888== Releasing lock... [2025-02-20 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:36:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-20 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:37:05 [end_date_ymd] => 2025-02-20 09:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:37:05' and `end` < '2025-02-20 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-02-20 09:37:17] Production.INFO: count ==1525 [2025-02-20 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:37:05 - End Time 2025-02-20 09:37:05 [2025-02-20 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516864', 'tblTempUsageDetail_20' ) start [2025-02-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516864', 'tblTempUsageDetail_20' ) end [2025-02-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516864', 'tblTempVendorCDR_20' ) start [2025-02-20 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516864', 'tblTempVendorCDR_20' ) end [2025-02-20 09:37:18] Production.INFO: ProcessCDR(1,14516864,1,1,2) [2025-02-20 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516864', 'tblTempUsageDetail_20' ) start [2025-02-20 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516864', 'tblTempUsageDetail_20' ) end [2025-02-20 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:37:24] Production.INFO: ==27971== Releasing lock... [2025-02-20 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:37:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-20 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:38:05 [end_date_ymd] => 2025-02-20 09:38:05 [RateCDR] => 1 ) [2025-02-20 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:38:05' and `end` < '2025-02-20 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:38:18] Production.INFO: count ==1550 [2025-02-20 09:38:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:38:05 - End Time 2025-02-20 09:38:05 [2025-02-20 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516869', 'tblTempUsageDetail_20' ) start [2025-02-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516869', 'tblTempUsageDetail_20' ) end [2025-02-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516869', 'tblTempVendorCDR_20' ) start [2025-02-20 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516869', 'tblTempVendorCDR_20' ) end [2025-02-20 09:38:18] Production.INFO: ProcessCDR(1,14516869,1,1,2) [2025-02-20 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516869', 'tblTempUsageDetail_20' ) start [2025-02-20 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516869', 'tblTempUsageDetail_20' ) end [2025-02-20 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:38:24] Production.INFO: ==28060== Releasing lock... [2025-02-20 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:38:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-20 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:39:05 [end_date_ymd] => 2025-02-20 09:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:39:05' and `end` < '2025-02-20 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-02-20 09:39:17] Production.INFO: count ==1569 [2025-02-20 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:39:05 - End Time 2025-02-20 09:39:05 [2025-02-20 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516874', 'tblTempUsageDetail_20' ) start [2025-02-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516874', 'tblTempUsageDetail_20' ) end [2025-02-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516874', 'tblTempVendorCDR_20' ) start [2025-02-20 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516874', 'tblTempVendorCDR_20' ) end [2025-02-20 09:39:18] Production.INFO: ProcessCDR(1,14516874,1,1,2) [2025-02-20 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516874', 'tblTempUsageDetail_20' ) start [2025-02-20 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516874', 'tblTempUsageDetail_20' ) end [2025-02-20 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:39:22] Production.INFO: ==28148== Releasing lock... [2025-02-20 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:39:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-20 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:40:07 [end_date_ymd] => 2025-02-20 09:40:07 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:40:07' and `end` < '2025-02-20 09: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-02-20 09:40:19] Production.INFO: count ==1613 [2025-02-20 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-20 06:40:07 - End Time 2025-02-20 09:40:07 [2025-02-20 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516880', 'tblTempUsageDetail_20' ) start [2025-02-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516880', 'tblTempUsageDetail_20' ) end [2025-02-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516880', 'tblTempVendorCDR_20' ) start [2025-02-20 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516880', 'tblTempVendorCDR_20' ) end [2025-02-20 09:40:20] Production.INFO: ProcessCDR(1,14516880,1,1,2) [2025-02-20 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516880', 'tblTempUsageDetail_20' ) start [2025-02-20 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516880', 'tblTempUsageDetail_20' ) end [2025-02-20 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:40:26] Production.INFO: ==28239== Releasing lock... [2025-02-20 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:40:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-20 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:41:05 [end_date_ymd] => 2025-02-20 09:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:41:05' and `end` < '2025-02-20 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-02-20 09:41:17] Production.INFO: count ==1690 [2025-02-20 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:41:05 - End Time 2025-02-20 09:41:05 [2025-02-20 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516885', 'tblTempUsageDetail_20' ) start [2025-02-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516885', 'tblTempUsageDetail_20' ) end [2025-02-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516885', 'tblTempVendorCDR_20' ) start [2025-02-20 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516885', 'tblTempVendorCDR_20' ) end [2025-02-20 09:41:18] Production.INFO: ProcessCDR(1,14516885,1,1,2) [2025-02-20 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516885', 'tblTempUsageDetail_20' ) start [2025-02-20 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516885', 'tblTempUsageDetail_20' ) end [2025-02-20 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:41:23] Production.INFO: ==28362== Releasing lock... [2025-02-20 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:41:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-20 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:42:05 [end_date_ymd] => 2025-02-20 09:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:42:05' and `end` < '2025-02-20 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-02-20 09:42:17] Production.INFO: count ==1713 [2025-02-20 09:42:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:42:05 - End Time 2025-02-20 09:42:05 [2025-02-20 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516890', 'tblTempUsageDetail_20' ) start [2025-02-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516890', 'tblTempUsageDetail_20' ) end [2025-02-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516890', 'tblTempVendorCDR_20' ) start [2025-02-20 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516890', 'tblTempVendorCDR_20' ) end [2025-02-20 09:42:18] Production.INFO: ProcessCDR(1,14516890,1,1,2) [2025-02-20 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516890', 'tblTempUsageDetail_20' ) start [2025-02-20 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516890', 'tblTempUsageDetail_20' ) end [2025-02-20 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:42:24] Production.INFO: ==28448== Releasing lock... [2025-02-20 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:42:24] Production.INFO: 41 MB #Memory Used# [2025-02-20 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:43:05 [end_date_ymd] => 2025-02-20 09:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:43:05' and `end` < '2025-02-20 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-02-20 09:43:17] Production.INFO: count ==1725 [2025-02-20 09:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:43:05 - End Time 2025-02-20 09:43:05 [2025-02-20 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516895', 'tblTempUsageDetail_20' ) start [2025-02-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516895', 'tblTempUsageDetail_20' ) end [2025-02-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516895', 'tblTempVendorCDR_20' ) start [2025-02-20 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516895', 'tblTempVendorCDR_20' ) end [2025-02-20 09:43:18] Production.INFO: ProcessCDR(1,14516895,1,1,2) [2025-02-20 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516895', 'tblTempUsageDetail_20' ) start [2025-02-20 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516895', 'tblTempUsageDetail_20' ) end [2025-02-20 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:43:23] Production.INFO: ==28534== Releasing lock... [2025-02-20 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:43:23] Production.INFO: 41 MB #Memory Used# [2025-02-20 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:44:06 [end_date_ymd] => 2025-02-20 09:44:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:44:06' and `end` < '2025-02-20 09: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-02-20 09:44:18] Production.INFO: count ==1730 [2025-02-20 09:44:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:44:06 - End Time 2025-02-20 09:44:06 [2025-02-20 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516900', 'tblTempUsageDetail_20' ) start [2025-02-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516900', 'tblTempUsageDetail_20' ) end [2025-02-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516900', 'tblTempVendorCDR_20' ) start [2025-02-20 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516900', 'tblTempVendorCDR_20' ) end [2025-02-20 09:44:19] Production.INFO: ProcessCDR(1,14516900,1,1,2) [2025-02-20 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516900', 'tblTempUsageDetail_20' ) start [2025-02-20 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516900', 'tblTempUsageDetail_20' ) end [2025-02-20 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:44:24] Production.INFO: ==28623== Releasing lock... [2025-02-20 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:44:24] Production.INFO: 41 MB #Memory Used# [2025-02-20 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:45:05 [end_date_ymd] => 2025-02-20 09:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:45:05' and `end` < '2025-02-20 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-02-20 09:45:17] Production.INFO: count ==1737 [2025-02-20 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:45:05 - End Time 2025-02-20 09:45:05 [2025-02-20 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516905', 'tblTempUsageDetail_20' ) start [2025-02-20 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516905', 'tblTempUsageDetail_20' ) end [2025-02-20 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516905', 'tblTempVendorCDR_20' ) start [2025-02-20 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516905', 'tblTempVendorCDR_20' ) end [2025-02-20 09:45:18] Production.INFO: ProcessCDR(1,14516905,1,1,2) [2025-02-20 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516905', 'tblTempUsageDetail_20' ) start [2025-02-20 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516905', 'tblTempUsageDetail_20' ) end [2025-02-20 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:45:24] Production.INFO: ==28705== Releasing lock... [2025-02-20 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:45:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-20 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:46:05 [end_date_ymd] => 2025-02-20 09:46:05 [RateCDR] => 1 ) [2025-02-20 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:46:05' and `end` < '2025-02-20 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:46:18] Production.INFO: count ==1748 [2025-02-20 09:46:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:46:05 - End Time 2025-02-20 09:46:05 [2025-02-20 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516910', 'tblTempUsageDetail_20' ) start [2025-02-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516910', 'tblTempUsageDetail_20' ) end [2025-02-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516910', 'tblTempVendorCDR_20' ) start [2025-02-20 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516910', 'tblTempVendorCDR_20' ) end [2025-02-20 09:46:18] Production.INFO: ProcessCDR(1,14516910,1,1,2) [2025-02-20 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516910', 'tblTempUsageDetail_20' ) start [2025-02-20 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516910', 'tblTempUsageDetail_20' ) end [2025-02-20 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:46:24] Production.INFO: ==28790== Releasing lock... [2025-02-20 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:46:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-20 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:47:06 [end_date_ymd] => 2025-02-20 09:47:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:47:06' and `end` < '2025-02-20 09: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-02-20 09:47:18] Production.INFO: count ==1761 [2025-02-20 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:47:06 - End Time 2025-02-20 09:47:06 [2025-02-20 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516915', 'tblTempUsageDetail_20' ) start [2025-02-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516915', 'tblTempUsageDetail_20' ) end [2025-02-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516915', 'tblTempVendorCDR_20' ) start [2025-02-20 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516915', 'tblTempVendorCDR_20' ) end [2025-02-20 09:47:19] Production.INFO: ProcessCDR(1,14516915,1,1,2) [2025-02-20 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516915', 'tblTempUsageDetail_20' ) start [2025-02-20 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516915', 'tblTempUsageDetail_20' ) end [2025-02-20 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:47:25] Production.INFO: ==28869== Releasing lock... [2025-02-20 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:47:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-20 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:48:06 [end_date_ymd] => 2025-02-20 09:48:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:48:06' and `end` < '2025-02-20 09: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-02-20 09:48:18] Production.INFO: count ==1788 [2025-02-20 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:48:06 - End Time 2025-02-20 09:48:06 [2025-02-20 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516920', 'tblTempUsageDetail_20' ) start [2025-02-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516920', 'tblTempUsageDetail_20' ) end [2025-02-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516920', 'tblTempVendorCDR_20' ) start [2025-02-20 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516920', 'tblTempVendorCDR_20' ) end [2025-02-20 09:48:19] Production.INFO: ProcessCDR(1,14516920,1,1,2) [2025-02-20 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516920', 'tblTempUsageDetail_20' ) start [2025-02-20 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516920', 'tblTempUsageDetail_20' ) end [2025-02-20 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:48:24] Production.INFO: ==28949== Releasing lock... [2025-02-20 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:48:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-20 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:49:06 [end_date_ymd] => 2025-02-20 09:49:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:49:06' and `end` < '2025-02-20 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-02-20 09:49:18] Production.INFO: count ==1796 [2025-02-20 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:49:06 - End Time 2025-02-20 09:49:06 [2025-02-20 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516925', 'tblTempUsageDetail_20' ) start [2025-02-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516925', 'tblTempUsageDetail_20' ) end [2025-02-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516925', 'tblTempVendorCDR_20' ) start [2025-02-20 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516925', 'tblTempVendorCDR_20' ) end [2025-02-20 09:49:19] Production.INFO: ProcessCDR(1,14516925,1,1,2) [2025-02-20 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516925', 'tblTempUsageDetail_20' ) start [2025-02-20 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516925', 'tblTempUsageDetail_20' ) end [2025-02-20 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:49:24] Production.INFO: ==29030== Releasing lock... [2025-02-20 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:49:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-20 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:50:06 [end_date_ymd] => 2025-02-20 09:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:50:06' and `end` < '2025-02-20 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-02-20 09:50:18] Production.INFO: count ==1824 [2025-02-20 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-20 06:50:06 - End Time 2025-02-20 09:50:06 [2025-02-20 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516931', 'tblTempUsageDetail_20' ) start [2025-02-20 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516931', 'tblTempUsageDetail_20' ) end [2025-02-20 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516931', 'tblTempVendorCDR_20' ) start [2025-02-20 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516931', 'tblTempVendorCDR_20' ) end [2025-02-20 09:50:20] Production.INFO: ProcessCDR(1,14516931,1,1,2) [2025-02-20 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516931', 'tblTempUsageDetail_20' ) start [2025-02-20 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516931', 'tblTempUsageDetail_20' ) end [2025-02-20 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:50:26] Production.INFO: ==29112== Releasing lock... [2025-02-20 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:50:26] Production.INFO: 42 MB #Memory Used# [2025-02-20 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:51:05 [end_date_ymd] => 2025-02-20 09:51:05 [RateCDR] => 1 ) [2025-02-20 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:51:05' and `end` < '2025-02-20 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:51:18] Production.INFO: count ==1903 [2025-02-20 09:51:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:51:05 - End Time 2025-02-20 09:51:05 [2025-02-20 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516934', 'tblTempUsageDetail_20' ) start [2025-02-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516934', 'tblTempUsageDetail_20' ) end [2025-02-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516934', 'tblTempVendorCDR_20' ) start [2025-02-20 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516934', 'tblTempVendorCDR_20' ) end [2025-02-20 09:51:19] Production.INFO: ProcessCDR(1,14516934,1,1,2) [2025-02-20 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516934', 'tblTempUsageDetail_20' ) start [2025-02-20 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516934', 'tblTempUsageDetail_20' ) end [2025-02-20 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:51:24] Production.INFO: ==29195== Releasing lock... [2025-02-20 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:51:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-20 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:52:05 [end_date_ymd] => 2025-02-20 09:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:52:05' and `end` < '2025-02-20 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-02-20 09:52:18] Production.INFO: count ==1930 [2025-02-20 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:52:05 - End Time 2025-02-20 09:52:05 [2025-02-20 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516941', 'tblTempUsageDetail_20' ) start [2025-02-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516941', 'tblTempUsageDetail_20' ) end [2025-02-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516941', 'tblTempVendorCDR_20' ) start [2025-02-20 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516941', 'tblTempVendorCDR_20' ) end [2025-02-20 09:52:19] Production.INFO: ProcessCDR(1,14516941,1,1,2) [2025-02-20 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516941', 'tblTempUsageDetail_20' ) start [2025-02-20 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516941', 'tblTempUsageDetail_20' ) end [2025-02-20 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:52:24] Production.INFO: ==29279== Releasing lock... [2025-02-20 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:52:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-20 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:53:05 [end_date_ymd] => 2025-02-20 09:53:05 [RateCDR] => 1 ) [2025-02-20 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:53:05' and `end` < '2025-02-20 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:53:17] Production.INFO: count ==1963 [2025-02-20 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:53:05 - End Time 2025-02-20 09:53:05 [2025-02-20 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516946', 'tblTempUsageDetail_20' ) start [2025-02-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516946', 'tblTempUsageDetail_20' ) end [2025-02-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516946', 'tblTempVendorCDR_20' ) start [2025-02-20 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516946', 'tblTempVendorCDR_20' ) end [2025-02-20 09:53:18] Production.INFO: ProcessCDR(1,14516946,1,1,2) [2025-02-20 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516946', 'tblTempUsageDetail_20' ) start [2025-02-20 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516946', 'tblTempUsageDetail_20' ) end [2025-02-20 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:53:23] Production.INFO: ==29364== Releasing lock... [2025-02-20 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:53:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-20 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:54:06 [end_date_ymd] => 2025-02-20 09:54:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:54:06' and `end` < '2025-02-20 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-02-20 09:54:18] Production.INFO: count ==1978 [2025-02-20 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:54:06 - End Time 2025-02-20 09:54:06 [2025-02-20 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516951', 'tblTempUsageDetail_20' ) start [2025-02-20 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516951', 'tblTempUsageDetail_20' ) end [2025-02-20 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516951', 'tblTempVendorCDR_20' ) start [2025-02-20 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516951', 'tblTempVendorCDR_20' ) end [2025-02-20 09:54:19] Production.INFO: ProcessCDR(1,14516951,1,1,2) [2025-02-20 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516951', 'tblTempUsageDetail_20' ) start [2025-02-20 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516951', 'tblTempUsageDetail_20' ) end [2025-02-20 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:54:24] Production.INFO: ==29442== Releasing lock... [2025-02-20 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:54:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-20 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:55:05 [end_date_ymd] => 2025-02-20 09:55:05 [RateCDR] => 1 ) [2025-02-20 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 06:55:05' and `end` < '2025-02-20 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 09:55:18] Production.INFO: count ==1990 [2025-02-20 09:55:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:55:05 - End Time 2025-02-20 09:55:05 [2025-02-20 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516956', 'tblTempUsageDetail_20' ) start [2025-02-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516956', 'tblTempUsageDetail_20' ) end [2025-02-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516956', 'tblTempVendorCDR_20' ) start [2025-02-20 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516956', 'tblTempVendorCDR_20' ) end [2025-02-20 09:55:18] Production.INFO: ProcessCDR(1,14516956,1,1,2) [2025-02-20 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516956', 'tblTempUsageDetail_20' ) start [2025-02-20 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516956', 'tblTempUsageDetail_20' ) end [2025-02-20 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:55:24] Production.INFO: ==29523== Releasing lock... [2025-02-20 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:55:24] Production.INFO: 43 MB #Memory Used# [2025-02-20 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:56:06 [end_date_ymd] => 2025-02-20 09:56:06 [RateCDR] => 1 ) [2025-02-20 09: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-02-20 06:56:06' and `end` < '2025-02-20 09: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-02-20 09:56:18] Production.INFO: count ==2000 [2025-02-20 09:56:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:56:06 - End Time 2025-02-20 09:56:06 [2025-02-20 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516961', 'tblTempUsageDetail_20' ) start [2025-02-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516961', 'tblTempUsageDetail_20' ) end [2025-02-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516961', 'tblTempVendorCDR_20' ) start [2025-02-20 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516961', 'tblTempVendorCDR_20' ) end [2025-02-20 09:56:19] Production.INFO: ProcessCDR(1,14516961,1,1,2) [2025-02-20 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516961', 'tblTempUsageDetail_20' ) start [2025-02-20 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516961', 'tblTempUsageDetail_20' ) end [2025-02-20 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:56:25] Production.INFO: ==29646== Releasing lock... [2025-02-20 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:56:25] Production.INFO: 43 MB #Memory Used# [2025-02-20 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:57:06 [end_date_ymd] => 2025-02-20 09:57:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:57:06' and `end` < '2025-02-20 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-02-20 09:57:18] Production.INFO: count ==2008 [2025-02-20 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:57:06 - End Time 2025-02-20 09:57:06 [2025-02-20 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516966', 'tblTempUsageDetail_20' ) start [2025-02-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516966', 'tblTempUsageDetail_20' ) end [2025-02-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516966', 'tblTempVendorCDR_20' ) start [2025-02-20 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516966', 'tblTempVendorCDR_20' ) end [2025-02-20 09:57:19] Production.INFO: ProcessCDR(1,14516966,1,1,2) [2025-02-20 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516966', 'tblTempUsageDetail_20' ) start [2025-02-20 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516966', 'tblTempUsageDetail_20' ) end [2025-02-20 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:57:25] Production.INFO: ==29730== Releasing lock... [2025-02-20 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:57:25] Production.INFO: 43 MB #Memory Used# [2025-02-20 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:58:05 [end_date_ymd] => 2025-02-20 09:58:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:58:05' and `end` < '2025-02-20 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-02-20 09:58:17] Production.INFO: count ==2017 [2025-02-20 09:58:18] Production.ERROR: pbx CDR StartTime 2025-02-20 06:58:05 - End Time 2025-02-20 09:58:05 [2025-02-20 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516971', 'tblTempUsageDetail_20' ) start [2025-02-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516971', 'tblTempUsageDetail_20' ) end [2025-02-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516971', 'tblTempVendorCDR_20' ) start [2025-02-20 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516971', 'tblTempVendorCDR_20' ) end [2025-02-20 09:58:18] Production.INFO: ProcessCDR(1,14516971,1,1,2) [2025-02-20 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516971', 'tblTempUsageDetail_20' ) start [2025-02-20 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516971', 'tblTempUsageDetail_20' ) end [2025-02-20 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:58:24] Production.INFO: ==29809== Releasing lock... [2025-02-20 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:58:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-20 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 06:59:06 [end_date_ymd] => 2025-02-20 09:59:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 06:59:06' and `end` < '2025-02-20 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-02-20 09:59:18] Production.INFO: count ==2020 [2025-02-20 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-20 06:59:06 - End Time 2025-02-20 09:59:06 [2025-02-20 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516976', 'tblTempUsageDetail_20' ) start [2025-02-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516976', 'tblTempUsageDetail_20' ) end [2025-02-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516976', 'tblTempVendorCDR_20' ) start [2025-02-20 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516976', 'tblTempVendorCDR_20' ) end [2025-02-20 09:59:19] Production.INFO: ProcessCDR(1,14516976,1,1,2) [2025-02-20 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516976', 'tblTempUsageDetail_20' ) start [2025-02-20 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516976', 'tblTempUsageDetail_20' ) end [2025-02-20 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 09:59:24] Production.INFO: ==29888== Releasing lock... [2025-02-20 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 09:59:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-20 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:00:06 [end_date_ymd] => 2025-02-20 10:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:00:06' and `end` < '2025-02-20 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-02-20 10:00:19] Production.INFO: count ==2031 [2025-02-20 10:00:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:00:06 - End Time 2025-02-20 10:00:06 [2025-02-20 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516982', 'tblTempUsageDetail_20' ) start [2025-02-20 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516982', 'tblTempUsageDetail_20' ) end [2025-02-20 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516982', 'tblTempVendorCDR_20' ) start [2025-02-20 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516982', 'tblTempVendorCDR_20' ) end [2025-02-20 10:00:20] Production.INFO: ProcessCDR(1,14516982,1,1,2) [2025-02-20 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516982', 'tblTempUsageDetail_20' ) start [2025-02-20 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516982', 'tblTempUsageDetail_20' ) end [2025-02-20 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:00:25] Production.INFO: ==29971== Releasing lock... [2025-02-20 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:00:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-20 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:01:06 [end_date_ymd] => 2025-02-20 10:01:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:01:06' and `end` < '2025-02-20 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-02-20 10:01:18] Production.INFO: count ==2101 [2025-02-20 10:01:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:01:06 - End Time 2025-02-20 10:01:06 [2025-02-20 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516987', 'tblTempUsageDetail_20' ) start [2025-02-20 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516987', 'tblTempUsageDetail_20' ) end [2025-02-20 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516987', 'tblTempVendorCDR_20' ) start [2025-02-20 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516987', 'tblTempVendorCDR_20' ) end [2025-02-20 10:01:19] Production.INFO: ProcessCDR(1,14516987,1,1,2) [2025-02-20 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516987', 'tblTempUsageDetail_20' ) start [2025-02-20 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516987', 'tblTempUsageDetail_20' ) end [2025-02-20 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:01:24] Production.INFO: ==30064== Releasing lock... [2025-02-20 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:01:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:02:06 [end_date_ymd] => 2025-02-20 10:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:02:06' and `end` < '2025-02-20 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-02-20 10:02:18] Production.INFO: count ==2113 [2025-02-20 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:02:06 - End Time 2025-02-20 10:02:06 [2025-02-20 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516992', 'tblTempUsageDetail_20' ) start [2025-02-20 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516992', 'tblTempUsageDetail_20' ) end [2025-02-20 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516992', 'tblTempVendorCDR_20' ) start [2025-02-20 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516992', 'tblTempVendorCDR_20' ) end [2025-02-20 10:02:19] Production.INFO: ProcessCDR(1,14516992,1,1,2) [2025-02-20 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516992', 'tblTempUsageDetail_20' ) start [2025-02-20 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516992', 'tblTempUsageDetail_20' ) end [2025-02-20 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:02:24] Production.INFO: ==30141== Releasing lock... [2025-02-20 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:02:24] Production.INFO: 44 MB #Memory Used# [2025-02-20 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:03:06 [end_date_ymd] => 2025-02-20 10:03:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:03:06' and `end` < '2025-02-20 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-02-20 10:03:18] Production.INFO: count ==2113 [2025-02-20 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:03:06 - End Time 2025-02-20 10:03:06 [2025-02-20 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516997', 'tblTempUsageDetail_20' ) start [2025-02-20 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14516997', 'tblTempUsageDetail_20' ) end [2025-02-20 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516997', 'tblTempVendorCDR_20' ) start [2025-02-20 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14516997', 'tblTempVendorCDR_20' ) end [2025-02-20 10:03:19] Production.INFO: ProcessCDR(1,14516997,1,1,2) [2025-02-20 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14516997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14516997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14516997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14516997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516997', 'tblTempUsageDetail_20' ) start [2025-02-20 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14516997', 'tblTempUsageDetail_20' ) end [2025-02-20 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:03:24] Production.INFO: ==30224== Releasing lock... [2025-02-20 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:03:24] Production.INFO: 44 MB #Memory Used# [2025-02-20 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:04:05 [end_date_ymd] => 2025-02-20 10:04:05 [RateCDR] => 1 ) [2025-02-20 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:04:05' and `end` < '2025-02-20 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:04:17] Production.INFO: count ==2135 [2025-02-20 10:04:18] Production.ERROR: pbx CDR StartTime 2025-02-20 07:04:05 - End Time 2025-02-20 10:04:05 [2025-02-20 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517002', 'tblTempUsageDetail_20' ) start [2025-02-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517002', 'tblTempUsageDetail_20' ) end [2025-02-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517002', 'tblTempVendorCDR_20' ) start [2025-02-20 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517002', 'tblTempVendorCDR_20' ) end [2025-02-20 10:04:18] Production.INFO: ProcessCDR(1,14517002,1,1,2) [2025-02-20 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517002', 'tblTempUsageDetail_20' ) start [2025-02-20 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517002', 'tblTempUsageDetail_20' ) end [2025-02-20 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:04:24] Production.INFO: ==30302== Releasing lock... [2025-02-20 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:04:24] Production.INFO: 44 MB #Memory Used# [2025-02-20 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:05:05 [end_date_ymd] => 2025-02-20 10:05:05 [RateCDR] => 1 ) [2025-02-20 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:05:05' and `end` < '2025-02-20 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:05:17] Production.INFO: count ==2142 [2025-02-20 10:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 07:05:05 - End Time 2025-02-20 10:05:05 [2025-02-20 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517007', 'tblTempUsageDetail_20' ) start [2025-02-20 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517007', 'tblTempUsageDetail_20' ) end [2025-02-20 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517007', 'tblTempVendorCDR_20' ) start [2025-02-20 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517007', 'tblTempVendorCDR_20' ) end [2025-02-20 10:05:19] Production.INFO: ProcessCDR(1,14517007,1,1,2) [2025-02-20 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517007', 'tblTempUsageDetail_20' ) start [2025-02-20 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517007', 'tblTempUsageDetail_20' ) end [2025-02-20 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:05:24] Production.INFO: ==30379== Releasing lock... [2025-02-20 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:05:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-20 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:06:06 [end_date_ymd] => 2025-02-20 10:06:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:06:06' and `end` < '2025-02-20 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-02-20 10:06:18] Production.INFO: count ==2150 [2025-02-20 10:06:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:06:06 - End Time 2025-02-20 10:06:06 [2025-02-20 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517012', 'tblTempUsageDetail_20' ) start [2025-02-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517012', 'tblTempUsageDetail_20' ) end [2025-02-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517012', 'tblTempVendorCDR_20' ) start [2025-02-20 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517012', 'tblTempVendorCDR_20' ) end [2025-02-20 10:06:19] Production.INFO: ProcessCDR(1,14517012,1,1,2) [2025-02-20 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517012', 'tblTempUsageDetail_20' ) start [2025-02-20 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517012', 'tblTempUsageDetail_20' ) end [2025-02-20 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:06:24] Production.INFO: ==30453== Releasing lock... [2025-02-20 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:06:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:07:06 [end_date_ymd] => 2025-02-20 10:07:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:07:06' and `end` < '2025-02-20 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-02-20 10:07:18] Production.INFO: count ==2157 [2025-02-20 10:07:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:07:06 - End Time 2025-02-20 10:07:06 [2025-02-20 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517017', 'tblTempUsageDetail_20' ) start [2025-02-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517017', 'tblTempUsageDetail_20' ) end [2025-02-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517017', 'tblTempVendorCDR_20' ) start [2025-02-20 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517017', 'tblTempVendorCDR_20' ) end [2025-02-20 10:07:19] Production.INFO: ProcessCDR(1,14517017,1,1,2) [2025-02-20 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517017', 'tblTempUsageDetail_20' ) start [2025-02-20 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517017', 'tblTempUsageDetail_20' ) end [2025-02-20 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:07:24] Production.INFO: ==30527== Releasing lock... [2025-02-20 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:07:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:08:06 [end_date_ymd] => 2025-02-20 10:08:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:08:06' and `end` < '2025-02-20 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-02-20 10:08:18] Production.INFO: count ==2187 [2025-02-20 10:08:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:08:06 - End Time 2025-02-20 10:08:06 [2025-02-20 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517022', 'tblTempUsageDetail_20' ) start [2025-02-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517022', 'tblTempUsageDetail_20' ) end [2025-02-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517022', 'tblTempVendorCDR_20' ) start [2025-02-20 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517022', 'tblTempVendorCDR_20' ) end [2025-02-20 10:08:19] Production.INFO: ProcessCDR(1,14517022,1,1,2) [2025-02-20 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517022', 'tblTempUsageDetail_20' ) start [2025-02-20 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517022', 'tblTempUsageDetail_20' ) end [2025-02-20 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:08:23] Production.INFO: ==30611== Releasing lock... [2025-02-20 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:08:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-20 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:09:06 [end_date_ymd] => 2025-02-20 10:09:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:09:06' and `end` < '2025-02-20 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-02-20 10:09:18] Production.INFO: count ==2211 [2025-02-20 10:09:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:09:06 - End Time 2025-02-20 10:09:06 [2025-02-20 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517027', 'tblTempUsageDetail_20' ) start [2025-02-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517027', 'tblTempUsageDetail_20' ) end [2025-02-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517027', 'tblTempVendorCDR_20' ) start [2025-02-20 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517027', 'tblTempVendorCDR_20' ) end [2025-02-20 10:09:19] Production.INFO: ProcessCDR(1,14517027,1,1,2) [2025-02-20 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517027', 'tblTempUsageDetail_20' ) start [2025-02-20 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517027', 'tblTempUsageDetail_20' ) end [2025-02-20 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:09:24] Production.INFO: ==30694== Releasing lock... [2025-02-20 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:09:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-20 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:10:06 [end_date_ymd] => 2025-02-20 10:10:06 [RateCDR] => 1 ) [2025-02-20 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:10:06' and `end` < '2025-02-20 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:10:18] Production.INFO: count ==2228 [2025-02-20 10:10:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:10:06 - End Time 2025-02-20 10:10:06 [2025-02-20 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517033', 'tblTempUsageDetail_20' ) start [2025-02-20 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517033', 'tblTempUsageDetail_20' ) end [2025-02-20 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517033', 'tblTempVendorCDR_20' ) start [2025-02-20 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517033', 'tblTempVendorCDR_20' ) end [2025-02-20 10:10:19] Production.INFO: ProcessCDR(1,14517033,1,1,2) [2025-02-20 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517033', 'tblTempUsageDetail_20' ) start [2025-02-20 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517033', 'tblTempUsageDetail_20' ) end [2025-02-20 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:10:25] Production.INFO: ==30769== Releasing lock... [2025-02-20 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:10:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-20 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:11:06 [end_date_ymd] => 2025-02-20 10:11:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:11:06' and `end` < '2025-02-20 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-02-20 10:11:18] Production.INFO: count ==2306 [2025-02-20 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:11:06 - End Time 2025-02-20 10:11:06 [2025-02-20 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517038', 'tblTempUsageDetail_20' ) start [2025-02-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517038', 'tblTempUsageDetail_20' ) end [2025-02-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517038', 'tblTempVendorCDR_20' ) start [2025-02-20 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517038', 'tblTempVendorCDR_20' ) end [2025-02-20 10:11:19] Production.INFO: ProcessCDR(1,14517038,1,1,2) [2025-02-20 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517038', 'tblTempUsageDetail_20' ) start [2025-02-20 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517038', 'tblTempUsageDetail_20' ) end [2025-02-20 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:11:25] Production.INFO: ==30848== Releasing lock... [2025-02-20 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:11:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-20 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:12:05 [end_date_ymd] => 2025-02-20 10:12:05 [RateCDR] => 1 ) [2025-02-20 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:12:05' and `end` < '2025-02-20 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:12:17] Production.INFO: count ==2313 [2025-02-20 10:12:18] Production.ERROR: pbx CDR StartTime 2025-02-20 07:12:05 - End Time 2025-02-20 10:12:05 [2025-02-20 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517043', 'tblTempUsageDetail_20' ) start [2025-02-20 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517043', 'tblTempUsageDetail_20' ) end [2025-02-20 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517043', 'tblTempVendorCDR_20' ) start [2025-02-20 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517043', 'tblTempVendorCDR_20' ) end [2025-02-20 10:12:19] Production.INFO: ProcessCDR(1,14517043,1,1,2) [2025-02-20 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517043', 'tblTempUsageDetail_20' ) start [2025-02-20 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517043', 'tblTempUsageDetail_20' ) end [2025-02-20 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:12:24] Production.INFO: ==30983== Releasing lock... [2025-02-20 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:12:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:13:06 [end_date_ymd] => 2025-02-20 10:13:06 [RateCDR] => 1 ) [2025-02-20 10:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:13:06' and `end` < '2025-02-20 10:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:13:18] Production.INFO: count ==2315 [2025-02-20 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:13:06 - End Time 2025-02-20 10:13:06 [2025-02-20 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517048', 'tblTempUsageDetail_20' ) start [2025-02-20 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517048', 'tblTempUsageDetail_20' ) end [2025-02-20 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517048', 'tblTempVendorCDR_20' ) start [2025-02-20 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517048', 'tblTempVendorCDR_20' ) end [2025-02-20 10:13:20] Production.INFO: ProcessCDR(1,14517048,1,1,2) [2025-02-20 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517048', 'tblTempUsageDetail_20' ) start [2025-02-20 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517048', 'tblTempUsageDetail_20' ) end [2025-02-20 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:13:23] Production.INFO: ==31060== Releasing lock... [2025-02-20 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:13:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:14:06 [end_date_ymd] => 2025-02-20 10:14:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:14:06' and `end` < '2025-02-20 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-02-20 10:14:18] Production.INFO: count ==2327 [2025-02-20 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:14:06 - End Time 2025-02-20 10:14:06 [2025-02-20 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517053', 'tblTempUsageDetail_20' ) start [2025-02-20 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517053', 'tblTempUsageDetail_20' ) end [2025-02-20 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517053', 'tblTempVendorCDR_20' ) start [2025-02-20 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517053', 'tblTempVendorCDR_20' ) end [2025-02-20 10:14:19] Production.INFO: ProcessCDR(1,14517053,1,1,2) [2025-02-20 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517053', 'tblTempUsageDetail_20' ) start [2025-02-20 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517053', 'tblTempUsageDetail_20' ) end [2025-02-20 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:14:24] Production.INFO: ==31130== Releasing lock... [2025-02-20 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:14:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:15:05 [end_date_ymd] => 2025-02-20 10:15:05 [RateCDR] => 1 ) [2025-02-20 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:15:05' and `end` < '2025-02-20 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:15:18] Production.INFO: count ==2337 [2025-02-20 10:15:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:15:05 - End Time 2025-02-20 10:15:05 [2025-02-20 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517058', 'tblTempUsageDetail_20' ) start [2025-02-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517058', 'tblTempUsageDetail_20' ) end [2025-02-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517058', 'tblTempVendorCDR_20' ) start [2025-02-20 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517058', 'tblTempVendorCDR_20' ) end [2025-02-20 10:15:19] Production.INFO: ProcessCDR(1,14517058,1,1,2) [2025-02-20 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517058', 'tblTempUsageDetail_20' ) start [2025-02-20 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517058', 'tblTempUsageDetail_20' ) end [2025-02-20 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:15:24] Production.INFO: ==31205== Releasing lock... [2025-02-20 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:15:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:16:06 [end_date_ymd] => 2025-02-20 10:16:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:16:06' and `end` < '2025-02-20 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-02-20 10:16:18] Production.INFO: count ==2366 [2025-02-20 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:16:06 - End Time 2025-02-20 10:16:06 [2025-02-20 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517063', 'tblTempUsageDetail_20' ) start [2025-02-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517063', 'tblTempUsageDetail_20' ) end [2025-02-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517063', 'tblTempVendorCDR_20' ) start [2025-02-20 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517063', 'tblTempVendorCDR_20' ) end [2025-02-20 10:16:19] Production.INFO: ProcessCDR(1,14517063,1,1,2) [2025-02-20 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517063', 'tblTempUsageDetail_20' ) start [2025-02-20 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517063', 'tblTempUsageDetail_20' ) end [2025-02-20 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:16:25] Production.INFO: ==31280== Releasing lock... [2025-02-20 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:16:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:17:05 [end_date_ymd] => 2025-02-20 10:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:17:05' and `end` < '2025-02-20 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-02-20 10:17:17] Production.INFO: count ==2392 [2025-02-20 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:17:05 - End Time 2025-02-20 10:17:05 [2025-02-20 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517068', 'tblTempUsageDetail_20' ) start [2025-02-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517068', 'tblTempUsageDetail_20' ) end [2025-02-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517068', 'tblTempVendorCDR_20' ) start [2025-02-20 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517068', 'tblTempVendorCDR_20' ) end [2025-02-20 10:17:19] Production.INFO: ProcessCDR(1,14517068,1,1,2) [2025-02-20 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517068', 'tblTempUsageDetail_20' ) start [2025-02-20 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517068', 'tblTempUsageDetail_20' ) end [2025-02-20 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:17:24] Production.INFO: ==31355== Releasing lock... [2025-02-20 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:17:24] Production.INFO: 46 MB #Memory Used# [2025-02-20 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:18:06 [end_date_ymd] => 2025-02-20 10:18:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:18:06' and `end` < '2025-02-20 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-02-20 10:18:18] Production.INFO: count ==2421 [2025-02-20 10:18:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:18:06 - End Time 2025-02-20 10:18:06 [2025-02-20 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517073', 'tblTempUsageDetail_20' ) start [2025-02-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517073', 'tblTempUsageDetail_20' ) end [2025-02-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517073', 'tblTempVendorCDR_20' ) start [2025-02-20 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517073', 'tblTempVendorCDR_20' ) end [2025-02-20 10:18:19] Production.INFO: ProcessCDR(1,14517073,1,1,2) [2025-02-20 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517073', 'tblTempUsageDetail_20' ) start [2025-02-20 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517073', 'tblTempUsageDetail_20' ) end [2025-02-20 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:18:25] Production.INFO: ==31430== Releasing lock... [2025-02-20 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:18:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:19:06 [end_date_ymd] => 2025-02-20 10:19:06 [RateCDR] => 1 ) [2025-02-20 10: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-02-20 07:19:06' and `end` < '2025-02-20 10: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-02-20 10:19:18] Production.INFO: count ==2431 [2025-02-20 10:19:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:19:06 - End Time 2025-02-20 10:19:06 [2025-02-20 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517078', 'tblTempUsageDetail_20' ) start [2025-02-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517078', 'tblTempUsageDetail_20' ) end [2025-02-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517078', 'tblTempVendorCDR_20' ) start [2025-02-20 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517078', 'tblTempVendorCDR_20' ) end [2025-02-20 10:19:19] Production.INFO: ProcessCDR(1,14517078,1,1,2) [2025-02-20 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517078', 'tblTempUsageDetail_20' ) start [2025-02-20 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517078', 'tblTempUsageDetail_20' ) end [2025-02-20 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:19:24] Production.INFO: ==31505== Releasing lock... [2025-02-20 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:19:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:20:06 [end_date_ymd] => 2025-02-20 10:20:06 [RateCDR] => 1 ) [2025-02-20 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:20:06' and `end` < '2025-02-20 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:20:19] Production.INFO: count ==2448 [2025-02-20 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:20:06 - End Time 2025-02-20 10:20:06 [2025-02-20 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517084', 'tblTempUsageDetail_20' ) start [2025-02-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517084', 'tblTempUsageDetail_20' ) end [2025-02-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517084', 'tblTempVendorCDR_20' ) start [2025-02-20 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517084', 'tblTempVendorCDR_20' ) end [2025-02-20 10:20:20] Production.INFO: ProcessCDR(1,14517084,1,1,2) [2025-02-20 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517084', 'tblTempUsageDetail_20' ) start [2025-02-20 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517084', 'tblTempUsageDetail_20' ) end [2025-02-20 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:20:25] Production.INFO: ==31578== Releasing lock... [2025-02-20 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:20:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-20 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:21:06 [end_date_ymd] => 2025-02-20 10:21:06 [RateCDR] => 1 ) [2025-02-20 10: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-02-20 07:21:06' and `end` < '2025-02-20 10: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-02-20 10:21:18] Production.INFO: count ==2522 [2025-02-20 10:21:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:21:06 - End Time 2025-02-20 10:21:06 [2025-02-20 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517089', 'tblTempUsageDetail_20' ) start [2025-02-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517089', 'tblTempUsageDetail_20' ) end [2025-02-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517089', 'tblTempVendorCDR_20' ) start [2025-02-20 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517089', 'tblTempVendorCDR_20' ) end [2025-02-20 10:21:19] Production.INFO: ProcessCDR(1,14517089,1,1,2) [2025-02-20 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517089', 'tblTempUsageDetail_20' ) start [2025-02-20 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517089', 'tblTempUsageDetail_20' ) end [2025-02-20 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:21:25] Production.INFO: ==31655== Releasing lock... [2025-02-20 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:21:25] Production.INFO: 47 MB #Memory Used# [2025-02-20 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:22:06 [end_date_ymd] => 2025-02-20 10:22:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:22:06' and `end` < '2025-02-20 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-02-20 10:22:18] Production.INFO: count ==2553 [2025-02-20 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:22:06 - End Time 2025-02-20 10:22:06 [2025-02-20 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517094', 'tblTempUsageDetail_20' ) start [2025-02-20 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517094', 'tblTempUsageDetail_20' ) end [2025-02-20 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517094', 'tblTempVendorCDR_20' ) start [2025-02-20 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517094', 'tblTempVendorCDR_20' ) end [2025-02-20 10:22:20] Production.INFO: ProcessCDR(1,14517094,1,1,2) [2025-02-20 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517094', 'tblTempUsageDetail_20' ) start [2025-02-20 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517094', 'tblTempUsageDetail_20' ) end [2025-02-20 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:22:25] Production.INFO: ==31736== Releasing lock... [2025-02-20 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:22:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-20 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:23:05 [end_date_ymd] => 2025-02-20 10:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:23:05' and `end` < '2025-02-20 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-02-20 10:23:17] Production.INFO: count ==2562 [2025-02-20 10:23:18] Production.ERROR: pbx CDR StartTime 2025-02-20 07:23:05 - End Time 2025-02-20 10:23:05 [2025-02-20 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517099', 'tblTempUsageDetail_20' ) start [2025-02-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517099', 'tblTempUsageDetail_20' ) end [2025-02-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517099', 'tblTempVendorCDR_20' ) start [2025-02-20 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517099', 'tblTempVendorCDR_20' ) end [2025-02-20 10:23:18] Production.INFO: ProcessCDR(1,14517099,1,1,2) [2025-02-20 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517099', 'tblTempUsageDetail_20' ) start [2025-02-20 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517099', 'tblTempUsageDetail_20' ) end [2025-02-20 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:23:24] Production.INFO: ==31812== Releasing lock... [2025-02-20 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:23:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-20 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:24:06 [end_date_ymd] => 2025-02-20 10:24:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:24:06' and `end` < '2025-02-20 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-02-20 10:24:18] Production.INFO: count ==2569 [2025-02-20 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:24:06 - End Time 2025-02-20 10:24:06 [2025-02-20 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517104', 'tblTempUsageDetail_20' ) start [2025-02-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517104', 'tblTempUsageDetail_20' ) end [2025-02-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517104', 'tblTempVendorCDR_20' ) start [2025-02-20 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517104', 'tblTempVendorCDR_20' ) end [2025-02-20 10:24:19] Production.INFO: ProcessCDR(1,14517104,1,1,2) [2025-02-20 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517104', 'tblTempUsageDetail_20' ) start [2025-02-20 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517104', 'tblTempUsageDetail_20' ) end [2025-02-20 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:24:25] Production.INFO: ==31884== Releasing lock... [2025-02-20 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:24:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:25:05 [end_date_ymd] => 2025-02-20 10:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:25:05' and `end` < '2025-02-20 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-02-20 10:25:17] Production.INFO: count ==2585 [2025-02-20 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-20 07:25:05 - End Time 2025-02-20 10:25:05 [2025-02-20 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517109', 'tblTempUsageDetail_20' ) start [2025-02-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517109', 'tblTempUsageDetail_20' ) end [2025-02-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517109', 'tblTempVendorCDR_20' ) start [2025-02-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517109', 'tblTempVendorCDR_20' ) end [2025-02-20 10:25:19] Production.INFO: ProcessCDR(1,14517109,1,1,2) [2025-02-20 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517109', 'tblTempUsageDetail_20' ) start [2025-02-20 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517109', 'tblTempUsageDetail_20' ) end [2025-02-20 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:25:24] Production.INFO: ==31957== Releasing lock... [2025-02-20 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:25:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:26:06 [end_date_ymd] => 2025-02-20 10:26:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:26:06' and `end` < '2025-02-20 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-02-20 10:26:18] Production.INFO: count ==2595 [2025-02-20 10:26:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:26:06 - End Time 2025-02-20 10:26:06 [2025-02-20 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517114', 'tblTempUsageDetail_20' ) start [2025-02-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517114', 'tblTempUsageDetail_20' ) end [2025-02-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517114', 'tblTempVendorCDR_20' ) start [2025-02-20 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517114', 'tblTempVendorCDR_20' ) end [2025-02-20 10:26:19] Production.INFO: ProcessCDR(1,14517114,1,1,2) [2025-02-20 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517114', 'tblTempUsageDetail_20' ) start [2025-02-20 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517114', 'tblTempUsageDetail_20' ) end [2025-02-20 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:26:24] Production.INFO: ==32031== Releasing lock... [2025-02-20 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:26:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:27:05 [end_date_ymd] => 2025-02-20 10:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:27:05' and `end` < '2025-02-20 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-02-20 10:27:17] Production.INFO: count ==2603 [2025-02-20 10:27:18] Production.ERROR: pbx CDR StartTime 2025-02-20 07:27:05 - End Time 2025-02-20 10:27:05 [2025-02-20 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517119', 'tblTempUsageDetail_20' ) start [2025-02-20 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517119', 'tblTempUsageDetail_20' ) end [2025-02-20 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517119', 'tblTempVendorCDR_20' ) start [2025-02-20 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517119', 'tblTempVendorCDR_20' ) end [2025-02-20 10:27:18] Production.INFO: ProcessCDR(1,14517119,1,1,2) [2025-02-20 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517119', 'tblTempUsageDetail_20' ) start [2025-02-20 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517119', 'tblTempUsageDetail_20' ) end [2025-02-20 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:27:23] Production.INFO: ==32143== Releasing lock... [2025-02-20 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:27:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:28:05 [end_date_ymd] => 2025-02-20 10:28:05 [RateCDR] => 1 ) [2025-02-20 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:28:05' and `end` < '2025-02-20 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:28:18] Production.INFO: count ==2619 [2025-02-20 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:28:05 - End Time 2025-02-20 10:28:05 [2025-02-20 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517124', 'tblTempUsageDetail_20' ) start [2025-02-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517124', 'tblTempUsageDetail_20' ) end [2025-02-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517124', 'tblTempVendorCDR_20' ) start [2025-02-20 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517124', 'tblTempVendorCDR_20' ) end [2025-02-20 10:28:19] Production.INFO: ProcessCDR(1,14517124,1,1,2) [2025-02-20 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517124', 'tblTempUsageDetail_20' ) start [2025-02-20 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517124', 'tblTempUsageDetail_20' ) end [2025-02-20 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:28:24] Production.INFO: ==32215== Releasing lock... [2025-02-20 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:28:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-20 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:29:06 [end_date_ymd] => 2025-02-20 10:29:06 [RateCDR] => 1 ) [2025-02-20 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:29:06' and `end` < '2025-02-20 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:29:18] Production.INFO: count ==2627 [2025-02-20 10:29:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:29:06 - End Time 2025-02-20 10:29:06 [2025-02-20 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517129', 'tblTempUsageDetail_20' ) start [2025-02-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517129', 'tblTempUsageDetail_20' ) end [2025-02-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517129', 'tblTempVendorCDR_20' ) start [2025-02-20 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517129', 'tblTempVendorCDR_20' ) end [2025-02-20 10:29:19] Production.INFO: ProcessCDR(1,14517129,1,1,2) [2025-02-20 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517129', 'tblTempUsageDetail_20' ) start [2025-02-20 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517129', 'tblTempUsageDetail_20' ) end [2025-02-20 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:29:25] Production.INFO: ==32289== Releasing lock... [2025-02-20 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:29:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-20 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:30:06 [end_date_ymd] => 2025-02-20 10:30:06 [RateCDR] => 1 ) [2025-02-20 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:30:06' and `end` < '2025-02-20 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:30:19] Production.INFO: count ==2663 [2025-02-20 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:30:06 - End Time 2025-02-20 10:30:06 [2025-02-20 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517135', 'tblTempUsageDetail_20' ) start [2025-02-20 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517135', 'tblTempUsageDetail_20' ) end [2025-02-20 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517135', 'tblTempVendorCDR_20' ) start [2025-02-20 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517135', 'tblTempVendorCDR_20' ) end [2025-02-20 10:30:20] Production.INFO: ProcessCDR(1,14517135,1,1,2) [2025-02-20 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517135', 'tblTempUsageDetail_20' ) start [2025-02-20 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517135', 'tblTempUsageDetail_20' ) end [2025-02-20 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:30:26] Production.INFO: ==32363== Releasing lock... [2025-02-20 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:30:26] Production.INFO: 48 MB #Memory Used# [2025-02-20 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:31:05 [end_date_ymd] => 2025-02-20 10:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:31:05' and `end` < '2025-02-20 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-02-20 10:31:18] Production.INFO: count ==2756 [2025-02-20 10:31:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:31:05 - End Time 2025-02-20 10:31:05 [2025-02-20 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517140', 'tblTempUsageDetail_20' ) start [2025-02-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517140', 'tblTempUsageDetail_20' ) end [2025-02-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517140', 'tblTempVendorCDR_20' ) start [2025-02-20 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517140', 'tblTempVendorCDR_20' ) end [2025-02-20 10:31:19] Production.INFO: ProcessCDR(1,14517140,1,1,2) [2025-02-20 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517140', 'tblTempUsageDetail_20' ) start [2025-02-20 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517140', 'tblTempUsageDetail_20' ) end [2025-02-20 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:31:24] Production.INFO: ==32438== Releasing lock... [2025-02-20 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:31:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-20 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:32:06 [end_date_ymd] => 2025-02-20 10:32:06 [RateCDR] => 1 ) [2025-02-20 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:32:06' and `end` < '2025-02-20 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:32:18] Production.INFO: count ==2765 [2025-02-20 10:32:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:32:06 - End Time 2025-02-20 10:32:06 [2025-02-20 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517145', 'tblTempUsageDetail_20' ) start [2025-02-20 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517145', 'tblTempUsageDetail_20' ) end [2025-02-20 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517145', 'tblTempVendorCDR_20' ) start [2025-02-20 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517145', 'tblTempVendorCDR_20' ) end [2025-02-20 10:32:20] Production.INFO: ProcessCDR(1,14517145,1,1,2) [2025-02-20 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517145', 'tblTempUsageDetail_20' ) start [2025-02-20 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517145', 'tblTempUsageDetail_20' ) end [2025-02-20 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:32:25] Production.INFO: ==32508== Releasing lock... [2025-02-20 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:32:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-20 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:33:05 [end_date_ymd] => 2025-02-20 10:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:33:05' and `end` < '2025-02-20 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-02-20 10:33:18] Production.INFO: count ==2793 [2025-02-20 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:33:05 - End Time 2025-02-20 10:33:05 [2025-02-20 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517150', 'tblTempUsageDetail_20' ) start [2025-02-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517150', 'tblTempUsageDetail_20' ) end [2025-02-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517150', 'tblTempVendorCDR_20' ) start [2025-02-20 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517150', 'tblTempVendorCDR_20' ) end [2025-02-20 10:33:19] Production.INFO: ProcessCDR(1,14517150,1,1,2) [2025-02-20 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517150', 'tblTempUsageDetail_20' ) start [2025-02-20 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517150', 'tblTempUsageDetail_20' ) end [2025-02-20 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:33:25] Production.INFO: ==32583== Releasing lock... [2025-02-20 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:33:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-20 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:34:05 [end_date_ymd] => 2025-02-20 10:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:34:05' and `end` < '2025-02-20 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-02-20 10:34:18] Production.INFO: count ==2815 [2025-02-20 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:34:05 - End Time 2025-02-20 10:34:05 [2025-02-20 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517155', 'tblTempUsageDetail_20' ) start [2025-02-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517155', 'tblTempUsageDetail_20' ) end [2025-02-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517155', 'tblTempVendorCDR_20' ) start [2025-02-20 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517155', 'tblTempVendorCDR_20' ) end [2025-02-20 10:34:19] Production.INFO: ProcessCDR(1,14517155,1,1,2) [2025-02-20 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517155', 'tblTempUsageDetail_20' ) start [2025-02-20 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517155', 'tblTempUsageDetail_20' ) end [2025-02-20 10:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:34:23] Production.INFO: ==32656== Releasing lock... [2025-02-20 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:34:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-20 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:35:05 [end_date_ymd] => 2025-02-20 10:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:35:05' and `end` < '2025-02-20 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-02-20 10:35:18] Production.INFO: count ==2845 [2025-02-20 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:35:05 - End Time 2025-02-20 10:35:05 [2025-02-20 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517160', 'tblTempUsageDetail_20' ) start [2025-02-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517160', 'tblTempUsageDetail_20' ) end [2025-02-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517160', 'tblTempVendorCDR_20' ) start [2025-02-20 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517160', 'tblTempVendorCDR_20' ) end [2025-02-20 10:35:19] Production.INFO: ProcessCDR(1,14517160,1,1,2) [2025-02-20 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517160', 'tblTempUsageDetail_20' ) start [2025-02-20 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517160', 'tblTempUsageDetail_20' ) end [2025-02-20 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:35:25] Production.INFO: ==32732== Releasing lock... [2025-02-20 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:35:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-20 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:36:06 [end_date_ymd] => 2025-02-20 10:36:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:36:06' and `end` < '2025-02-20 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-02-20 10:36:18] Production.INFO: count ==2877 [2025-02-20 10:36:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:36:06 - End Time 2025-02-20 10:36:06 [2025-02-20 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517165', 'tblTempUsageDetail_20' ) start [2025-02-20 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517165', 'tblTempUsageDetail_20' ) end [2025-02-20 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517165', 'tblTempVendorCDR_20' ) start [2025-02-20 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517165', 'tblTempVendorCDR_20' ) end [2025-02-20 10:36:20] Production.INFO: ProcessCDR(1,14517165,1,1,2) [2025-02-20 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517165', 'tblTempUsageDetail_20' ) start [2025-02-20 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517165', 'tblTempUsageDetail_20' ) end [2025-02-20 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:36:25] Production.INFO: ==357== Releasing lock... [2025-02-20 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:36:25] Production.INFO: 50 MB #Memory Used# [2025-02-20 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:37:05 [end_date_ymd] => 2025-02-20 10:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:37:05' and `end` < '2025-02-20 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-02-20 10:37:18] Production.INFO: count ==2893 [2025-02-20 10:37:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:37:05 - End Time 2025-02-20 10:37:05 [2025-02-20 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517170', 'tblTempUsageDetail_20' ) start [2025-02-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517170', 'tblTempUsageDetail_20' ) end [2025-02-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517170', 'tblTempVendorCDR_20' ) start [2025-02-20 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517170', 'tblTempVendorCDR_20' ) end [2025-02-20 10:37:19] Production.INFO: ProcessCDR(1,14517170,1,1,2) [2025-02-20 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517170', 'tblTempUsageDetail_20' ) start [2025-02-20 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517170', 'tblTempUsageDetail_20' ) end [2025-02-20 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:37:25] Production.INFO: ==426== Releasing lock... [2025-02-20 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:37:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-20 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:38:06 [end_date_ymd] => 2025-02-20 10:38:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:38:06' and `end` < '2025-02-20 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-02-20 10:38:18] Production.INFO: count ==2907 [2025-02-20 10:38:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:38:06 - End Time 2025-02-20 10:38:06 [2025-02-20 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517175', 'tblTempUsageDetail_20' ) start [2025-02-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517175', 'tblTempUsageDetail_20' ) end [2025-02-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517175', 'tblTempVendorCDR_20' ) start [2025-02-20 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517175', 'tblTempVendorCDR_20' ) end [2025-02-20 10:38:20] Production.INFO: ProcessCDR(1,14517175,1,1,2) [2025-02-20 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517175', 'tblTempUsageDetail_20' ) start [2025-02-20 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517175', 'tblTempUsageDetail_20' ) end [2025-02-20 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:38:25] Production.INFO: ==499== Releasing lock... [2025-02-20 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:38:25] Production.INFO: 50 MB #Memory Used# [2025-02-20 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:39:05 [end_date_ymd] => 2025-02-20 10:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:39:05' and `end` < '2025-02-20 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-02-20 10:39:18] Production.INFO: count ==2931 [2025-02-20 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:39:05 - End Time 2025-02-20 10:39:05 [2025-02-20 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517180', 'tblTempUsageDetail_20' ) start [2025-02-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517180', 'tblTempUsageDetail_20' ) end [2025-02-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517180', 'tblTempVendorCDR_20' ) start [2025-02-20 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517180', 'tblTempVendorCDR_20' ) end [2025-02-20 10:39:19] Production.INFO: ProcessCDR(1,14517180,1,1,2) [2025-02-20 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517180', 'tblTempUsageDetail_20' ) start [2025-02-20 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517180', 'tblTempUsageDetail_20' ) end [2025-02-20 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:39:25] Production.INFO: ==571== Releasing lock... [2025-02-20 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:39:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-20 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:40:07 [end_date_ymd] => 2025-02-20 10:40:07 [RateCDR] => 1 ) [2025-02-20 10: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-02-20 07:40:07' and `end` < '2025-02-20 10: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-02-20 10:40:19] Production.INFO: count ==2946 [2025-02-20 10:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 07:40:07 - End Time 2025-02-20 10:40:07 [2025-02-20 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517186', 'tblTempUsageDetail_20' ) start [2025-02-20 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517186', 'tblTempUsageDetail_20' ) end [2025-02-20 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517186', 'tblTempVendorCDR_20' ) start [2025-02-20 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517186', 'tblTempVendorCDR_20' ) end [2025-02-20 10:40:21] Production.INFO: ProcessCDR(1,14517186,1,1,2) [2025-02-20 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517186', 'tblTempUsageDetail_20' ) start [2025-02-20 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517186', 'tblTempUsageDetail_20' ) end [2025-02-20 10:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:40:25] Production.INFO: ==650== Releasing lock... [2025-02-20 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:40:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-20 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:41:05 [end_date_ymd] => 2025-02-20 10:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:41:05' and `end` < '2025-02-20 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-02-20 10:41:18] Production.INFO: count ==3058 [2025-02-20 10:41:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:41:05 - End Time 2025-02-20 10:41:05 [2025-02-20 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517191', 'tblTempUsageDetail_20' ) start [2025-02-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517191', 'tblTempUsageDetail_20' ) end [2025-02-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517191', 'tblTempVendorCDR_20' ) start [2025-02-20 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517191', 'tblTempVendorCDR_20' ) end [2025-02-20 10:41:19] Production.INFO: ProcessCDR(1,14517191,1,1,2) [2025-02-20 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517191', 'tblTempUsageDetail_20' ) start [2025-02-20 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517191', 'tblTempUsageDetail_20' ) end [2025-02-20 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:41:25] Production.INFO: ==754== Releasing lock... [2025-02-20 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:41:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-20 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:42:06 [end_date_ymd] => 2025-02-20 10:42:06 [RateCDR] => 1 ) [2025-02-20 10:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:42:06' and `end` < '2025-02-20 10:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:42:18] Production.INFO: count ==3075 [2025-02-20 10:42:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:42:06 - End Time 2025-02-20 10:42:06 [2025-02-20 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517196', 'tblTempUsageDetail_20' ) start [2025-02-20 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517196', 'tblTempUsageDetail_20' ) end [2025-02-20 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517196', 'tblTempVendorCDR_20' ) start [2025-02-20 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517196', 'tblTempVendorCDR_20' ) end [2025-02-20 10:42:20] Production.INFO: ProcessCDR(1,14517196,1,1,2) [2025-02-20 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517196', 'tblTempUsageDetail_20' ) start [2025-02-20 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517196', 'tblTempUsageDetail_20' ) end [2025-02-20 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:42:25] Production.INFO: ==831== Releasing lock... [2025-02-20 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:42:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-20 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:43:05 [end_date_ymd] => 2025-02-20 10:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:43:05' and `end` < '2025-02-20 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-02-20 10:43:18] Production.INFO: count ==3099 [2025-02-20 10:43:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:43:05 - End Time 2025-02-20 10:43:05 [2025-02-20 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517201', 'tblTempUsageDetail_20' ) start [2025-02-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517201', 'tblTempUsageDetail_20' ) end [2025-02-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517201', 'tblTempVendorCDR_20' ) start [2025-02-20 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517201', 'tblTempVendorCDR_20' ) end [2025-02-20 10:43:19] Production.INFO: ProcessCDR(1,14517201,1,1,2) [2025-02-20 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517201', 'tblTempUsageDetail_20' ) start [2025-02-20 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517201', 'tblTempUsageDetail_20' ) end [2025-02-20 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:43:25] Production.INFO: ==942== Releasing lock... [2025-02-20 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:43:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-20 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:44:06 [end_date_ymd] => 2025-02-20 10:44:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:44:06' and `end` < '2025-02-20 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-02-20 10:44:18] Production.INFO: count ==3138 [2025-02-20 10:44:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:44:06 - End Time 2025-02-20 10:44:06 [2025-02-20 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517206', 'tblTempUsageDetail_20' ) start [2025-02-20 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517206', 'tblTempUsageDetail_20' ) end [2025-02-20 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517206', 'tblTempVendorCDR_20' ) start [2025-02-20 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517206', 'tblTempVendorCDR_20' ) end [2025-02-20 10:44:20] Production.INFO: ProcessCDR(1,14517206,1,1,2) [2025-02-20 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517206', 'tblTempUsageDetail_20' ) start [2025-02-20 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517206', 'tblTempUsageDetail_20' ) end [2025-02-20 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:44:25] Production.INFO: ==1014== Releasing lock... [2025-02-20 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:44:25] Production.INFO: 52 MB #Memory Used# [2025-02-20 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:45:06 [end_date_ymd] => 2025-02-20 10:45:06 [RateCDR] => 1 ) [2025-02-20 10: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-02-20 07:45:06' and `end` < '2025-02-20 10: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-02-20 10:45:18] Production.INFO: count ==3149 [2025-02-20 10:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:45:06 - End Time 2025-02-20 10:45:06 [2025-02-20 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517211', 'tblTempUsageDetail_20' ) start [2025-02-20 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517211', 'tblTempUsageDetail_20' ) end [2025-02-20 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517211', 'tblTempVendorCDR_20' ) start [2025-02-20 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517211', 'tblTempVendorCDR_20' ) end [2025-02-20 10:45:20] Production.INFO: ProcessCDR(1,14517211,1,1,2) [2025-02-20 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517211', 'tblTempUsageDetail_20' ) start [2025-02-20 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517211', 'tblTempUsageDetail_20' ) end [2025-02-20 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:45:25] Production.INFO: ==1084== Releasing lock... [2025-02-20 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:45:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-20 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:46:06 [end_date_ymd] => 2025-02-20 10:46:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:46:06' and `end` < '2025-02-20 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-02-20 10:46:18] Production.INFO: count ==3175 [2025-02-20 10:46:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:46:06 - End Time 2025-02-20 10:46:06 [2025-02-20 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517216', 'tblTempUsageDetail_20' ) start [2025-02-20 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517216', 'tblTempUsageDetail_20' ) end [2025-02-20 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517216', 'tblTempVendorCDR_20' ) start [2025-02-20 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517216', 'tblTempVendorCDR_20' ) end [2025-02-20 10:46:20] Production.INFO: ProcessCDR(1,14517216,1,1,2) [2025-02-20 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517216', 'tblTempUsageDetail_20' ) start [2025-02-20 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517216', 'tblTempUsageDetail_20' ) end [2025-02-20 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:46:25] Production.INFO: ==1160== Releasing lock... [2025-02-20 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:46:25] Production.INFO: 52 MB #Memory Used# [2025-02-20 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:47:05 [end_date_ymd] => 2025-02-20 10:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:47:05' and `end` < '2025-02-20 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-02-20 10:47:18] Production.INFO: count ==3187 [2025-02-20 10:47:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:47:05 - End Time 2025-02-20 10:47:05 [2025-02-20 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517221', 'tblTempUsageDetail_20' ) start [2025-02-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517221', 'tblTempUsageDetail_20' ) end [2025-02-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517221', 'tblTempVendorCDR_20' ) start [2025-02-20 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517221', 'tblTempVendorCDR_20' ) end [2025-02-20 10:47:19] Production.INFO: ProcessCDR(1,14517221,1,1,2) [2025-02-20 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517221', 'tblTempUsageDetail_20' ) start [2025-02-20 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517221', 'tblTempUsageDetail_20' ) end [2025-02-20 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:47:25] Production.INFO: ==1241== Releasing lock... [2025-02-20 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:47:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-20 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:48:05 [end_date_ymd] => 2025-02-20 10:48:05 [RateCDR] => 1 ) [2025-02-20 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:48:05' and `end` < '2025-02-20 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:48:17] Production.INFO: count ==3200 [2025-02-20 10:48:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:48:05 - End Time 2025-02-20 10:48:05 [2025-02-20 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517226', 'tblTempUsageDetail_20' ) start [2025-02-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517226', 'tblTempUsageDetail_20' ) end [2025-02-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517226', 'tblTempVendorCDR_20' ) start [2025-02-20 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517226', 'tblTempVendorCDR_20' ) end [2025-02-20 10:48:19] Production.INFO: ProcessCDR(1,14517226,1,1,2) [2025-02-20 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517226', 'tblTempUsageDetail_20' ) start [2025-02-20 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517226', 'tblTempUsageDetail_20' ) end [2025-02-20 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:48:24] Production.INFO: ==1323== Releasing lock... [2025-02-20 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:48:24] Production.INFO: 52 MB #Memory Used# [2025-02-20 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:49:06 [end_date_ymd] => 2025-02-20 10:49:06 [RateCDR] => 1 ) [2025-02-20 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:49:06' and `end` < '2025-02-20 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:49:18] Production.INFO: count ==3209 [2025-02-20 10:49:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:49:06 - End Time 2025-02-20 10:49:06 [2025-02-20 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517231', 'tblTempUsageDetail_20' ) start [2025-02-20 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517231', 'tblTempUsageDetail_20' ) end [2025-02-20 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517231', 'tblTempVendorCDR_20' ) start [2025-02-20 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517231', 'tblTempVendorCDR_20' ) end [2025-02-20 10:49:20] Production.INFO: ProcessCDR(1,14517231,1,1,2) [2025-02-20 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517231', 'tblTempUsageDetail_20' ) start [2025-02-20 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517231', 'tblTempUsageDetail_20' ) end [2025-02-20 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:49:25] Production.INFO: ==1395== Releasing lock... [2025-02-20 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:49:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-20 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:50:06 [end_date_ymd] => 2025-02-20 10:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:50:06' and `end` < '2025-02-20 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-02-20 10:50:18] Production.INFO: count ==3225 [2025-02-20 10:50:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:50:06 - End Time 2025-02-20 10:50:06 [2025-02-20 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517237', 'tblTempUsageDetail_20' ) start [2025-02-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517237', 'tblTempUsageDetail_20' ) end [2025-02-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517237', 'tblTempVendorCDR_20' ) start [2025-02-20 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517237', 'tblTempVendorCDR_20' ) end [2025-02-20 10:50:20] Production.INFO: ProcessCDR(1,14517237,1,1,2) [2025-02-20 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517237', 'tblTempUsageDetail_20' ) start [2025-02-20 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517237', 'tblTempUsageDetail_20' ) end [2025-02-20 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:50:25] Production.INFO: ==1475== Releasing lock... [2025-02-20 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:50:25] Production.INFO: 52 MB #Memory Used# [2025-02-20 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:51:06 [end_date_ymd] => 2025-02-20 10:51:06 [RateCDR] => 1 ) [2025-02-20 10: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-02-20 07:51:06' and `end` < '2025-02-20 10: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-02-20 10:51:18] Production.INFO: count ==3350 [2025-02-20 10:51:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:51:06 - End Time 2025-02-20 10:51:06 [2025-02-20 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517242', 'tblTempUsageDetail_20' ) start [2025-02-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517242', 'tblTempUsageDetail_20' ) end [2025-02-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517242', 'tblTempVendorCDR_20' ) start [2025-02-20 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517242', 'tblTempVendorCDR_20' ) end [2025-02-20 10:51:20] Production.INFO: ProcessCDR(1,14517242,1,1,2) [2025-02-20 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517242', 'tblTempUsageDetail_20' ) start [2025-02-20 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517242', 'tblTempUsageDetail_20' ) end [2025-02-20 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:51:26] Production.INFO: ==1589== Releasing lock... [2025-02-20 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:51:26] Production.INFO: 53.75 MB #Memory Used# [2025-02-20 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:52:05 [end_date_ymd] => 2025-02-20 10:52:05 [RateCDR] => 1 ) [2025-02-20 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:52:05' and `end` < '2025-02-20 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:52:18] Production.INFO: count ==3371 [2025-02-20 10:52:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:52:05 - End Time 2025-02-20 10:52:05 [2025-02-20 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517247', 'tblTempUsageDetail_20' ) start [2025-02-20 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517247', 'tblTempUsageDetail_20' ) end [2025-02-20 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517247', 'tblTempVendorCDR_20' ) start [2025-02-20 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517247', 'tblTempVendorCDR_20' ) end [2025-02-20 10:52:19] Production.INFO: ProcessCDR(1,14517247,1,1,2) [2025-02-20 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517247', 'tblTempUsageDetail_20' ) start [2025-02-20 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517247', 'tblTempUsageDetail_20' ) end [2025-02-20 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:52:25] Production.INFO: ==1662== Releasing lock... [2025-02-20 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:52:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-20 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:53:05 [end_date_ymd] => 2025-02-20 10:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:53:05' and `end` < '2025-02-20 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-02-20 10:53:18] Production.INFO: count ==3378 [2025-02-20 10:53:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:53:05 - End Time 2025-02-20 10:53:05 [2025-02-20 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517252', 'tblTempUsageDetail_20' ) start [2025-02-20 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517252', 'tblTempUsageDetail_20' ) end [2025-02-20 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517252', 'tblTempVendorCDR_20' ) start [2025-02-20 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517252', 'tblTempVendorCDR_20' ) end [2025-02-20 10:53:20] Production.INFO: ProcessCDR(1,14517252,1,1,2) [2025-02-20 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517252', 'tblTempUsageDetail_20' ) start [2025-02-20 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517252', 'tblTempUsageDetail_20' ) end [2025-02-20 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:53:25] Production.INFO: ==1738== Releasing lock... [2025-02-20 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:53:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-20 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:54:05 [end_date_ymd] => 2025-02-20 10:54:05 [RateCDR] => 1 ) [2025-02-20 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:54:05' and `end` < '2025-02-20 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:54:18] Production.INFO: count ==3386 [2025-02-20 10:54:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:54:05 - End Time 2025-02-20 10:54:05 [2025-02-20 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517257', 'tblTempUsageDetail_20' ) start [2025-02-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517257', 'tblTempUsageDetail_20' ) end [2025-02-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517257', 'tblTempVendorCDR_20' ) start [2025-02-20 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517257', 'tblTempVendorCDR_20' ) end [2025-02-20 10:54:20] Production.INFO: ProcessCDR(1,14517257,1,1,2) [2025-02-20 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517257', 'tblTempUsageDetail_20' ) start [2025-02-20 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517257', 'tblTempUsageDetail_20' ) end [2025-02-20 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:54:23] Production.INFO: ==1813== Releasing lock... [2025-02-20 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:54:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:55:06 [end_date_ymd] => 2025-02-20 10:55:06 [RateCDR] => 1 ) [2025-02-20 10: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-02-20 07:55:06' and `end` < '2025-02-20 10: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-02-20 10:55:18] Production.INFO: count ==3401 [2025-02-20 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:55:06 - End Time 2025-02-20 10:55:06 [2025-02-20 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517262', 'tblTempUsageDetail_20' ) start [2025-02-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517262', 'tblTempUsageDetail_20' ) end [2025-02-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517262', 'tblTempVendorCDR_20' ) start [2025-02-20 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517262', 'tblTempVendorCDR_20' ) end [2025-02-20 10:55:20] Production.INFO: ProcessCDR(1,14517262,1,1,2) [2025-02-20 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517262', 'tblTempUsageDetail_20' ) start [2025-02-20 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517262', 'tblTempUsageDetail_20' ) end [2025-02-20 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:55:25] Production.INFO: ==1891== Releasing lock... [2025-02-20 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:55:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-20 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:56:05 [end_date_ymd] => 2025-02-20 10:56:05 [RateCDR] => 1 ) [2025-02-20 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:56:05' and `end` < '2025-02-20 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:56:18] Production.INFO: count ==3425 [2025-02-20 10:56:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:56:05 - End Time 2025-02-20 10:56:05 [2025-02-20 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517267', 'tblTempUsageDetail_20' ) start [2025-02-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517267', 'tblTempUsageDetail_20' ) end [2025-02-20 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517267', 'tblTempVendorCDR_20' ) start [2025-02-20 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517267', 'tblTempVendorCDR_20' ) end [2025-02-20 10:56:20] Production.INFO: ProcessCDR(1,14517267,1,1,2) [2025-02-20 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517267', 'tblTempUsageDetail_20' ) start [2025-02-20 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517267', 'tblTempUsageDetail_20' ) end [2025-02-20 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:56:25] Production.INFO: ==1966== Releasing lock... [2025-02-20 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:56:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-20 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:57:06 [end_date_ymd] => 2025-02-20 10:57:06 [RateCDR] => 1 ) [2025-02-20 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 07:57:06' and `end` < '2025-02-20 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 10:57:18] Production.INFO: count ==3436 [2025-02-20 10:57:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:57:06 - End Time 2025-02-20 10:57:06 [2025-02-20 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517272', 'tblTempUsageDetail_20' ) start [2025-02-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517272', 'tblTempUsageDetail_20' ) end [2025-02-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517272', 'tblTempVendorCDR_20' ) start [2025-02-20 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517272', 'tblTempVendorCDR_20' ) end [2025-02-20 10:57:20] Production.INFO: ProcessCDR(1,14517272,1,1,2) [2025-02-20 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517272', 'tblTempUsageDetail_20' ) start [2025-02-20 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517272', 'tblTempUsageDetail_20' ) end [2025-02-20 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:57:25] Production.INFO: ==2040== Releasing lock... [2025-02-20 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:57:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-20 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:58:05 [end_date_ymd] => 2025-02-20 10:58:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:58:05' and `end` < '2025-02-20 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-02-20 10:58:17] Production.INFO: count ==3433 [2025-02-20 10:58:19] Production.ERROR: pbx CDR StartTime 2025-02-20 07:58:05 - End Time 2025-02-20 10:58:05 [2025-02-20 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517277', 'tblTempUsageDetail_20' ) start [2025-02-20 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517277', 'tblTempUsageDetail_20' ) end [2025-02-20 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517277', 'tblTempVendorCDR_20' ) start [2025-02-20 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517277', 'tblTempVendorCDR_20' ) end [2025-02-20 10:58:19] Production.INFO: ProcessCDR(1,14517277,1,1,2) [2025-02-20 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517277', 'tblTempUsageDetail_20' ) start [2025-02-20 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517277', 'tblTempUsageDetail_20' ) end [2025-02-20 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:58:24] Production.INFO: ==2151== Releasing lock... [2025-02-20 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:58:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-20 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 07:59:05 [end_date_ymd] => 2025-02-20 10:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 07:59:05' and `end` < '2025-02-20 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-02-20 10:59:18] Production.INFO: count ==3473 [2025-02-20 10:59:20] Production.ERROR: pbx CDR StartTime 2025-02-20 07:59:05 - End Time 2025-02-20 10:59:05 [2025-02-20 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517282', 'tblTempUsageDetail_20' ) start [2025-02-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517282', 'tblTempUsageDetail_20' ) end [2025-02-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517282', 'tblTempVendorCDR_20' ) start [2025-02-20 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517282', 'tblTempVendorCDR_20' ) end [2025-02-20 10:59:20] Production.INFO: ProcessCDR(1,14517282,1,1,2) [2025-02-20 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517282', 'tblTempUsageDetail_20' ) start [2025-02-20 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517282', 'tblTempUsageDetail_20' ) end [2025-02-20 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 10:59:25] Production.INFO: ==2228== Releasing lock... [2025-02-20 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 10:59:25] Production.INFO: 54 MB #Memory Used# [2025-02-20 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:00:07 [end_date_ymd] => 2025-02-20 11:00:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:00:07' and `end` < '2025-02-20 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-02-20 11:00:19] Production.INFO: count ==3499 [2025-02-20 11:00:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:00:07 - End Time 2025-02-20 11:00:07 [2025-02-20 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517288', 'tblTempUsageDetail_20' ) start [2025-02-20 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517288', 'tblTempUsageDetail_20' ) end [2025-02-20 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517288', 'tblTempVendorCDR_20' ) start [2025-02-20 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517288', 'tblTempVendorCDR_20' ) end [2025-02-20 11:00:22] Production.INFO: ProcessCDR(1,14517288,1,1,2) [2025-02-20 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517288', 'tblTempUsageDetail_20' ) start [2025-02-20 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517288', 'tblTempUsageDetail_20' ) end [2025-02-20 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:00:27] Production.INFO: ==2308== Releasing lock... [2025-02-20 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:00:27] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:01:05 [end_date_ymd] => 2025-02-20 11:01:05 [RateCDR] => 1 ) [2025-02-20 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:01:05' and `end` < '2025-02-20 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:01:18] Production.INFO: count ==3601 [2025-02-20 11:01:19] Production.ERROR: pbx CDR StartTime 2025-02-20 08:01:05 - End Time 2025-02-20 11:01:05 [2025-02-20 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517293', 'tblTempUsageDetail_20' ) start [2025-02-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517293', 'tblTempUsageDetail_20' ) end [2025-02-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517293', 'tblTempVendorCDR_20' ) start [2025-02-20 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517293', 'tblTempVendorCDR_20' ) end [2025-02-20 11:01:19] Production.INFO: ProcessCDR(1,14517293,1,1,2) [2025-02-20 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517293', 'tblTempUsageDetail_20' ) start [2025-02-20 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517293', 'tblTempUsageDetail_20' ) end [2025-02-20 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:01:25] Production.INFO: ==2398== Releasing lock... [2025-02-20 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:01:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-20 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:02:06 [end_date_ymd] => 2025-02-20 11:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:02:06' and `end` < '2025-02-20 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-02-20 11:02:19] Production.INFO: count ==3606 [2025-02-20 11:02:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:02:06 - End Time 2025-02-20 11:02:06 [2025-02-20 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517298', 'tblTempUsageDetail_20' ) start [2025-02-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517298', 'tblTempUsageDetail_20' ) end [2025-02-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517298', 'tblTempVendorCDR_20' ) start [2025-02-20 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517298', 'tblTempVendorCDR_20' ) end [2025-02-20 11:02:20] Production.INFO: ProcessCDR(1,14517298,1,1,2) [2025-02-20 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517298', 'tblTempUsageDetail_20' ) start [2025-02-20 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517298', 'tblTempUsageDetail_20' ) end [2025-02-20 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:02:26] Production.INFO: ==2551== Releasing lock... [2025-02-20 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:02:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-20 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:03:05 [end_date_ymd] => 2025-02-20 11:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:03:05' and `end` < '2025-02-20 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-02-20 11:03:17] Production.INFO: count ==3609 [2025-02-20 11:03:19] Production.ERROR: pbx CDR StartTime 2025-02-20 08:03:05 - End Time 2025-02-20 11:03:05 [2025-02-20 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517303', 'tblTempUsageDetail_20' ) start [2025-02-20 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517303', 'tblTempUsageDetail_20' ) end [2025-02-20 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517303', 'tblTempVendorCDR_20' ) start [2025-02-20 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517303', 'tblTempVendorCDR_20' ) end [2025-02-20 11:03:19] Production.INFO: ProcessCDR(1,14517303,1,1,2) [2025-02-20 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517303', 'tblTempUsageDetail_20' ) start [2025-02-20 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517303', 'tblTempUsageDetail_20' ) end [2025-02-20 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:03:24] Production.INFO: ==2630== Releasing lock... [2025-02-20 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:03:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-20 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:04:06 [end_date_ymd] => 2025-02-20 11:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:04:06' and `end` < '2025-02-20 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-02-20 11:04:19] Production.INFO: count ==3621 [2025-02-20 11:04:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:04:06 - End Time 2025-02-20 11:04:06 [2025-02-20 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517308', 'tblTempUsageDetail_20' ) start [2025-02-20 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517308', 'tblTempUsageDetail_20' ) end [2025-02-20 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517308', 'tblTempVendorCDR_20' ) start [2025-02-20 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517308', 'tblTempVendorCDR_20' ) end [2025-02-20 11:04:21] Production.INFO: ProcessCDR(1,14517308,1,1,2) [2025-02-20 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517308', 'tblTempUsageDetail_20' ) start [2025-02-20 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517308', 'tblTempUsageDetail_20' ) end [2025-02-20 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:04:26] Production.INFO: ==2712== Releasing lock... [2025-02-20 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:04:26] Production.INFO: 56 MB #Memory Used# [2025-02-20 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:05:06 [end_date_ymd] => 2025-02-20 11:05:06 [RateCDR] => 1 ) [2025-02-20 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:05:06' and `end` < '2025-02-20 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:05:19] Production.INFO: count ==3643 [2025-02-20 11:05:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:05:06 - End Time 2025-02-20 11:05:06 [2025-02-20 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517313', 'tblTempUsageDetail_20' ) start [2025-02-20 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517313', 'tblTempUsageDetail_20' ) end [2025-02-20 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517313', 'tblTempVendorCDR_20' ) start [2025-02-20 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517313', 'tblTempVendorCDR_20' ) end [2025-02-20 11:05:21] Production.INFO: ProcessCDR(1,14517313,1,1,2) [2025-02-20 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517313', 'tblTempUsageDetail_20' ) start [2025-02-20 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517313', 'tblTempUsageDetail_20' ) end [2025-02-20 11:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:05:27] Production.INFO: ==2865== Releasing lock... [2025-02-20 11:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:05:27] Production.INFO: 55.25 MB #Memory Used# [2025-02-20 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:06:06 [end_date_ymd] => 2025-02-20 11:06:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:06:06' and `end` < '2025-02-20 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-02-20 11:06:19] Production.INFO: count ==3646 [2025-02-20 11:06:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:06:06 - End Time 2025-02-20 11:06:06 [2025-02-20 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517318', 'tblTempUsageDetail_20' ) start [2025-02-20 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517318', 'tblTempUsageDetail_20' ) end [2025-02-20 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517318', 'tblTempVendorCDR_20' ) start [2025-02-20 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517318', 'tblTempVendorCDR_20' ) end [2025-02-20 11:06:21] Production.INFO: ProcessCDR(1,14517318,1,1,2) [2025-02-20 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517318', 'tblTempUsageDetail_20' ) start [2025-02-20 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517318', 'tblTempUsageDetail_20' ) end [2025-02-20 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:06:26] Production.INFO: ==2939== Releasing lock... [2025-02-20 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:06:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-20 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:07:06 [end_date_ymd] => 2025-02-20 11:07:06 [RateCDR] => 1 ) [2025-02-20 11: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-02-20 08:07:06' and `end` < '2025-02-20 11: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-02-20 11:07:19] Production.INFO: count ==3656 [2025-02-20 11:07:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:07:06 - End Time 2025-02-20 11:07:06 [2025-02-20 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517323', 'tblTempUsageDetail_20' ) start [2025-02-20 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517323', 'tblTempUsageDetail_20' ) end [2025-02-20 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517323', 'tblTempVendorCDR_20' ) start [2025-02-20 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517323', 'tblTempVendorCDR_20' ) end [2025-02-20 11:07:21] Production.INFO: ProcessCDR(1,14517323,1,1,2) [2025-02-20 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517323', 'tblTempUsageDetail_20' ) start [2025-02-20 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517323', 'tblTempUsageDetail_20' ) end [2025-02-20 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:07:27] Production.INFO: ==3012== Releasing lock... [2025-02-20 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:07:27] Production.INFO: 55.25 MB #Memory Used# [2025-02-20 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:08:06 [end_date_ymd] => 2025-02-20 11:08:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:08:06' and `end` < '2025-02-20 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-02-20 11:08:19] Production.INFO: count ==3714 [2025-02-20 11:08:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:08:06 - End Time 2025-02-20 11:08:06 [2025-02-20 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517328', 'tblTempUsageDetail_20' ) start [2025-02-20 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517328', 'tblTempUsageDetail_20' ) end [2025-02-20 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517328', 'tblTempVendorCDR_20' ) start [2025-02-20 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517328', 'tblTempVendorCDR_20' ) end [2025-02-20 11:08:21] Production.INFO: ProcessCDR(1,14517328,1,1,2) [2025-02-20 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517328', 'tblTempUsageDetail_20' ) start [2025-02-20 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517328', 'tblTempUsageDetail_20' ) end [2025-02-20 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:08:27] Production.INFO: ==3127== Releasing lock... [2025-02-20 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:08:27] Production.INFO: 56 MB #Memory Used# [2025-02-20 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:09:05 [end_date_ymd] => 2025-02-20 11:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:09:05' and `end` < '2025-02-20 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-02-20 11:09:18] Production.INFO: count ==3727 [2025-02-20 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:09:05 - End Time 2025-02-20 11:09:05 [2025-02-20 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517333', 'tblTempUsageDetail_20' ) start [2025-02-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517333', 'tblTempUsageDetail_20' ) end [2025-02-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517333', 'tblTempVendorCDR_20' ) start [2025-02-20 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517333', 'tblTempVendorCDR_20' ) end [2025-02-20 11:09:20] Production.INFO: ProcessCDR(1,14517333,1,1,2) [2025-02-20 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517333', 'tblTempUsageDetail_20' ) start [2025-02-20 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517333', 'tblTempUsageDetail_20' ) end [2025-02-20 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:09:25] Production.INFO: ==3240== Releasing lock... [2025-02-20 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:09:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-20 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:10:07 [end_date_ymd] => 2025-02-20 11:10:07 [RateCDR] => 1 ) [2025-02-20 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:10:07' and `end` < '2025-02-20 11:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:10:20] Production.INFO: count ==3742 [2025-02-20 11:10:22] Production.ERROR: pbx CDR StartTime 2025-02-20 08:10:07 - End Time 2025-02-20 11:10:07 [2025-02-20 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517339', 'tblTempUsageDetail_20' ) start [2025-02-20 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517339', 'tblTempUsageDetail_20' ) end [2025-02-20 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517339', 'tblTempVendorCDR_20' ) start [2025-02-20 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517339', 'tblTempVendorCDR_20' ) end [2025-02-20 11:10:22] Production.INFO: ProcessCDR(1,14517339,1,1,2) [2025-02-20 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517339', 'tblTempUsageDetail_20' ) start [2025-02-20 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517339', 'tblTempUsageDetail_20' ) end [2025-02-20 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:10:27] Production.INFO: ==3317== Releasing lock... [2025-02-20 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:10:27] Production.INFO: 56.25 MB #Memory Used# [2025-02-20 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:11:06 [end_date_ymd] => 2025-02-20 11:11:06 [RateCDR] => 1 ) [2025-02-20 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:11:06' and `end` < '2025-02-20 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:11:19] Production.INFO: count ==3807 [2025-02-20 11:11:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:11:06 - End Time 2025-02-20 11:11:06 [2025-02-20 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517344', 'tblTempUsageDetail_20' ) start [2025-02-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517344', 'tblTempUsageDetail_20' ) end [2025-02-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517344', 'tblTempVendorCDR_20' ) start [2025-02-20 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517344', 'tblTempVendorCDR_20' ) end [2025-02-20 11:11:21] Production.INFO: ProcessCDR(1,14517344,1,1,2) [2025-02-20 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517344', 'tblTempUsageDetail_20' ) start [2025-02-20 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517344', 'tblTempUsageDetail_20' ) end [2025-02-20 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:11:26] Production.INFO: ==3392== Releasing lock... [2025-02-20 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:11:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-20 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:12:05 [end_date_ymd] => 2025-02-20 11:12:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:12:05' and `end` < '2025-02-20 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-02-20 11:12:18] Production.INFO: count ==3815 [2025-02-20 11:12:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:12:05 - End Time 2025-02-20 11:12:05 [2025-02-20 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517349', 'tblTempUsageDetail_20' ) start [2025-02-20 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517349', 'tblTempUsageDetail_20' ) end [2025-02-20 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517349', 'tblTempVendorCDR_20' ) start [2025-02-20 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517349', 'tblTempVendorCDR_20' ) end [2025-02-20 11:12:20] Production.INFO: ProcessCDR(1,14517349,1,1,2) [2025-02-20 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517349', 'tblTempUsageDetail_20' ) start [2025-02-20 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517349', 'tblTempUsageDetail_20' ) end [2025-02-20 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:12:25] Production.INFO: ==3547== Releasing lock... [2025-02-20 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:12:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:13:05 [end_date_ymd] => 2025-02-20 11:13:05 [RateCDR] => 1 ) [2025-02-20 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:13:05' and `end` < '2025-02-20 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:13:18] Production.INFO: count ==3844 [2025-02-20 11:13:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:13:05 - End Time 2025-02-20 11:13:05 [2025-02-20 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517354', 'tblTempUsageDetail_20' ) start [2025-02-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517354', 'tblTempUsageDetail_20' ) end [2025-02-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517354', 'tblTempVendorCDR_20' ) start [2025-02-20 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517354', 'tblTempVendorCDR_20' ) end [2025-02-20 11:13:20] Production.INFO: ProcessCDR(1,14517354,1,1,2) [2025-02-20 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517354', 'tblTempUsageDetail_20' ) start [2025-02-20 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517354', 'tblTempUsageDetail_20' ) end [2025-02-20 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:13:26] Production.INFO: ==3658== Releasing lock... [2025-02-20 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:13:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:14:05 [end_date_ymd] => 2025-02-20 11:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:14:05' and `end` < '2025-02-20 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-02-20 11:14:18] Production.INFO: count ==3851 [2025-02-20 11:14:19] Production.ERROR: pbx CDR StartTime 2025-02-20 08:14:05 - End Time 2025-02-20 11:14:05 [2025-02-20 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517359', 'tblTempUsageDetail_20' ) start [2025-02-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517359', 'tblTempUsageDetail_20' ) end [2025-02-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517359', 'tblTempVendorCDR_20' ) start [2025-02-20 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517359', 'tblTempVendorCDR_20' ) end [2025-02-20 11:14:20] Production.INFO: ProcessCDR(1,14517359,1,1,2) [2025-02-20 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517359', 'tblTempUsageDetail_20' ) start [2025-02-20 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517359', 'tblTempUsageDetail_20' ) end [2025-02-20 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:14:25] Production.INFO: ==3733== Releasing lock... [2025-02-20 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:14:25] Production.INFO: 57 MB #Memory Used# [2025-02-20 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:15:06 [end_date_ymd] => 2025-02-20 11:15:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:15:06' and `end` < '2025-02-20 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-02-20 11:15:19] Production.INFO: count ==3864 [2025-02-20 11:15:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:15:06 - End Time 2025-02-20 11:15:06 [2025-02-20 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517364', 'tblTempUsageDetail_20' ) start [2025-02-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517364', 'tblTempUsageDetail_20' ) end [2025-02-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517364', 'tblTempVendorCDR_20' ) start [2025-02-20 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517364', 'tblTempVendorCDR_20' ) end [2025-02-20 11:15:21] Production.INFO: ProcessCDR(1,14517364,1,1,2) [2025-02-20 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517364', 'tblTempUsageDetail_20' ) start [2025-02-20 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517364', 'tblTempUsageDetail_20' ) end [2025-02-20 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:15:26] Production.INFO: ==3885== Releasing lock... [2025-02-20 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:15:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:16:05 [end_date_ymd] => 2025-02-20 11:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:16:05' and `end` < '2025-02-20 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-02-20 11:16:18] Production.INFO: count ==3849 [2025-02-20 11:16:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:16:05 - End Time 2025-02-20 11:16:05 [2025-02-20 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517369', 'tblTempUsageDetail_20' ) start [2025-02-20 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517369', 'tblTempUsageDetail_20' ) end [2025-02-20 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517369', 'tblTempVendorCDR_20' ) start [2025-02-20 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517369', 'tblTempVendorCDR_20' ) end [2025-02-20 11:16:20] Production.INFO: ProcessCDR(1,14517369,1,1,2) [2025-02-20 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517369', 'tblTempUsageDetail_20' ) start [2025-02-20 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517369', 'tblTempUsageDetail_20' ) end [2025-02-20 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:16:25] Production.INFO: ==3958== Releasing lock... [2025-02-20 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:16:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:17:05 [end_date_ymd] => 2025-02-20 11:17:05 [RateCDR] => 1 ) [2025-02-20 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:17:05' and `end` < '2025-02-20 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:17:18] Production.INFO: count ==3862 [2025-02-20 11:17:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:17:05 - End Time 2025-02-20 11:17:05 [2025-02-20 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517374', 'tblTempUsageDetail_20' ) start [2025-02-20 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517374', 'tblTempUsageDetail_20' ) end [2025-02-20 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517374', 'tblTempVendorCDR_20' ) start [2025-02-20 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517374', 'tblTempVendorCDR_20' ) end [2025-02-20 11:17:20] Production.INFO: ProcessCDR(1,14517374,1,1,2) [2025-02-20 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517374', 'tblTempUsageDetail_20' ) start [2025-02-20 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517374', 'tblTempUsageDetail_20' ) end [2025-02-20 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:17:26] Production.INFO: ==4038== Releasing lock... [2025-02-20 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:17:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:18:05 [end_date_ymd] => 2025-02-20 11:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:18:05' and `end` < '2025-02-20 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-02-20 11:18:18] Production.INFO: count ==3865 [2025-02-20 11:18:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:18:05 - End Time 2025-02-20 11:18:05 [2025-02-20 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517379', 'tblTempUsageDetail_20' ) start [2025-02-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517379', 'tblTempUsageDetail_20' ) end [2025-02-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517379', 'tblTempVendorCDR_20' ) start [2025-02-20 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517379', 'tblTempVendorCDR_20' ) end [2025-02-20 11:18:20] Production.INFO: ProcessCDR(1,14517379,1,1,2) [2025-02-20 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517379', 'tblTempUsageDetail_20' ) start [2025-02-20 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517379', 'tblTempUsageDetail_20' ) end [2025-02-20 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:18:26] Production.INFO: ==4118== Releasing lock... [2025-02-20 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:18:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:19:06 [end_date_ymd] => 2025-02-20 11:19:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:19:06' and `end` < '2025-02-20 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-02-20 11:19:19] Production.INFO: count ==3870 [2025-02-20 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:19:06 - End Time 2025-02-20 11:19:06 [2025-02-20 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517384', 'tblTempUsageDetail_20' ) start [2025-02-20 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517384', 'tblTempUsageDetail_20' ) end [2025-02-20 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517384', 'tblTempVendorCDR_20' ) start [2025-02-20 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517384', 'tblTempVendorCDR_20' ) end [2025-02-20 11:19:20] Production.INFO: ProcessCDR(1,14517384,1,1,2) [2025-02-20 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517384', 'tblTempUsageDetail_20' ) start [2025-02-20 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517384', 'tblTempUsageDetail_20' ) end [2025-02-20 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:19:26] Production.INFO: ==4193== Releasing lock... [2025-02-20 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:19:26] Production.INFO: 57 MB #Memory Used# [2025-02-20 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:20:06 [end_date_ymd] => 2025-02-20 11:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:20:06' and `end` < '2025-02-20 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-02-20 11:20:19] Production.INFO: count ==3876 [2025-02-20 11:20:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:20:06 - End Time 2025-02-20 11:20:06 [2025-02-20 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517390', 'tblTempUsageDetail_20' ) start [2025-02-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517390', 'tblTempUsageDetail_20' ) end [2025-02-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517390', 'tblTempVendorCDR_20' ) start [2025-02-20 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517390', 'tblTempVendorCDR_20' ) end [2025-02-20 11:20:21] Production.INFO: ProcessCDR(1,14517390,1,1,2) [2025-02-20 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517390', 'tblTempUsageDetail_20' ) start [2025-02-20 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517390', 'tblTempUsageDetail_20' ) end [2025-02-20 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:20:26] Production.INFO: ==4273== Releasing lock... [2025-02-20 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:20:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-20 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:21:05 [end_date_ymd] => 2025-02-20 11:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:21:05' and `end` < '2025-02-20 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-02-20 11:21:18] Production.INFO: count ==3969 [2025-02-20 11:21:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:21:05 - End Time 2025-02-20 11:21:05 [2025-02-20 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517395', 'tblTempUsageDetail_20' ) start [2025-02-20 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517395', 'tblTempUsageDetail_20' ) end [2025-02-20 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517395', 'tblTempVendorCDR_20' ) start [2025-02-20 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517395', 'tblTempVendorCDR_20' ) end [2025-02-20 11:21:20] Production.INFO: ProcessCDR(1,14517395,1,1,2) [2025-02-20 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517395', 'tblTempUsageDetail_20' ) start [2025-02-20 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517395', 'tblTempUsageDetail_20' ) end [2025-02-20 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:21:26] Production.INFO: ==4354== Releasing lock... [2025-02-20 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:21:26] Production.INFO: 58 MB #Memory Used# [2025-02-20 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:22:05 [end_date_ymd] => 2025-02-20 11:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:22:05' and `end` < '2025-02-20 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-02-20 11:22:18] Production.INFO: count ==4026 [2025-02-20 11:22:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:22:05 - End Time 2025-02-20 11:22:05 [2025-02-20 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517400', 'tblTempUsageDetail_20' ) start [2025-02-20 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517400', 'tblTempUsageDetail_20' ) end [2025-02-20 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517400', 'tblTempVendorCDR_20' ) start [2025-02-20 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517400', 'tblTempVendorCDR_20' ) end [2025-02-20 11:22:20] Production.INFO: ProcessCDR(1,14517400,1,1,2) [2025-02-20 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517400', 'tblTempUsageDetail_20' ) start [2025-02-20 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517400', 'tblTempUsageDetail_20' ) end [2025-02-20 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:22:25] Production.INFO: ==4425== Releasing lock... [2025-02-20 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:22:25] Production.INFO: 58 MB #Memory Used# [2025-02-20 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:23:06 [end_date_ymd] => 2025-02-20 11:23:06 [RateCDR] => 1 ) [2025-02-20 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:23:06' and `end` < '2025-02-20 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:23:18] Production.INFO: count ==4027 [2025-02-20 11:23:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:23:06 - End Time 2025-02-20 11:23:06 [2025-02-20 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517405', 'tblTempUsageDetail_20' ) start [2025-02-20 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517405', 'tblTempUsageDetail_20' ) end [2025-02-20 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517405', 'tblTempVendorCDR_20' ) start [2025-02-20 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517405', 'tblTempVendorCDR_20' ) end [2025-02-20 11:23:20] Production.INFO: ProcessCDR(1,14517405,1,1,2) [2025-02-20 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517405', 'tblTempUsageDetail_20' ) start [2025-02-20 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517405', 'tblTempUsageDetail_20' ) end [2025-02-20 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:23:26] Production.INFO: ==4501== Releasing lock... [2025-02-20 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:23:26] Production.INFO: 58 MB #Memory Used# [2025-02-20 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:24:05 [end_date_ymd] => 2025-02-20 11:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:24:05' and `end` < '2025-02-20 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-02-20 11:24:18] Production.INFO: count ==4039 [2025-02-20 11:24:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:24:05 - End Time 2025-02-20 11:24:05 [2025-02-20 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517410', 'tblTempUsageDetail_20' ) start [2025-02-20 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517410', 'tblTempUsageDetail_20' ) end [2025-02-20 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517410', 'tblTempVendorCDR_20' ) start [2025-02-20 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517410', 'tblTempVendorCDR_20' ) end [2025-02-20 11:24:20] Production.INFO: ProcessCDR(1,14517410,1,1,2) [2025-02-20 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517410', 'tblTempUsageDetail_20' ) start [2025-02-20 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517410', 'tblTempUsageDetail_20' ) end [2025-02-20 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:24:25] Production.INFO: ==4586== Releasing lock... [2025-02-20 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:24:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-20 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:25:06 [end_date_ymd] => 2025-02-20 11:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:25:06' and `end` < '2025-02-20 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-02-20 11:25:18] Production.INFO: count ==4047 [2025-02-20 11:25:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:25:06 - End Time 2025-02-20 11:25:06 [2025-02-20 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517415', 'tblTempUsageDetail_20' ) start [2025-02-20 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517415', 'tblTempUsageDetail_20' ) end [2025-02-20 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517415', 'tblTempVendorCDR_20' ) start [2025-02-20 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517415', 'tblTempVendorCDR_20' ) end [2025-02-20 11:25:20] Production.INFO: ProcessCDR(1,14517415,1,1,2) [2025-02-20 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517415', 'tblTempUsageDetail_20' ) start [2025-02-20 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517415', 'tblTempUsageDetail_20' ) end [2025-02-20 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:25:25] Production.INFO: ==4661== Releasing lock... [2025-02-20 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:25:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-20 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:26:05 [end_date_ymd] => 2025-02-20 11:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:26:05' and `end` < '2025-02-20 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-02-20 11:26:18] Production.INFO: count ==4031 [2025-02-20 11:26:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:26:05 - End Time 2025-02-20 11:26:05 [2025-02-20 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517420', 'tblTempUsageDetail_20' ) start [2025-02-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517420', 'tblTempUsageDetail_20' ) end [2025-02-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517420', 'tblTempVendorCDR_20' ) start [2025-02-20 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517420', 'tblTempVendorCDR_20' ) end [2025-02-20 11:26:20] Production.INFO: ProcessCDR(1,14517420,1,1,2) [2025-02-20 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517420', 'tblTempUsageDetail_20' ) start [2025-02-20 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517420', 'tblTempUsageDetail_20' ) end [2025-02-20 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:26:25] Production.INFO: ==4732== Releasing lock... [2025-02-20 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:26:25] Production.INFO: 58 MB #Memory Used# [2025-02-20 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:27:06 [end_date_ymd] => 2025-02-20 11:27:06 [RateCDR] => 1 ) [2025-02-20 11: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-02-20 08:27:06' and `end` < '2025-02-20 11: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-02-20 11:27:18] Production.INFO: count ==4079 [2025-02-20 11:27:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:27:06 - End Time 2025-02-20 11:27:06 [2025-02-20 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517425', 'tblTempUsageDetail_20' ) start [2025-02-20 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517425', 'tblTempUsageDetail_20' ) end [2025-02-20 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517425', 'tblTempVendorCDR_20' ) start [2025-02-20 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517425', 'tblTempVendorCDR_20' ) end [2025-02-20 11:27:20] Production.INFO: ProcessCDR(1,14517425,1,1,2) [2025-02-20 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517425', 'tblTempUsageDetail_20' ) start [2025-02-20 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517425', 'tblTempUsageDetail_20' ) end [2025-02-20 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:27:27] Production.INFO: ==4802== Releasing lock... [2025-02-20 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:27:27] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:28:06 [end_date_ymd] => 2025-02-20 11:28:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:28:06' and `end` < '2025-02-20 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-02-20 11:28:18] Production.INFO: count ==4121 [2025-02-20 11:28:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:28:06 - End Time 2025-02-20 11:28:06 [2025-02-20 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517430', 'tblTempUsageDetail_20' ) start [2025-02-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517430', 'tblTempUsageDetail_20' ) end [2025-02-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517430', 'tblTempVendorCDR_20' ) start [2025-02-20 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517430', 'tblTempVendorCDR_20' ) end [2025-02-20 11:28:20] Production.INFO: ProcessCDR(1,14517430,1,1,2) [2025-02-20 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517430', 'tblTempUsageDetail_20' ) start [2025-02-20 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517430', 'tblTempUsageDetail_20' ) end [2025-02-20 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:28:26] Production.INFO: ==4876== Releasing lock... [2025-02-20 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:28:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:29:06 [end_date_ymd] => 2025-02-20 11:29:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:29:06' and `end` < '2025-02-20 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-02-20 11:29:18] Production.INFO: count ==4170 [2025-02-20 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:29:06 - End Time 2025-02-20 11:29:06 [2025-02-20 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517435', 'tblTempUsageDetail_20' ) start [2025-02-20 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517435', 'tblTempUsageDetail_20' ) end [2025-02-20 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517435', 'tblTempVendorCDR_20' ) start [2025-02-20 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517435', 'tblTempVendorCDR_20' ) end [2025-02-20 11:29:20] Production.INFO: ProcessCDR(1,14517435,1,1,2) [2025-02-20 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517435', 'tblTempUsageDetail_20' ) start [2025-02-20 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517435', 'tblTempUsageDetail_20' ) end [2025-02-20 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:29:26] Production.INFO: ==4990== Releasing lock... [2025-02-20 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:29:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-20 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:30:07 [end_date_ymd] => 2025-02-20 11:30:07 [RateCDR] => 1 ) [2025-02-20 11: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-02-20 08:30:07' and `end` < '2025-02-20 11: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-02-20 11:30:20] Production.INFO: count ==4184 [2025-02-20 11:30:22] Production.ERROR: pbx CDR StartTime 2025-02-20 08:30:07 - End Time 2025-02-20 11:30:07 [2025-02-20 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517441', 'tblTempUsageDetail_20' ) start [2025-02-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517441', 'tblTempUsageDetail_20' ) end [2025-02-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517441', 'tblTempVendorCDR_20' ) start [2025-02-20 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517441', 'tblTempVendorCDR_20' ) end [2025-02-20 11:30:22] Production.INFO: ProcessCDR(1,14517441,1,1,2) [2025-02-20 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517441', 'tblTempUsageDetail_20' ) start [2025-02-20 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517441', 'tblTempUsageDetail_20' ) end [2025-02-20 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:30:27] Production.INFO: ==5064== Releasing lock... [2025-02-20 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:30:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-20 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:31:06 [end_date_ymd] => 2025-02-20 11:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:31:06' and `end` < '2025-02-20 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-02-20 11:31:18] Production.INFO: count ==4237 [2025-02-20 11:31:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:31:06 - End Time 2025-02-20 11:31:06 [2025-02-20 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517446', 'tblTempUsageDetail_20' ) start [2025-02-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517446', 'tblTempUsageDetail_20' ) end [2025-02-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517446', 'tblTempVendorCDR_20' ) start [2025-02-20 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517446', 'tblTempVendorCDR_20' ) end [2025-02-20 11:31:21] Production.INFO: ProcessCDR(1,14517446,1,1,2) [2025-02-20 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517446', 'tblTempUsageDetail_20' ) start [2025-02-20 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517446', 'tblTempUsageDetail_20' ) end [2025-02-20 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:31:26] Production.INFO: ==5148== Releasing lock... [2025-02-20 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:31:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-20 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:32:05 [end_date_ymd] => 2025-02-20 11:32:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:32:05' and `end` < '2025-02-20 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-02-20 11:32:18] Production.INFO: count ==4254 [2025-02-20 11:32:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:32:05 - End Time 2025-02-20 11:32:05 [2025-02-20 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517451', 'tblTempUsageDetail_20' ) start [2025-02-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517451', 'tblTempUsageDetail_20' ) end [2025-02-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517451', 'tblTempVendorCDR_20' ) start [2025-02-20 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517451', 'tblTempVendorCDR_20' ) end [2025-02-20 11:32:21] Production.INFO: ProcessCDR(1,14517451,1,1,2) [2025-02-20 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517451', 'tblTempUsageDetail_20' ) start [2025-02-20 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517451', 'tblTempUsageDetail_20' ) end [2025-02-20 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:32:26] Production.INFO: ==5221== Releasing lock... [2025-02-20 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:32:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-20 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:33:06 [end_date_ymd] => 2025-02-20 11:33:06 [RateCDR] => 1 ) [2025-02-20 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:33:06' and `end` < '2025-02-20 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:33:18] Production.INFO: count ==4265 [2025-02-20 11:33:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:33:06 - End Time 2025-02-20 11:33:06 [2025-02-20 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517456', 'tblTempUsageDetail_20' ) start [2025-02-20 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517456', 'tblTempUsageDetail_20' ) end [2025-02-20 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517456', 'tblTempVendorCDR_20' ) start [2025-02-20 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517456', 'tblTempVendorCDR_20' ) end [2025-02-20 11:33:20] Production.INFO: ProcessCDR(1,14517456,1,1,2) [2025-02-20 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517456', 'tblTempUsageDetail_20' ) start [2025-02-20 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517456', 'tblTempUsageDetail_20' ) end [2025-02-20 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:33:26] Production.INFO: ==5291== Releasing lock... [2025-02-20 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:33:26] Production.INFO: 60 MB #Memory Used# [2025-02-20 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:34:05 [end_date_ymd] => 2025-02-20 11:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:34:05' and `end` < '2025-02-20 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-02-20 11:34:18] Production.INFO: count ==4267 [2025-02-20 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:34:05 - End Time 2025-02-20 11:34:05 [2025-02-20 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517461', 'tblTempUsageDetail_20' ) start [2025-02-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517461', 'tblTempUsageDetail_20' ) end [2025-02-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517461', 'tblTempVendorCDR_20' ) start [2025-02-20 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517461', 'tblTempVendorCDR_20' ) end [2025-02-20 11:34:21] Production.INFO: ProcessCDR(1,14517461,1,1,2) [2025-02-20 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517461', 'tblTempUsageDetail_20' ) start [2025-02-20 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517461', 'tblTempUsageDetail_20' ) end [2025-02-20 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:34:26] Production.INFO: ==5366== Releasing lock... [2025-02-20 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:34:26] Production.INFO: 60 MB #Memory Used# [2025-02-20 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:35:06 [end_date_ymd] => 2025-02-20 11:35:06 [RateCDR] => 1 ) [2025-02-20 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:35:06' and `end` < '2025-02-20 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:35:18] Production.INFO: count ==4293 [2025-02-20 11:35:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:35:06 - End Time 2025-02-20 11:35:06 [2025-02-20 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517466', 'tblTempUsageDetail_20' ) start [2025-02-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517466', 'tblTempUsageDetail_20' ) end [2025-02-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517466', 'tblTempVendorCDR_20' ) start [2025-02-20 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517466', 'tblTempVendorCDR_20' ) end [2025-02-20 11:35:21] Production.INFO: ProcessCDR(1,14517466,1,1,2) [2025-02-20 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517466', 'tblTempUsageDetail_20' ) start [2025-02-20 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517466', 'tblTempUsageDetail_20' ) end [2025-02-20 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:35:26] Production.INFO: ==5439== Releasing lock... [2025-02-20 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:35:26] Production.INFO: 60 MB #Memory Used# [2025-02-20 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:36:06 [end_date_ymd] => 2025-02-20 11:36:06 [RateCDR] => 1 ) [2025-02-20 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:36:06' and `end` < '2025-02-20 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:36:18] Production.INFO: count ==4322 [2025-02-20 11:36:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:36:06 - End Time 2025-02-20 11:36:06 [2025-02-20 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517471', 'tblTempUsageDetail_20' ) start [2025-02-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517471', 'tblTempUsageDetail_20' ) end [2025-02-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517471', 'tblTempVendorCDR_20' ) start [2025-02-20 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517471', 'tblTempVendorCDR_20' ) end [2025-02-20 11:36:21] Production.INFO: ProcessCDR(1,14517471,1,1,2) [2025-02-20 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517471', 'tblTempUsageDetail_20' ) start [2025-02-20 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517471', 'tblTempUsageDetail_20' ) end [2025-02-20 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:36:26] Production.INFO: ==5511== Releasing lock... [2025-02-20 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:36:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-20 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:37:06 [end_date_ymd] => 2025-02-20 11:37:06 [RateCDR] => 1 ) [2025-02-20 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:37:06' and `end` < '2025-02-20 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:37:19] Production.INFO: count ==4335 [2025-02-20 11:37:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:37:06 - End Time 2025-02-20 11:37:06 [2025-02-20 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517476', 'tblTempUsageDetail_20' ) start [2025-02-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517476', 'tblTempUsageDetail_20' ) end [2025-02-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517476', 'tblTempVendorCDR_20' ) start [2025-02-20 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517476', 'tblTempVendorCDR_20' ) end [2025-02-20 11:37:21] Production.INFO: ProcessCDR(1,14517476,1,1,2) [2025-02-20 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517476', 'tblTempUsageDetail_20' ) start [2025-02-20 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517476', 'tblTempUsageDetail_20' ) end [2025-02-20 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:37:26] Production.INFO: ==5586== Releasing lock... [2025-02-20 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:37:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-20 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:38:05 [end_date_ymd] => 2025-02-20 11:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:38:05' and `end` < '2025-02-20 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-02-20 11:38:18] Production.INFO: count ==4349 [2025-02-20 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:38:05 - End Time 2025-02-20 11:38:05 [2025-02-20 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517481', 'tblTempUsageDetail_20' ) start [2025-02-20 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517481', 'tblTempUsageDetail_20' ) end [2025-02-20 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517481', 'tblTempVendorCDR_20' ) start [2025-02-20 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517481', 'tblTempVendorCDR_20' ) end [2025-02-20 11:38:20] Production.INFO: ProcessCDR(1,14517481,1,1,2) [2025-02-20 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517481', 'tblTempUsageDetail_20' ) start [2025-02-20 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517481', 'tblTempUsageDetail_20' ) end [2025-02-20 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:38:25] Production.INFO: ==5659== Releasing lock... [2025-02-20 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:38:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-20 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:39:06 [end_date_ymd] => 2025-02-20 11:39:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:39:06' and `end` < '2025-02-20 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-02-20 11:39:18] Production.INFO: count ==4361 [2025-02-20 11:39:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:39:06 - End Time 2025-02-20 11:39:06 [2025-02-20 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517486', 'tblTempUsageDetail_20' ) start [2025-02-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517486', 'tblTempUsageDetail_20' ) end [2025-02-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517486', 'tblTempVendorCDR_20' ) start [2025-02-20 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517486', 'tblTempVendorCDR_20' ) end [2025-02-20 11:39:21] Production.INFO: ProcessCDR(1,14517486,1,1,2) [2025-02-20 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517486', 'tblTempUsageDetail_20' ) start [2025-02-20 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517486', 'tblTempUsageDetail_20' ) end [2025-02-20 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:39:26] Production.INFO: ==5730== Releasing lock... [2025-02-20 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:39:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-20 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:40:05 [end_date_ymd] => 2025-02-20 11:40:05 [RateCDR] => 1 ) [2025-02-20 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:40:05' and `end` < '2025-02-20 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:40:18] Production.INFO: count ==4372 [2025-02-20 11:40:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:40:05 - End Time 2025-02-20 11:40:05 [2025-02-20 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517491', 'tblTempUsageDetail_20' ) start [2025-02-20 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517491', 'tblTempUsageDetail_20' ) end [2025-02-20 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517491', 'tblTempVendorCDR_20' ) start [2025-02-20 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517491', 'tblTempVendorCDR_20' ) end [2025-02-20 11:40:20] Production.INFO: ProcessCDR(1,14517491,1,1,2) [2025-02-20 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517491', 'tblTempUsageDetail_20' ) start [2025-02-20 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517491', 'tblTempUsageDetail_20' ) end [2025-02-20 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:40:26] Production.INFO: ==5807== Releasing lock... [2025-02-20 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:40:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-20 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:41:05 [end_date_ymd] => 2025-02-20 11:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:41:05' and `end` < '2025-02-20 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-02-20 11:41:18] Production.INFO: count ==4445 [2025-02-20 11:41:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:41:05 - End Time 2025-02-20 11:41:05 [2025-02-20 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517497', 'tblTempUsageDetail_20' ) start [2025-02-20 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517497', 'tblTempUsageDetail_20' ) end [2025-02-20 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517497', 'tblTempVendorCDR_20' ) start [2025-02-20 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517497', 'tblTempVendorCDR_20' ) end [2025-02-20 11:41:20] Production.INFO: ProcessCDR(1,14517497,1,1,2) [2025-02-20 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517497', 'tblTempUsageDetail_20' ) start [2025-02-20 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517497', 'tblTempUsageDetail_20' ) end [2025-02-20 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:41:26] Production.INFO: ==5883== Releasing lock... [2025-02-20 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:41:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-20 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:42:06 [end_date_ymd] => 2025-02-20 11:42:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:42:06' and `end` < '2025-02-20 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-02-20 11:42:18] Production.INFO: count ==4441 [2025-02-20 11:42:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:42:06 - End Time 2025-02-20 11:42:06 [2025-02-20 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517502', 'tblTempUsageDetail_20' ) start [2025-02-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517502', 'tblTempUsageDetail_20' ) end [2025-02-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517502', 'tblTempVendorCDR_20' ) start [2025-02-20 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517502', 'tblTempVendorCDR_20' ) end [2025-02-20 11:42:21] Production.INFO: ProcessCDR(1,14517502,1,1,2) [2025-02-20 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517502', 'tblTempUsageDetail_20' ) start [2025-02-20 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517502', 'tblTempUsageDetail_20' ) end [2025-02-20 11:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:42:24] Production.INFO: ==5956== Releasing lock... [2025-02-20 11:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:42:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-20 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:43:05 [end_date_ymd] => 2025-02-20 11:43:05 [RateCDR] => 1 ) [2025-02-20 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:43:05' and `end` < '2025-02-20 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:43:18] Production.INFO: count ==4445 [2025-02-20 11:43:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:43:05 - End Time 2025-02-20 11:43:05 [2025-02-20 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517507', 'tblTempUsageDetail_20' ) start [2025-02-20 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517507', 'tblTempUsageDetail_20' ) end [2025-02-20 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517507', 'tblTempVendorCDR_20' ) start [2025-02-20 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517507', 'tblTempVendorCDR_20' ) end [2025-02-20 11:43:20] Production.INFO: ProcessCDR(1,14517507,1,1,2) [2025-02-20 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517507', 'tblTempUsageDetail_20' ) start [2025-02-20 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517507', 'tblTempUsageDetail_20' ) end [2025-02-20 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:43:26] Production.INFO: ==6028== Releasing lock... [2025-02-20 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:43:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-20 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:44:06 [end_date_ymd] => 2025-02-20 11:44:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:44:06' and `end` < '2025-02-20 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-02-20 11:44:19] Production.INFO: count ==4454 [2025-02-20 11:44:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:44:06 - End Time 2025-02-20 11:44:06 [2025-02-20 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517512', 'tblTempUsageDetail_20' ) start [2025-02-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517512', 'tblTempUsageDetail_20' ) end [2025-02-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517512', 'tblTempVendorCDR_20' ) start [2025-02-20 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517512', 'tblTempVendorCDR_20' ) end [2025-02-20 11:44:21] Production.INFO: ProcessCDR(1,14517512,1,1,2) [2025-02-20 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517512', 'tblTempUsageDetail_20' ) start [2025-02-20 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517512', 'tblTempUsageDetail_20' ) end [2025-02-20 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:44:27] Production.INFO: ==6139== Releasing lock... [2025-02-20 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:44:27] Production.INFO: 61.25 MB #Memory Used# [2025-02-20 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:45:06 [end_date_ymd] => 2025-02-20 11:45:06 [RateCDR] => 1 ) [2025-02-20 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:45:06' and `end` < '2025-02-20 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:45:18] Production.INFO: count ==4485 [2025-02-20 11:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:45:06 - End Time 2025-02-20 11:45:06 [2025-02-20 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517517', 'tblTempUsageDetail_20' ) start [2025-02-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517517', 'tblTempUsageDetail_20' ) end [2025-02-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517517', 'tblTempVendorCDR_20' ) start [2025-02-20 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517517', 'tblTempVendorCDR_20' ) end [2025-02-20 11:45:21] Production.INFO: ProcessCDR(1,14517517,1,1,2) [2025-02-20 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517517', 'tblTempUsageDetail_20' ) start [2025-02-20 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517517', 'tblTempUsageDetail_20' ) end [2025-02-20 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:45:26] Production.INFO: ==6214== Releasing lock... [2025-02-20 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:45:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-20 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:46:06 [end_date_ymd] => 2025-02-20 11:46:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:46:06' and `end` < '2025-02-20 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-02-20 11:46:19] Production.INFO: count ==4500 [2025-02-20 11:46:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:46:06 - End Time 2025-02-20 11:46:06 [2025-02-20 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517522', 'tblTempUsageDetail_20' ) start [2025-02-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517522', 'tblTempUsageDetail_20' ) end [2025-02-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517522', 'tblTempVendorCDR_20' ) start [2025-02-20 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517522', 'tblTempVendorCDR_20' ) end [2025-02-20 11:46:21] Production.INFO: ProcessCDR(1,14517522,1,1,2) [2025-02-20 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517522', 'tblTempUsageDetail_20' ) start [2025-02-20 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517522', 'tblTempUsageDetail_20' ) end [2025-02-20 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:46:26] Production.INFO: ==6287== Releasing lock... [2025-02-20 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:46:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-20 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:47:05 [end_date_ymd] => 2025-02-20 11:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:47:05' and `end` < '2025-02-20 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-02-20 11:47:18] Production.INFO: count ==4510 [2025-02-20 11:47:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:47:05 - End Time 2025-02-20 11:47:05 [2025-02-20 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517527', 'tblTempUsageDetail_20' ) start [2025-02-20 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517527', 'tblTempUsageDetail_20' ) end [2025-02-20 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517527', 'tblTempVendorCDR_20' ) start [2025-02-20 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517527', 'tblTempVendorCDR_20' ) end [2025-02-20 11:47:20] Production.INFO: ProcessCDR(1,14517527,1,1,2) [2025-02-20 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517527', 'tblTempUsageDetail_20' ) start [2025-02-20 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517527', 'tblTempUsageDetail_20' ) end [2025-02-20 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:47:26] Production.INFO: ==6358== Releasing lock... [2025-02-20 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:47:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-20 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:48:06 [end_date_ymd] => 2025-02-20 11:48:06 [RateCDR] => 1 ) [2025-02-20 11: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-02-20 08:48:06' and `end` < '2025-02-20 11: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-02-20 11:48:19] Production.INFO: count ==4513 [2025-02-20 11:48:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:48:06 - End Time 2025-02-20 11:48:06 [2025-02-20 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517532', 'tblTempUsageDetail_20' ) start [2025-02-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517532', 'tblTempUsageDetail_20' ) end [2025-02-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517532', 'tblTempVendorCDR_20' ) start [2025-02-20 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517532', 'tblTempVendorCDR_20' ) end [2025-02-20 11:48:21] Production.INFO: ProcessCDR(1,14517532,1,1,2) [2025-02-20 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517532', 'tblTempUsageDetail_20' ) start [2025-02-20 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517532', 'tblTempUsageDetail_20' ) end [2025-02-20 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:48:27] Production.INFO: ==6428== Releasing lock... [2025-02-20 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:48:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-20 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:49:05 [end_date_ymd] => 2025-02-20 11:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:49:05' and `end` < '2025-02-20 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-02-20 11:49:18] Production.INFO: count ==4511 [2025-02-20 11:49:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:49:05 - End Time 2025-02-20 11:49:05 [2025-02-20 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517537', 'tblTempUsageDetail_20' ) start [2025-02-20 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517537', 'tblTempUsageDetail_20' ) end [2025-02-20 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517537', 'tblTempVendorCDR_20' ) start [2025-02-20 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517537', 'tblTempVendorCDR_20' ) end [2025-02-20 11:49:20] Production.INFO: ProcessCDR(1,14517537,1,1,2) [2025-02-20 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517537', 'tblTempUsageDetail_20' ) start [2025-02-20 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517537', 'tblTempUsageDetail_20' ) end [2025-02-20 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:49:26] Production.INFO: ==6500== Releasing lock... [2025-02-20 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:49:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-20 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:50:07 [end_date_ymd] => 2025-02-20 11:50:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:50:07' and `end` < '2025-02-20 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-02-20 11:50:19] Production.INFO: count ==4518 [2025-02-20 11:50:22] Production.ERROR: pbx CDR StartTime 2025-02-20 08:50:07 - End Time 2025-02-20 11:50:07 [2025-02-20 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517543', 'tblTempUsageDetail_20' ) start [2025-02-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517543', 'tblTempUsageDetail_20' ) end [2025-02-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517543', 'tblTempVendorCDR_20' ) start [2025-02-20 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517543', 'tblTempVendorCDR_20' ) end [2025-02-20 11:50:22] Production.INFO: ProcessCDR(1,14517543,1,1,2) [2025-02-20 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517543', 'tblTempUsageDetail_20' ) start [2025-02-20 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517543', 'tblTempUsageDetail_20' ) end [2025-02-20 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:50:27] Production.INFO: ==6573== Releasing lock... [2025-02-20 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:50:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-20 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:51:05 [end_date_ymd] => 2025-02-20 11:51:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:51:05' and `end` < '2025-02-20 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-02-20 11:51:18] Production.INFO: count ==4643 [2025-02-20 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:51:05 - End Time 2025-02-20 11:51:05 [2025-02-20 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517548', 'tblTempUsageDetail_20' ) start [2025-02-20 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517548', 'tblTempUsageDetail_20' ) end [2025-02-20 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517548', 'tblTempVendorCDR_20' ) start [2025-02-20 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517548', 'tblTempVendorCDR_20' ) end [2025-02-20 11:51:20] Production.INFO: ProcessCDR(1,14517548,1,1,2) [2025-02-20 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517548', 'tblTempUsageDetail_20' ) start [2025-02-20 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517548', 'tblTempUsageDetail_20' ) end [2025-02-20 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:51:26] Production.INFO: ==6645== Releasing lock... [2025-02-20 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:51:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-20 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:52:06 [end_date_ymd] => 2025-02-20 11:52:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:52:06' and `end` < '2025-02-20 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-02-20 11:52:19] Production.INFO: count ==4648 [2025-02-20 11:52:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:52:06 - End Time 2025-02-20 11:52:06 [2025-02-20 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517553', 'tblTempUsageDetail_20' ) start [2025-02-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517553', 'tblTempUsageDetail_20' ) end [2025-02-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517553', 'tblTempVendorCDR_20' ) start [2025-02-20 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517553', 'tblTempVendorCDR_20' ) end [2025-02-20 11:52:21] Production.INFO: ProcessCDR(1,14517553,1,1,2) [2025-02-20 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517553', 'tblTempUsageDetail_20' ) start [2025-02-20 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517553', 'tblTempUsageDetail_20' ) end [2025-02-20 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:52:27] Production.INFO: ==6717== Releasing lock... [2025-02-20 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:52:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-20 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:53:05 [end_date_ymd] => 2025-02-20 11:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:53:05' and `end` < '2025-02-20 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-02-20 11:53:18] Production.INFO: count ==4672 [2025-02-20 11:53:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:53:05 - End Time 2025-02-20 11:53:05 [2025-02-20 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517558', 'tblTempUsageDetail_20' ) start [2025-02-20 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517558', 'tblTempUsageDetail_20' ) end [2025-02-20 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517558', 'tblTempVendorCDR_20' ) start [2025-02-20 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517558', 'tblTempVendorCDR_20' ) end [2025-02-20 11:53:20] Production.INFO: ProcessCDR(1,14517558,1,1,2) [2025-02-20 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517558', 'tblTempUsageDetail_20' ) start [2025-02-20 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517558', 'tblTempUsageDetail_20' ) end [2025-02-20 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:53:25] Production.INFO: ==6791== Releasing lock... [2025-02-20 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:53:25] Production.INFO: 63 MB #Memory Used# [2025-02-20 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:54:06 [end_date_ymd] => 2025-02-20 11:54:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:54:06' and `end` < '2025-02-20 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-02-20 11:54:18] Production.INFO: count ==4670 [2025-02-20 11:54:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:54:06 - End Time 2025-02-20 11:54:06 [2025-02-20 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517563', 'tblTempUsageDetail_20' ) start [2025-02-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517563', 'tblTempUsageDetail_20' ) end [2025-02-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517563', 'tblTempVendorCDR_20' ) start [2025-02-20 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517563', 'tblTempVendorCDR_20' ) end [2025-02-20 11:54:21] Production.INFO: ProcessCDR(1,14517563,1,1,2) [2025-02-20 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517563', 'tblTempUsageDetail_20' ) start [2025-02-20 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517563', 'tblTempUsageDetail_20' ) end [2025-02-20 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:54:26] Production.INFO: ==6861== Releasing lock... [2025-02-20 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:54:26] Production.INFO: 63 MB #Memory Used# [2025-02-20 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:55:05 [end_date_ymd] => 2025-02-20 11:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:55:05' and `end` < '2025-02-20 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-02-20 11:55:17] Production.INFO: count ==4663 [2025-02-20 11:55:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:55:05 - End Time 2025-02-20 11:55:05 [2025-02-20 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517568', 'tblTempUsageDetail_20' ) start [2025-02-20 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517568', 'tblTempUsageDetail_20' ) end [2025-02-20 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517568', 'tblTempVendorCDR_20' ) start [2025-02-20 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517568', 'tblTempVendorCDR_20' ) end [2025-02-20 11:55:20] Production.INFO: ProcessCDR(1,14517568,1,1,2) [2025-02-20 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517568', 'tblTempUsageDetail_20' ) start [2025-02-20 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517568', 'tblTempUsageDetail_20' ) end [2025-02-20 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:55:25] Production.INFO: ==6934== Releasing lock... [2025-02-20 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:55:25] Production.INFO: 63 MB #Memory Used# [2025-02-20 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:56:06 [end_date_ymd] => 2025-02-20 11:56:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:56:06' and `end` < '2025-02-20 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-02-20 11:56:19] Production.INFO: count ==4656 [2025-02-20 11:56:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:56:06 - End Time 2025-02-20 11:56:06 [2025-02-20 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517573', 'tblTempUsageDetail_20' ) start [2025-02-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517573', 'tblTempUsageDetail_20' ) end [2025-02-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517573', 'tblTempVendorCDR_20' ) start [2025-02-20 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517573', 'tblTempVendorCDR_20' ) end [2025-02-20 11:56:21] Production.INFO: ProcessCDR(1,14517573,1,1,2) [2025-02-20 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517573', 'tblTempUsageDetail_20' ) start [2025-02-20 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517573', 'tblTempUsageDetail_20' ) end [2025-02-20 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:56:26] Production.INFO: ==7007== Releasing lock... [2025-02-20 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:56:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-20 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:57:05 [end_date_ymd] => 2025-02-20 11:57:05 [RateCDR] => 1 ) [2025-02-20 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:57:05' and `end` < '2025-02-20 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:57:18] Production.INFO: count ==4662 [2025-02-20 11:57:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:57:05 - End Time 2025-02-20 11:57:05 [2025-02-20 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517578', 'tblTempUsageDetail_20' ) start [2025-02-20 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517578', 'tblTempUsageDetail_20' ) end [2025-02-20 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517578', 'tblTempVendorCDR_20' ) start [2025-02-20 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517578', 'tblTempVendorCDR_20' ) end [2025-02-20 11:57:20] Production.INFO: ProcessCDR(1,14517578,1,1,2) [2025-02-20 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517578', 'tblTempUsageDetail_20' ) start [2025-02-20 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517578', 'tblTempUsageDetail_20' ) end [2025-02-20 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:57:26] Production.INFO: ==7081== Releasing lock... [2025-02-20 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:57:26] Production.INFO: 63 MB #Memory Used# [2025-02-20 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:58:06 [end_date_ymd] => 2025-02-20 11:58:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 08:58:06' and `end` < '2025-02-20 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-02-20 11:58:19] Production.INFO: count ==4720 [2025-02-20 11:58:21] Production.ERROR: pbx CDR StartTime 2025-02-20 08:58:06 - End Time 2025-02-20 11:58:06 [2025-02-20 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517583', 'tblTempUsageDetail_20' ) start [2025-02-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517583', 'tblTempUsageDetail_20' ) end [2025-02-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517583', 'tblTempVendorCDR_20' ) start [2025-02-20 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517583', 'tblTempVendorCDR_20' ) end [2025-02-20 11:58:21] Production.INFO: ProcessCDR(1,14517583,1,1,2) [2025-02-20 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517583', 'tblTempUsageDetail_20' ) start [2025-02-20 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517583', 'tblTempUsageDetail_20' ) end [2025-02-20 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:58:27] Production.INFO: ==7152== Releasing lock... [2025-02-20 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:58:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-20 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 08:59:05 [end_date_ymd] => 2025-02-20 11:59:05 [RateCDR] => 1 ) [2025-02-20 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 08:59:05' and `end` < '2025-02-20 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 11:59:18] Production.INFO: count ==4748 [2025-02-20 11:59:20] Production.ERROR: pbx CDR StartTime 2025-02-20 08:59:05 - End Time 2025-02-20 11:59:05 [2025-02-20 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517588', 'tblTempUsageDetail_20' ) start [2025-02-20 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517588', 'tblTempUsageDetail_20' ) end [2025-02-20 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517588', 'tblTempVendorCDR_20' ) start [2025-02-20 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517588', 'tblTempVendorCDR_20' ) end [2025-02-20 11:59:20] Production.INFO: ProcessCDR(1,14517588,1,1,2) [2025-02-20 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517588', 'tblTempUsageDetail_20' ) start [2025-02-20 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517588', 'tblTempUsageDetail_20' ) end [2025-02-20 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 11:59:26] Production.INFO: ==7229== Releasing lock... [2025-02-20 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 11:59:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-20 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:00:07 [end_date_ymd] => 2025-02-20 12:00:07 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:00:07' and `end` < '2025-02-20 12: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-02-20 12:00:20] Production.INFO: count ==4777 [2025-02-20 12:00:23] Production.ERROR: pbx CDR StartTime 2025-02-20 09:00:07 - End Time 2025-02-20 12:00:07 [2025-02-20 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517594', 'tblTempUsageDetail_20' ) start [2025-02-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517594', 'tblTempUsageDetail_20' ) end [2025-02-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517594', 'tblTempVendorCDR_20' ) start [2025-02-20 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517594', 'tblTempVendorCDR_20' ) end [2025-02-20 12:00:23] Production.INFO: ProcessCDR(1,14517594,1,1,2) [2025-02-20 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517594', 'tblTempUsageDetail_20' ) start [2025-02-20 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517594', 'tblTempUsageDetail_20' ) end [2025-02-20 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:00:28] Production.INFO: ==7341== Releasing lock... [2025-02-20 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:00:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:01:05 [end_date_ymd] => 2025-02-20 12:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:01:05' and `end` < '2025-02-20 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-02-20 12:01:18] Production.INFO: count ==4814 [2025-02-20 12:01:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:01:05 - End Time 2025-02-20 12:01:05 [2025-02-20 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517599', 'tblTempUsageDetail_20' ) start [2025-02-20 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517599', 'tblTempUsageDetail_20' ) end [2025-02-20 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517599', 'tblTempVendorCDR_20' ) start [2025-02-20 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517599', 'tblTempVendorCDR_20' ) end [2025-02-20 12:01:20] Production.INFO: ProcessCDR(1,14517599,1,1,2) [2025-02-20 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517599', 'tblTempUsageDetail_20' ) start [2025-02-20 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517599', 'tblTempUsageDetail_20' ) end [2025-02-20 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:01:26] Production.INFO: ==7426== Releasing lock... [2025-02-20 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:01:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:02:06 [end_date_ymd] => 2025-02-20 12:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:02:06' and `end` < '2025-02-20 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-02-20 12:02:19] Production.INFO: count ==4827 [2025-02-20 12:02:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:02:06 - End Time 2025-02-20 12:02:06 [2025-02-20 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517604', 'tblTempUsageDetail_20' ) start [2025-02-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517604', 'tblTempUsageDetail_20' ) end [2025-02-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517604', 'tblTempVendorCDR_20' ) start [2025-02-20 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517604', 'tblTempVendorCDR_20' ) end [2025-02-20 12:02:21] Production.INFO: ProcessCDR(1,14517604,1,1,2) [2025-02-20 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517604', 'tblTempUsageDetail_20' ) start [2025-02-20 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517604', 'tblTempUsageDetail_20' ) end [2025-02-20 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:02:27] Production.INFO: ==7499== Releasing lock... [2025-02-20 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:02:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:03:05 [end_date_ymd] => 2025-02-20 12:03:05 [RateCDR] => 1 ) [2025-02-20 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:03:05' and `end` < '2025-02-20 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:03:18] Production.INFO: count ==4812 [2025-02-20 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:03:05 - End Time 2025-02-20 12:03:05 [2025-02-20 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517609', 'tblTempUsageDetail_20' ) start [2025-02-20 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517609', 'tblTempUsageDetail_20' ) end [2025-02-20 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517609', 'tblTempVendorCDR_20' ) start [2025-02-20 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517609', 'tblTempVendorCDR_20' ) end [2025-02-20 12:03:20] Production.INFO: ProcessCDR(1,14517609,1,1,2) [2025-02-20 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517609', 'tblTempUsageDetail_20' ) start [2025-02-20 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517609', 'tblTempUsageDetail_20' ) end [2025-02-20 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:03:26] Production.INFO: ==7571== Releasing lock... [2025-02-20 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:03:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:04:06 [end_date_ymd] => 2025-02-20 12:04:06 [RateCDR] => 1 ) [2025-02-20 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:04:06' and `end` < '2025-02-20 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:04:19] Production.INFO: count ==4798 [2025-02-20 12:04:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:04:06 - End Time 2025-02-20 12:04:06 [2025-02-20 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517614', 'tblTempUsageDetail_20' ) start [2025-02-20 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517614', 'tblTempUsageDetail_20' ) end [2025-02-20 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517614', 'tblTempVendorCDR_20' ) start [2025-02-20 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517614', 'tblTempVendorCDR_20' ) end [2025-02-20 12:04:21] Production.INFO: ProcessCDR(1,14517614,1,1,2) [2025-02-20 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517614', 'tblTempUsageDetail_20' ) start [2025-02-20 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517614', 'tblTempUsageDetail_20' ) end [2025-02-20 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:04:27] Production.INFO: ==7645== Releasing lock... [2025-02-20 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:04:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:05:06 [end_date_ymd] => 2025-02-20 12:05:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:05:06' and `end` < '2025-02-20 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-02-20 12:05:18] Production.INFO: count ==4793 [2025-02-20 12:05:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:05:06 - End Time 2025-02-20 12:05:06 [2025-02-20 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517619', 'tblTempUsageDetail_20' ) start [2025-02-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517619', 'tblTempUsageDetail_20' ) end [2025-02-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517619', 'tblTempVendorCDR_20' ) start [2025-02-20 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517619', 'tblTempVendorCDR_20' ) end [2025-02-20 12:05:21] Production.INFO: ProcessCDR(1,14517619,1,1,2) [2025-02-20 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517619', 'tblTempUsageDetail_20' ) start [2025-02-20 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517619', 'tblTempUsageDetail_20' ) end [2025-02-20 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:05:26] Production.INFO: ==7716== Releasing lock... [2025-02-20 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:05:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:06:06 [end_date_ymd] => 2025-02-20 12:06:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:06:06' and `end` < '2025-02-20 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-02-20 12:06:19] Production.INFO: count ==4789 [2025-02-20 12:06:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:06:06 - End Time 2025-02-20 12:06:06 [2025-02-20 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517624', 'tblTempUsageDetail_20' ) start [2025-02-20 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517624', 'tblTempUsageDetail_20' ) end [2025-02-20 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517624', 'tblTempVendorCDR_20' ) start [2025-02-20 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517624', 'tblTempVendorCDR_20' ) end [2025-02-20 12:06:22] Production.INFO: ProcessCDR(1,14517624,1,1,2) [2025-02-20 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517624', 'tblTempUsageDetail_20' ) start [2025-02-20 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517624', 'tblTempUsageDetail_20' ) end [2025-02-20 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:06:27] Production.INFO: ==7787== Releasing lock... [2025-02-20 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:06:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:07:05 [end_date_ymd] => 2025-02-20 12:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:07:05' and `end` < '2025-02-20 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-02-20 12:07:18] Production.INFO: count ==4772 [2025-02-20 12:07:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:07:05 - End Time 2025-02-20 12:07:05 [2025-02-20 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517629', 'tblTempUsageDetail_20' ) start [2025-02-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517629', 'tblTempUsageDetail_20' ) end [2025-02-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517629', 'tblTempVendorCDR_20' ) start [2025-02-20 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517629', 'tblTempVendorCDR_20' ) end [2025-02-20 12:07:21] Production.INFO: ProcessCDR(1,14517629,1,1,2) [2025-02-20 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517629', 'tblTempUsageDetail_20' ) start [2025-02-20 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517629', 'tblTempUsageDetail_20' ) end [2025-02-20 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:07:26] Production.INFO: ==7857== Releasing lock... [2025-02-20 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:07:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:08:06 [end_date_ymd] => 2025-02-20 12:08:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:08:06' and `end` < '2025-02-20 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-02-20 12:08:19] Production.INFO: count ==4795 [2025-02-20 12:08:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:08:06 - End Time 2025-02-20 12:08:06 [2025-02-20 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517634', 'tblTempUsageDetail_20' ) start [2025-02-20 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517634', 'tblTempUsageDetail_20' ) end [2025-02-20 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517634', 'tblTempVendorCDR_20' ) start [2025-02-20 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517634', 'tblTempVendorCDR_20' ) end [2025-02-20 12:08:21] Production.INFO: ProcessCDR(1,14517634,1,1,2) [2025-02-20 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517634', 'tblTempUsageDetail_20' ) start [2025-02-20 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517634', 'tblTempUsageDetail_20' ) end [2025-02-20 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:08:27] Production.INFO: ==7932== Releasing lock... [2025-02-20 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:08:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:09:05 [end_date_ymd] => 2025-02-20 12:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:09:05' and `end` < '2025-02-20 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-02-20 12:09:18] Production.INFO: count ==4775 [2025-02-20 12:09:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:09:05 - End Time 2025-02-20 12:09:05 [2025-02-20 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517639', 'tblTempUsageDetail_20' ) start [2025-02-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517639', 'tblTempUsageDetail_20' ) end [2025-02-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517639', 'tblTempVendorCDR_20' ) start [2025-02-20 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517639', 'tblTempVendorCDR_20' ) end [2025-02-20 12:09:21] Production.INFO: ProcessCDR(1,14517639,1,1,2) [2025-02-20 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517639', 'tblTempUsageDetail_20' ) start [2025-02-20 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517639', 'tblTempUsageDetail_20' ) end [2025-02-20 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:09:27] Production.INFO: ==8005== Releasing lock... [2025-02-20 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:09:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:10:07 [end_date_ymd] => 2025-02-20 12:10:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:10:07' and `end` < '2025-02-20 12: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-02-20 12:10:20] Production.INFO: count ==4788 [2025-02-20 12:10:22] Production.ERROR: pbx CDR StartTime 2025-02-20 09:10:07 - End Time 2025-02-20 12:10:07 [2025-02-20 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517644', 'tblTempUsageDetail_20' ) start [2025-02-20 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517644', 'tblTempUsageDetail_20' ) end [2025-02-20 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517644', 'tblTempVendorCDR_20' ) start [2025-02-20 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517644', 'tblTempVendorCDR_20' ) end [2025-02-20 12:10:22] Production.INFO: ProcessCDR(1,14517644,1,1,2) [2025-02-20 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517644', 'tblTempUsageDetail_20' ) start [2025-02-20 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517644', 'tblTempUsageDetail_20' ) end [2025-02-20 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:10:27] Production.INFO: ==8080== Releasing lock... [2025-02-20 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:10:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:11:05 [end_date_ymd] => 2025-02-20 12:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:11:05' and `end` < '2025-02-20 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-02-20 12:11:18] Production.INFO: count ==4772 [2025-02-20 12:11:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:11:05 - End Time 2025-02-20 12:11:05 [2025-02-20 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517650', 'tblTempUsageDetail_20' ) start [2025-02-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517650', 'tblTempUsageDetail_20' ) end [2025-02-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517650', 'tblTempVendorCDR_20' ) start [2025-02-20 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517650', 'tblTempVendorCDR_20' ) end [2025-02-20 12:11:21] Production.INFO: ProcessCDR(1,14517650,1,1,2) [2025-02-20 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517650', 'tblTempUsageDetail_20' ) start [2025-02-20 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517650', 'tblTempUsageDetail_20' ) end [2025-02-20 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:11:26] Production.INFO: ==8159== Releasing lock... [2025-02-20 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:11:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:12:06 [end_date_ymd] => 2025-02-20 12:12:06 [RateCDR] => 1 ) [2025-02-20 12:12: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-02-20 09:12:06' and `end` < '2025-02-20 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-02-20 12:12:20] Production.INFO: count ==4783 [2025-02-20 12:12:22] Production.ERROR: pbx CDR StartTime 2025-02-20 09:12:06 - End Time 2025-02-20 12:12:06 [2025-02-20 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517655', 'tblTempUsageDetail_20' ) start [2025-02-20 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517655', 'tblTempUsageDetail_20' ) end [2025-02-20 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517655', 'tblTempVendorCDR_20' ) start [2025-02-20 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517655', 'tblTempVendorCDR_20' ) end [2025-02-20 12:12:22] Production.INFO: ProcessCDR(1,14517655,1,1,2) [2025-02-20 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517655', 'tblTempUsageDetail_20' ) start [2025-02-20 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517655', 'tblTempUsageDetail_20' ) end [2025-02-20 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:12:28] Production.INFO: ==8233== Releasing lock... [2025-02-20 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:12:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:13:05 [end_date_ymd] => 2025-02-20 12:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:13:05' and `end` < '2025-02-20 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-02-20 12:13:18] Production.INFO: count ==4788 [2025-02-20 12:13:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:13:05 - End Time 2025-02-20 12:13:05 [2025-02-20 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517660', 'tblTempUsageDetail_20' ) start [2025-02-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517660', 'tblTempUsageDetail_20' ) end [2025-02-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517660', 'tblTempVendorCDR_20' ) start [2025-02-20 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517660', 'tblTempVendorCDR_20' ) end [2025-02-20 12:13:21] Production.INFO: ProcessCDR(1,14517660,1,1,2) [2025-02-20 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517660', 'tblTempUsageDetail_20' ) start [2025-02-20 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517660', 'tblTempUsageDetail_20' ) end [2025-02-20 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:13:26] Production.INFO: ==8307== Releasing lock... [2025-02-20 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:13:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:14:06 [end_date_ymd] => 2025-02-20 12:14:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:14:06' and `end` < '2025-02-20 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-02-20 12:14:19] Production.INFO: count ==4786 [2025-02-20 12:14:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:14:06 - End Time 2025-02-20 12:14:06 [2025-02-20 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517665', 'tblTempUsageDetail_20' ) start [2025-02-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517665', 'tblTempUsageDetail_20' ) end [2025-02-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517665', 'tblTempVendorCDR_20' ) start [2025-02-20 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517665', 'tblTempVendorCDR_20' ) end [2025-02-20 12:14:21] Production.INFO: ProcessCDR(1,14517665,1,1,2) [2025-02-20 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517665', 'tblTempUsageDetail_20' ) start [2025-02-20 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517665', 'tblTempUsageDetail_20' ) end [2025-02-20 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:14:26] Production.INFO: ==8389== Releasing lock... [2025-02-20 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:14:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:15:06 [end_date_ymd] => 2025-02-20 12:15:06 [RateCDR] => 1 ) [2025-02-20 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:15:06' and `end` < '2025-02-20 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:15:19] Production.INFO: count ==4787 [2025-02-20 12:15:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:15:06 - End Time 2025-02-20 12:15:06 [2025-02-20 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517670', 'tblTempUsageDetail_20' ) start [2025-02-20 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517670', 'tblTempUsageDetail_20' ) end [2025-02-20 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517670', 'tblTempVendorCDR_20' ) start [2025-02-20 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517670', 'tblTempVendorCDR_20' ) end [2025-02-20 12:15:22] Production.INFO: ProcessCDR(1,14517670,1,1,2) [2025-02-20 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517670', 'tblTempUsageDetail_20' ) start [2025-02-20 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517670', 'tblTempUsageDetail_20' ) end [2025-02-20 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:15:27] Production.INFO: ==8506== Releasing lock... [2025-02-20 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:15:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:16:05 [end_date_ymd] => 2025-02-20 12:16:05 [RateCDR] => 1 ) [2025-02-20 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:16:05' and `end` < '2025-02-20 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:16:18] Production.INFO: count ==4790 [2025-02-20 12:16:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:16:05 - End Time 2025-02-20 12:16:05 [2025-02-20 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517675', 'tblTempUsageDetail_20' ) start [2025-02-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517675', 'tblTempUsageDetail_20' ) end [2025-02-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517675', 'tblTempVendorCDR_20' ) start [2025-02-20 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517675', 'tblTempVendorCDR_20' ) end [2025-02-20 12:16:21] Production.INFO: ProcessCDR(1,14517675,1,1,2) [2025-02-20 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517675', 'tblTempUsageDetail_20' ) start [2025-02-20 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517675', 'tblTempUsageDetail_20' ) end [2025-02-20 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:16:26] Production.INFO: ==8580== Releasing lock... [2025-02-20 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:16:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:17:06 [end_date_ymd] => 2025-02-20 12:17:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:17:06' and `end` < '2025-02-20 12: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-02-20 12:17:19] Production.INFO: count ==4784 [2025-02-20 12:17:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:17:06 - End Time 2025-02-20 12:17:06 [2025-02-20 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517680', 'tblTempUsageDetail_20' ) start [2025-02-20 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517680', 'tblTempUsageDetail_20' ) end [2025-02-20 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517680', 'tblTempVendorCDR_20' ) start [2025-02-20 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517680', 'tblTempVendorCDR_20' ) end [2025-02-20 12:17:21] Production.INFO: ProcessCDR(1,14517680,1,1,2) [2025-02-20 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517680', 'tblTempUsageDetail_20' ) start [2025-02-20 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517680', 'tblTempUsageDetail_20' ) end [2025-02-20 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:17:27] Production.INFO: ==8655== Releasing lock... [2025-02-20 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:17:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:18:05 [end_date_ymd] => 2025-02-20 12:18:05 [RateCDR] => 1 ) [2025-02-20 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:18:05' and `end` < '2025-02-20 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:18:18] Production.INFO: count ==4775 [2025-02-20 12:18:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:18:05 - End Time 2025-02-20 12:18:05 [2025-02-20 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517685', 'tblTempUsageDetail_20' ) start [2025-02-20 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517685', 'tblTempUsageDetail_20' ) end [2025-02-20 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517685', 'tblTempVendorCDR_20' ) start [2025-02-20 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517685', 'tblTempVendorCDR_20' ) end [2025-02-20 12:18:20] Production.INFO: ProcessCDR(1,14517685,1,1,2) [2025-02-20 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517685', 'tblTempUsageDetail_20' ) start [2025-02-20 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517685', 'tblTempUsageDetail_20' ) end [2025-02-20 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:18:26] Production.INFO: ==8739== Releasing lock... [2025-02-20 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:18:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:19:06 [end_date_ymd] => 2025-02-20 12:19:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:19:06' and `end` < '2025-02-20 12: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-02-20 12:19:19] Production.INFO: count ==4786 [2025-02-20 12:19:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:19:06 - End Time 2025-02-20 12:19:06 [2025-02-20 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517690', 'tblTempUsageDetail_20' ) start [2025-02-20 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517690', 'tblTempUsageDetail_20' ) end [2025-02-20 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517690', 'tblTempVendorCDR_20' ) start [2025-02-20 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517690', 'tblTempVendorCDR_20' ) end [2025-02-20 12:19:21] Production.INFO: ProcessCDR(1,14517690,1,1,2) [2025-02-20 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517690', 'tblTempUsageDetail_20' ) start [2025-02-20 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517690', 'tblTempUsageDetail_20' ) end [2025-02-20 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:19:27] Production.INFO: ==8823== Releasing lock... [2025-02-20 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:19:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:20:06 [end_date_ymd] => 2025-02-20 12:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:20:06' and `end` < '2025-02-20 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-02-20 12:20:19] Production.INFO: count ==4780 [2025-02-20 12:20:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:20:06 - End Time 2025-02-20 12:20:06 [2025-02-20 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517696', 'tblTempUsageDetail_20' ) start [2025-02-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517696', 'tblTempUsageDetail_20' ) end [2025-02-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517696', 'tblTempVendorCDR_20' ) start [2025-02-20 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517696', 'tblTempVendorCDR_20' ) end [2025-02-20 12:20:21] Production.INFO: ProcessCDR(1,14517696,1,1,2) [2025-02-20 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517696', 'tblTempUsageDetail_20' ) start [2025-02-20 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517696', 'tblTempUsageDetail_20' ) end [2025-02-20 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:20:27] Production.INFO: ==8903== Releasing lock... [2025-02-20 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:20:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:21:06 [end_date_ymd] => 2025-02-20 12:21:06 [RateCDR] => 1 ) [2025-02-20 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:21:06' and `end` < '2025-02-20 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:21:19] Production.INFO: count ==4795 [2025-02-20 12:21:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:21:06 - End Time 2025-02-20 12:21:06 [2025-02-20 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517701', 'tblTempUsageDetail_20' ) start [2025-02-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517701', 'tblTempUsageDetail_20' ) end [2025-02-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517701', 'tblTempVendorCDR_20' ) start [2025-02-20 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517701', 'tblTempVendorCDR_20' ) end [2025-02-20 12:21:21] Production.INFO: ProcessCDR(1,14517701,1,1,2) [2025-02-20 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517701', 'tblTempUsageDetail_20' ) start [2025-02-20 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517701', 'tblTempUsageDetail_20' ) end [2025-02-20 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:21:27] Production.INFO: ==8983== Releasing lock... [2025-02-20 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:21:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:22:05 [end_date_ymd] => 2025-02-20 12:22:05 [RateCDR] => 1 ) [2025-02-20 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:22:05' and `end` < '2025-02-20 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:22:18] Production.INFO: count ==4796 [2025-02-20 12:22:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:22:05 - End Time 2025-02-20 12:22:05 [2025-02-20 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517706', 'tblTempUsageDetail_20' ) start [2025-02-20 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517706', 'tblTempUsageDetail_20' ) end [2025-02-20 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517706', 'tblTempVendorCDR_20' ) start [2025-02-20 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517706', 'tblTempVendorCDR_20' ) end [2025-02-20 12:22:21] Production.INFO: ProcessCDR(1,14517706,1,1,2) [2025-02-20 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517706', 'tblTempUsageDetail_20' ) start [2025-02-20 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517706', 'tblTempUsageDetail_20' ) end [2025-02-20 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:22:26] Production.INFO: ==9058== Releasing lock... [2025-02-20 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:22:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:23:06 [end_date_ymd] => 2025-02-20 12:23:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:23:06' and `end` < '2025-02-20 12: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-02-20 12:23:19] Production.INFO: count ==4800 [2025-02-20 12:23:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:23:06 - End Time 2025-02-20 12:23:06 [2025-02-20 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517711', 'tblTempUsageDetail_20' ) start [2025-02-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517711', 'tblTempUsageDetail_20' ) end [2025-02-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517711', 'tblTempVendorCDR_20' ) start [2025-02-20 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517711', 'tblTempVendorCDR_20' ) end [2025-02-20 12:23:21] Production.INFO: ProcessCDR(1,14517711,1,1,2) [2025-02-20 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517711', 'tblTempUsageDetail_20' ) start [2025-02-20 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517711', 'tblTempUsageDetail_20' ) end [2025-02-20 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:23:26] Production.INFO: ==9136== Releasing lock... [2025-02-20 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:23:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:24:06 [end_date_ymd] => 2025-02-20 12:24:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:24:06' and `end` < '2025-02-20 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-02-20 12:24:19] Production.INFO: count ==4794 [2025-02-20 12:24:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:24:06 - End Time 2025-02-20 12:24:06 [2025-02-20 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517716', 'tblTempUsageDetail_20' ) start [2025-02-20 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517716', 'tblTempUsageDetail_20' ) end [2025-02-20 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517716', 'tblTempVendorCDR_20' ) start [2025-02-20 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517716', 'tblTempVendorCDR_20' ) end [2025-02-20 12:24:22] Production.INFO: ProcessCDR(1,14517716,1,1,2) [2025-02-20 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517716', 'tblTempUsageDetail_20' ) start [2025-02-20 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517716', 'tblTempUsageDetail_20' ) end [2025-02-20 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:24:27] Production.INFO: ==9212== Releasing lock... [2025-02-20 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:24:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:25:06 [end_date_ymd] => 2025-02-20 12:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:25:06' and `end` < '2025-02-20 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-02-20 12:25:19] Production.INFO: count ==4790 [2025-02-20 12:25:22] Production.ERROR: pbx CDR StartTime 2025-02-20 09:25:06 - End Time 2025-02-20 12:25:06 [2025-02-20 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517721', 'tblTempUsageDetail_20' ) start [2025-02-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517721', 'tblTempUsageDetail_20' ) end [2025-02-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517721', 'tblTempVendorCDR_20' ) start [2025-02-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517721', 'tblTempVendorCDR_20' ) end [2025-02-20 12:25:22] Production.INFO: ProcessCDR(1,14517721,1,1,2) [2025-02-20 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517721', 'tblTempUsageDetail_20' ) start [2025-02-20 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517721', 'tblTempUsageDetail_20' ) end [2025-02-20 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:25:28] Production.INFO: ==9292== Releasing lock... [2025-02-20 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:25:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:26:06 [end_date_ymd] => 2025-02-20 12:26:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:26:06' and `end` < '2025-02-20 12: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-02-20 12:26:18] Production.INFO: count ==4788 [2025-02-20 12:26:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:26:06 - End Time 2025-02-20 12:26:06 [2025-02-20 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517726', 'tblTempUsageDetail_20' ) start [2025-02-20 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517726', 'tblTempUsageDetail_20' ) end [2025-02-20 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517726', 'tblTempVendorCDR_20' ) start [2025-02-20 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517726', 'tblTempVendorCDR_20' ) end [2025-02-20 12:26:21] Production.INFO: ProcessCDR(1,14517726,1,1,2) [2025-02-20 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517726', 'tblTempUsageDetail_20' ) start [2025-02-20 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517726', 'tblTempUsageDetail_20' ) end [2025-02-20 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:26:27] Production.INFO: ==9373== Releasing lock... [2025-02-20 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:26:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:27:06 [end_date_ymd] => 2025-02-20 12:27:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:27:06' and `end` < '2025-02-20 12: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-02-20 12:27:19] Production.INFO: count ==4775 [2025-02-20 12:27:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:27:06 - End Time 2025-02-20 12:27:06 [2025-02-20 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517731', 'tblTempUsageDetail_20' ) start [2025-02-20 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517731', 'tblTempUsageDetail_20' ) end [2025-02-20 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517731', 'tblTempVendorCDR_20' ) start [2025-02-20 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517731', 'tblTempVendorCDR_20' ) end [2025-02-20 12:27:21] Production.INFO: ProcessCDR(1,14517731,1,1,2) [2025-02-20 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517731', 'tblTempUsageDetail_20' ) start [2025-02-20 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517731', 'tblTempUsageDetail_20' ) end [2025-02-20 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:27:27] Production.INFO: ==9455== Releasing lock... [2025-02-20 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:27:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:28:05 [end_date_ymd] => 2025-02-20 12:28:05 [RateCDR] => 1 ) [2025-02-20 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:28:05' and `end` < '2025-02-20 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:28:18] Production.INFO: count ==4785 [2025-02-20 12:28:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:28:05 - End Time 2025-02-20 12:28:05 [2025-02-20 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517736', 'tblTempUsageDetail_20' ) start [2025-02-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517736', 'tblTempUsageDetail_20' ) end [2025-02-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517736', 'tblTempVendorCDR_20' ) start [2025-02-20 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517736', 'tblTempVendorCDR_20' ) end [2025-02-20 12:28:21] Production.INFO: ProcessCDR(1,14517736,1,1,2) [2025-02-20 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517736', 'tblTempUsageDetail_20' ) start [2025-02-20 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517736', 'tblTempUsageDetail_20' ) end [2025-02-20 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:28:26] Production.INFO: ==9530== Releasing lock... [2025-02-20 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:28:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:29:06 [end_date_ymd] => 2025-02-20 12:29:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:29:06' and `end` < '2025-02-20 12: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-02-20 12:29:19] Production.INFO: count ==4786 [2025-02-20 12:29:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:29:06 - End Time 2025-02-20 12:29:06 [2025-02-20 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517741', 'tblTempUsageDetail_20' ) start [2025-02-20 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517741', 'tblTempUsageDetail_20' ) end [2025-02-20 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517741', 'tblTempVendorCDR_20' ) start [2025-02-20 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517741', 'tblTempVendorCDR_20' ) end [2025-02-20 12:29:21] Production.INFO: ProcessCDR(1,14517741,1,1,2) [2025-02-20 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517741', 'tblTempUsageDetail_20' ) start [2025-02-20 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517741', 'tblTempUsageDetail_20' ) end [2025-02-20 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:29:27] Production.INFO: ==9607== Releasing lock... [2025-02-20 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:29:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:30:06 [end_date_ymd] => 2025-02-20 12:30:06 [RateCDR] => 1 ) [2025-02-20 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:30:06' and `end` < '2025-02-20 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:30:19] Production.INFO: count ==4805 [2025-02-20 12:30:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:30:06 - End Time 2025-02-20 12:30:06 [2025-02-20 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517747', 'tblTempUsageDetail_20' ) start [2025-02-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517747', 'tblTempUsageDetail_20' ) end [2025-02-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517747', 'tblTempVendorCDR_20' ) start [2025-02-20 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517747', 'tblTempVendorCDR_20' ) end [2025-02-20 12:30:22] Production.INFO: ProcessCDR(1,14517747,1,1,2) [2025-02-20 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517747', 'tblTempUsageDetail_20' ) start [2025-02-20 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517747', 'tblTempUsageDetail_20' ) end [2025-02-20 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:30:27] Production.INFO: ==9688== Releasing lock... [2025-02-20 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:30:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:31:06 [end_date_ymd] => 2025-02-20 12:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:31:06' and `end` < '2025-02-20 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-02-20 12:31:19] Production.INFO: count ==4810 [2025-02-20 12:31:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:31:06 - End Time 2025-02-20 12:31:06 [2025-02-20 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517752', 'tblTempUsageDetail_20' ) start [2025-02-20 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517752', 'tblTempUsageDetail_20' ) end [2025-02-20 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517752', 'tblTempVendorCDR_20' ) start [2025-02-20 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517752', 'tblTempVendorCDR_20' ) end [2025-02-20 12:31:21] Production.INFO: ProcessCDR(1,14517752,1,1,2) [2025-02-20 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517752', 'tblTempUsageDetail_20' ) start [2025-02-20 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517752', 'tblTempUsageDetail_20' ) end [2025-02-20 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:31:27] Production.INFO: ==9804== Releasing lock... [2025-02-20 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:31:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:32:06 [end_date_ymd] => 2025-02-20 12:32:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:32:06' and `end` < '2025-02-20 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-02-20 12:32:18] Production.INFO: count ==4810 [2025-02-20 12:32:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:32:06 - End Time 2025-02-20 12:32:06 [2025-02-20 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517757', 'tblTempUsageDetail_20' ) start [2025-02-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517757', 'tblTempUsageDetail_20' ) end [2025-02-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517757', 'tblTempVendorCDR_20' ) start [2025-02-20 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517757', 'tblTempVendorCDR_20' ) end [2025-02-20 12:32:21] Production.INFO: ProcessCDR(1,14517757,1,1,2) [2025-02-20 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517757', 'tblTempUsageDetail_20' ) start [2025-02-20 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517757', 'tblTempUsageDetail_20' ) end [2025-02-20 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:32:27] Production.INFO: ==9877== Releasing lock... [2025-02-20 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:32:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:33:06 [end_date_ymd] => 2025-02-20 12:33:06 [RateCDR] => 1 ) [2025-02-20 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:33:06' and `end` < '2025-02-20 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:33:18] Production.INFO: count ==4796 [2025-02-20 12:33:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:33:06 - End Time 2025-02-20 12:33:06 [2025-02-20 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517762', 'tblTempUsageDetail_20' ) start [2025-02-20 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517762', 'tblTempUsageDetail_20' ) end [2025-02-20 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517762', 'tblTempVendorCDR_20' ) start [2025-02-20 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517762', 'tblTempVendorCDR_20' ) end [2025-02-20 12:33:21] Production.INFO: ProcessCDR(1,14517762,1,1,2) [2025-02-20 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517762', 'tblTempUsageDetail_20' ) start [2025-02-20 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517762', 'tblTempUsageDetail_20' ) end [2025-02-20 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:33:26] Production.INFO: ==9958== Releasing lock... [2025-02-20 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:33:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:34:05 [end_date_ymd] => 2025-02-20 12:34:05 [RateCDR] => 1 ) [2025-02-20 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:34:05' and `end` < '2025-02-20 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:34:18] Production.INFO: count ==4792 [2025-02-20 12:34:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:34:05 - End Time 2025-02-20 12:34:05 [2025-02-20 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517767', 'tblTempUsageDetail_20' ) start [2025-02-20 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517767', 'tblTempUsageDetail_20' ) end [2025-02-20 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517767', 'tblTempVendorCDR_20' ) start [2025-02-20 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517767', 'tblTempVendorCDR_20' ) end [2025-02-20 12:34:20] Production.INFO: ProcessCDR(1,14517767,1,1,2) [2025-02-20 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517767', 'tblTempUsageDetail_20' ) start [2025-02-20 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517767', 'tblTempUsageDetail_20' ) end [2025-02-20 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:34:26] Production.INFO: ==10035== Releasing lock... [2025-02-20 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:34:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:35:06 [end_date_ymd] => 2025-02-20 12:35:06 [RateCDR] => 1 ) [2025-02-20 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:35:06' and `end` < '2025-02-20 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:35:19] Production.INFO: count ==4816 [2025-02-20 12:35:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:35:06 - End Time 2025-02-20 12:35:06 [2025-02-20 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517772', 'tblTempUsageDetail_20' ) start [2025-02-20 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517772', 'tblTempUsageDetail_20' ) end [2025-02-20 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517772', 'tblTempVendorCDR_20' ) start [2025-02-20 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517772', 'tblTempVendorCDR_20' ) end [2025-02-20 12:35:21] Production.INFO: ProcessCDR(1,14517772,1,1,2) [2025-02-20 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517772', 'tblTempUsageDetail_20' ) start [2025-02-20 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517772', 'tblTempUsageDetail_20' ) end [2025-02-20 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:35:26] Production.INFO: ==10106== Releasing lock... [2025-02-20 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:35:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:36:05 [end_date_ymd] => 2025-02-20 12:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:36:05' and `end` < '2025-02-20 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-02-20 12:36:18] Production.INFO: count ==4811 [2025-02-20 12:36:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:36:05 - End Time 2025-02-20 12:36:05 [2025-02-20 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517777', 'tblTempUsageDetail_20' ) start [2025-02-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517777', 'tblTempUsageDetail_20' ) end [2025-02-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517777', 'tblTempVendorCDR_20' ) start [2025-02-20 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517777', 'tblTempVendorCDR_20' ) end [2025-02-20 12:36:21] Production.INFO: ProcessCDR(1,14517777,1,1,2) [2025-02-20 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517777', 'tblTempUsageDetail_20' ) start [2025-02-20 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517777', 'tblTempUsageDetail_20' ) end [2025-02-20 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:36:26] Production.INFO: ==10181== Releasing lock... [2025-02-20 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:36:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:37:06 [end_date_ymd] => 2025-02-20 12:37:06 [RateCDR] => 1 ) [2025-02-20 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:37:06' and `end` < '2025-02-20 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:37:19] Production.INFO: count ==4801 [2025-02-20 12:37:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:37:06 - End Time 2025-02-20 12:37:06 [2025-02-20 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517782', 'tblTempUsageDetail_20' ) start [2025-02-20 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517782', 'tblTempUsageDetail_20' ) end [2025-02-20 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517782', 'tblTempVendorCDR_20' ) start [2025-02-20 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517782', 'tblTempVendorCDR_20' ) end [2025-02-20 12:37:22] Production.INFO: ProcessCDR(1,14517782,1,1,2) [2025-02-20 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517782', 'tblTempUsageDetail_20' ) start [2025-02-20 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517782', 'tblTempUsageDetail_20' ) end [2025-02-20 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:37:27] Production.INFO: ==10256== Releasing lock... [2025-02-20 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:37:27] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:38:05 [end_date_ymd] => 2025-02-20 12:38:05 [RateCDR] => 1 ) [2025-02-20 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:38:05' and `end` < '2025-02-20 12: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-02-20 12:38:18] Production.INFO: count ==4799 [2025-02-20 12:38:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:38:05 - End Time 2025-02-20 12:38:05 [2025-02-20 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517787', 'tblTempUsageDetail_20' ) start [2025-02-20 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517787', 'tblTempUsageDetail_20' ) end [2025-02-20 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517787', 'tblTempVendorCDR_20' ) start [2025-02-20 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517787', 'tblTempVendorCDR_20' ) end [2025-02-20 12:38:21] Production.INFO: ProcessCDR(1,14517787,1,1,2) [2025-02-20 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517787', 'tblTempUsageDetail_20' ) start [2025-02-20 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517787', 'tblTempUsageDetail_20' ) end [2025-02-20 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:38:26] Production.INFO: ==10333== Releasing lock... [2025-02-20 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:38:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:39:05 [end_date_ymd] => 2025-02-20 12:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:39:05' and `end` < '2025-02-20 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:39:18] Production.INFO: count ==4796 [2025-02-20 12:39:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:39:05 - End Time 2025-02-20 12:39:05 [2025-02-20 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517792', 'tblTempUsageDetail_20' ) start [2025-02-20 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517792', 'tblTempUsageDetail_20' ) end [2025-02-20 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517792', 'tblTempVendorCDR_20' ) start [2025-02-20 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517792', 'tblTempVendorCDR_20' ) end [2025-02-20 12:39:21] Production.INFO: ProcessCDR(1,14517792,1,1,2) [2025-02-20 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517792', 'tblTempUsageDetail_20' ) start [2025-02-20 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517792', 'tblTempUsageDetail_20' ) end [2025-02-20 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:39:26] Production.INFO: ==10412== Releasing lock... [2025-02-20 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:39:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:40:06 [end_date_ymd] => 2025-02-20 12:40:06 [RateCDR] => 1 ) [2025-02-20 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:40:06' and `end` < '2025-02-20 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:40:19] Production.INFO: count ==4779 [2025-02-20 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:40:06 - End Time 2025-02-20 12:40:06 [2025-02-20 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517798', 'tblTempUsageDetail_20' ) start [2025-02-20 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517798', 'tblTempUsageDetail_20' ) end [2025-02-20 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517798', 'tblTempVendorCDR_20' ) start [2025-02-20 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517798', 'tblTempVendorCDR_20' ) end [2025-02-20 12:40:22] Production.INFO: ProcessCDR(1,14517798,1,1,2) [2025-02-20 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517798', 'tblTempUsageDetail_20' ) start [2025-02-20 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517798', 'tblTempUsageDetail_20' ) end [2025-02-20 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:40:27] Production.INFO: ==10488== Releasing lock... [2025-02-20 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:40:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:41:06 [end_date_ymd] => 2025-02-20 12:41:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:41:06' and `end` < '2025-02-20 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:41:18] Production.INFO: count ==4798 [2025-02-20 12:41:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:41:06 - End Time 2025-02-20 12:41:06 [2025-02-20 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517803', 'tblTempUsageDetail_20' ) start [2025-02-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517803', 'tblTempUsageDetail_20' ) end [2025-02-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517803', 'tblTempVendorCDR_20' ) start [2025-02-20 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517803', 'tblTempVendorCDR_20' ) end [2025-02-20 12:41:21] Production.INFO: ProcessCDR(1,14517803,1,1,2) [2025-02-20 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517803', 'tblTempUsageDetail_20' ) start [2025-02-20 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517803', 'tblTempUsageDetail_20' ) end [2025-02-20 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:41:26] Production.INFO: ==10571== Releasing lock... [2025-02-20 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:41:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:42:06 [end_date_ymd] => 2025-02-20 12:42:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:42:06' and `end` < '2025-02-20 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-02-20 12:42:18] Production.INFO: count ==4784 [2025-02-20 12:42:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:42:06 - End Time 2025-02-20 12:42:06 [2025-02-20 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517808', 'tblTempUsageDetail_20' ) start [2025-02-20 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517808', 'tblTempUsageDetail_20' ) end [2025-02-20 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517808', 'tblTempVendorCDR_20' ) start [2025-02-20 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517808', 'tblTempVendorCDR_20' ) end [2025-02-20 12:42:21] Production.INFO: ProcessCDR(1,14517808,1,1,2) [2025-02-20 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517808', 'tblTempUsageDetail_20' ) start [2025-02-20 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517808', 'tblTempUsageDetail_20' ) end [2025-02-20 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:42:26] Production.INFO: ==10646== Releasing lock... [2025-02-20 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:42:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:43:05 [end_date_ymd] => 2025-02-20 12:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:43:05' and `end` < '2025-02-20 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-02-20 12:43:18] Production.INFO: count ==4800 [2025-02-20 12:43:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:43:05 - End Time 2025-02-20 12:43:05 [2025-02-20 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517813', 'tblTempUsageDetail_20' ) start [2025-02-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517813', 'tblTempUsageDetail_20' ) end [2025-02-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517813', 'tblTempVendorCDR_20' ) start [2025-02-20 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517813', 'tblTempVendorCDR_20' ) end [2025-02-20 12:43:20] Production.INFO: ProcessCDR(1,14517813,1,1,2) [2025-02-20 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517813', 'tblTempUsageDetail_20' ) start [2025-02-20 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517813', 'tblTempUsageDetail_20' ) end [2025-02-20 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:43:24] Production.INFO: ==10722== Releasing lock... [2025-02-20 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:43:24] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:44:06 [end_date_ymd] => 2025-02-20 12:44:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:44:06' and `end` < '2025-02-20 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-02-20 12:44:18] Production.INFO: count ==4819 [2025-02-20 12:44:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:44:06 - End Time 2025-02-20 12:44:06 [2025-02-20 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517818', 'tblTempUsageDetail_20' ) start [2025-02-20 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517818', 'tblTempUsageDetail_20' ) end [2025-02-20 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517818', 'tblTempVendorCDR_20' ) start [2025-02-20 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517818', 'tblTempVendorCDR_20' ) end [2025-02-20 12:44:21] Production.INFO: ProcessCDR(1,14517818,1,1,2) [2025-02-20 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517818', 'tblTempUsageDetail_20' ) start [2025-02-20 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517818', 'tblTempUsageDetail_20' ) end [2025-02-20 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:44:26] Production.INFO: ==10800== Releasing lock... [2025-02-20 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:44:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:45:05 [end_date_ymd] => 2025-02-20 12:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:45:05' and `end` < '2025-02-20 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-02-20 12:45:18] Production.INFO: count ==4831 [2025-02-20 12:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:45:05 - End Time 2025-02-20 12:45:05 [2025-02-20 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517823', 'tblTempUsageDetail_20' ) start [2025-02-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517823', 'tblTempUsageDetail_20' ) end [2025-02-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517823', 'tblTempVendorCDR_20' ) start [2025-02-20 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517823', 'tblTempVendorCDR_20' ) end [2025-02-20 12:45:20] Production.INFO: ProcessCDR(1,14517823,1,1,2) [2025-02-20 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517823', 'tblTempUsageDetail_20' ) start [2025-02-20 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517823', 'tblTempUsageDetail_20' ) end [2025-02-20 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:45:26] Production.INFO: ==10874== Releasing lock... [2025-02-20 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:45:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:46:06 [end_date_ymd] => 2025-02-20 12:46:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:46:06' and `end` < '2025-02-20 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-02-20 12:46:18] Production.INFO: count ==4840 [2025-02-20 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:46:06 - End Time 2025-02-20 12:46:06 [2025-02-20 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517828', 'tblTempUsageDetail_20' ) start [2025-02-20 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517828', 'tblTempUsageDetail_20' ) end [2025-02-20 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517828', 'tblTempVendorCDR_20' ) start [2025-02-20 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517828', 'tblTempVendorCDR_20' ) end [2025-02-20 12:46:21] Production.INFO: ProcessCDR(1,14517828,1,1,2) [2025-02-20 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517828', 'tblTempUsageDetail_20' ) start [2025-02-20 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517828', 'tblTempUsageDetail_20' ) end [2025-02-20 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:46:26] Production.INFO: ==10987== Releasing lock... [2025-02-20 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:46:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:47:05 [end_date_ymd] => 2025-02-20 12:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:47:05' and `end` < '2025-02-20 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-02-20 12:47:18] Production.INFO: count ==4841 [2025-02-20 12:47:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:47:05 - End Time 2025-02-20 12:47:05 [2025-02-20 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517833', 'tblTempUsageDetail_20' ) start [2025-02-20 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517833', 'tblTempUsageDetail_20' ) end [2025-02-20 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517833', 'tblTempVendorCDR_20' ) start [2025-02-20 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517833', 'tblTempVendorCDR_20' ) end [2025-02-20 12:47:20] Production.INFO: ProcessCDR(1,14517833,1,1,2) [2025-02-20 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517833', 'tblTempUsageDetail_20' ) start [2025-02-20 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517833', 'tblTempUsageDetail_20' ) end [2025-02-20 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:47:26] Production.INFO: ==11073== Releasing lock... [2025-02-20 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:47:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:48:06 [end_date_ymd] => 2025-02-20 12:48:06 [RateCDR] => 1 ) [2025-02-20 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:48:06' and `end` < '2025-02-20 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:48:19] Production.INFO: count ==4845 [2025-02-20 12:48:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:48:06 - End Time 2025-02-20 12:48:06 [2025-02-20 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517838', 'tblTempUsageDetail_20' ) start [2025-02-20 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517838', 'tblTempUsageDetail_20' ) end [2025-02-20 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517838', 'tblTempVendorCDR_20' ) start [2025-02-20 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517838', 'tblTempVendorCDR_20' ) end [2025-02-20 12:48:21] Production.INFO: ProcessCDR(1,14517838,1,1,2) [2025-02-20 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517838', 'tblTempUsageDetail_20' ) start [2025-02-20 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517838', 'tblTempUsageDetail_20' ) end [2025-02-20 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:48:27] Production.INFO: ==11147== Releasing lock... [2025-02-20 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:48:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:49:05 [end_date_ymd] => 2025-02-20 12:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:49:05' and `end` < '2025-02-20 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-02-20 12:49:18] Production.INFO: count ==4835 [2025-02-20 12:49:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:49:05 - End Time 2025-02-20 12:49:05 [2025-02-20 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517843', 'tblTempUsageDetail_20' ) start [2025-02-20 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517843', 'tblTempUsageDetail_20' ) end [2025-02-20 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517843', 'tblTempVendorCDR_20' ) start [2025-02-20 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517843', 'tblTempVendorCDR_20' ) end [2025-02-20 12:49:20] Production.INFO: ProcessCDR(1,14517843,1,1,2) [2025-02-20 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517843', 'tblTempUsageDetail_20' ) start [2025-02-20 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517843', 'tblTempUsageDetail_20' ) end [2025-02-20 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:49:24] Production.INFO: ==11222== Releasing lock... [2025-02-20 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:49:24] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:50:07 [end_date_ymd] => 2025-02-20 12:50:07 [RateCDR] => 1 ) [2025-02-20 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 09:50:07' and `end` < '2025-02-20 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:50:20] Production.INFO: count ==4837 [2025-02-20 12:50:22] Production.ERROR: pbx CDR StartTime 2025-02-20 09:50:07 - End Time 2025-02-20 12:50:07 [2025-02-20 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517849', 'tblTempUsageDetail_20' ) start [2025-02-20 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517849', 'tblTempUsageDetail_20' ) end [2025-02-20 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517849', 'tblTempVendorCDR_20' ) start [2025-02-20 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517849', 'tblTempVendorCDR_20' ) end [2025-02-20 12:50:22] Production.INFO: ProcessCDR(1,14517849,1,1,2) [2025-02-20 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517849', 'tblTempUsageDetail_20' ) start [2025-02-20 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517849', 'tblTempUsageDetail_20' ) end [2025-02-20 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:50:28] Production.INFO: ==11297== Releasing lock... [2025-02-20 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:50:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:51:05 [end_date_ymd] => 2025-02-20 12:51:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:51:05' and `end` < '2025-02-20 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-02-20 12:51:18] Production.INFO: count ==4844 [2025-02-20 12:51:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:51:05 - End Time 2025-02-20 12:51:05 [2025-02-20 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517854', 'tblTempUsageDetail_20' ) start [2025-02-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517854', 'tblTempUsageDetail_20' ) end [2025-02-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517854', 'tblTempVendorCDR_20' ) start [2025-02-20 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517854', 'tblTempVendorCDR_20' ) end [2025-02-20 12:51:21] Production.INFO: ProcessCDR(1,14517854,1,1,2) [2025-02-20 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517854', 'tblTempUsageDetail_20' ) start [2025-02-20 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517854', 'tblTempUsageDetail_20' ) end [2025-02-20 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:51:27] Production.INFO: ==11376== Releasing lock... [2025-02-20 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:51:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:52:05 [end_date_ymd] => 2025-02-20 12:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:52:05' and `end` < '2025-02-20 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-02-20 12:52:19] Production.INFO: count ==4825 [2025-02-20 12:52:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:52:05 - End Time 2025-02-20 12:52:05 [2025-02-20 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517859', 'tblTempUsageDetail_20' ) start [2025-02-20 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517859', 'tblTempUsageDetail_20' ) end [2025-02-20 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517859', 'tblTempVendorCDR_20' ) start [2025-02-20 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517859', 'tblTempVendorCDR_20' ) end [2025-02-20 12:52:21] Production.INFO: ProcessCDR(1,14517859,1,1,2) [2025-02-20 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517859', 'tblTempUsageDetail_20' ) start [2025-02-20 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517859', 'tblTempUsageDetail_20' ) end [2025-02-20 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:52:26] Production.INFO: ==11469== Releasing lock... [2025-02-20 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:52:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:53:05 [end_date_ymd] => 2025-02-20 12:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:53:05' and `end` < '2025-02-20 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-02-20 12:53:18] Production.INFO: count ==4828 [2025-02-20 12:53:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:53:05 - End Time 2025-02-20 12:53:05 [2025-02-20 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517864', 'tblTempUsageDetail_20' ) start [2025-02-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517864', 'tblTempUsageDetail_20' ) end [2025-02-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517864', 'tblTempVendorCDR_20' ) start [2025-02-20 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517864', 'tblTempVendorCDR_20' ) end [2025-02-20 12:53:21] Production.INFO: ProcessCDR(1,14517864,1,1,2) [2025-02-20 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517864', 'tblTempUsageDetail_20' ) start [2025-02-20 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517864', 'tblTempUsageDetail_20' ) end [2025-02-20 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:53:26] Production.INFO: ==11545== Releasing lock... [2025-02-20 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:53:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:54:06 [end_date_ymd] => 2025-02-20 12:54:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:54:06' and `end` < '2025-02-20 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 12:54:18] Production.INFO: count ==4847 [2025-02-20 12:54:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:54:06 - End Time 2025-02-20 12:54:06 [2025-02-20 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517869', 'tblTempUsageDetail_20' ) start [2025-02-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517869', 'tblTempUsageDetail_20' ) end [2025-02-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517869', 'tblTempVendorCDR_20' ) start [2025-02-20 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517869', 'tblTempVendorCDR_20' ) end [2025-02-20 12:54:21] Production.INFO: ProcessCDR(1,14517869,1,1,2) [2025-02-20 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517869', 'tblTempUsageDetail_20' ) start [2025-02-20 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517869', 'tblTempUsageDetail_20' ) end [2025-02-20 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:54:27] Production.INFO: ==11617== Releasing lock... [2025-02-20 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:54:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:55:05 [end_date_ymd] => 2025-02-20 12:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:55:05' and `end` < '2025-02-20 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-02-20 12:55:18] Production.INFO: count ==4856 [2025-02-20 12:55:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:55:05 - End Time 2025-02-20 12:55:05 [2025-02-20 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517874', 'tblTempUsageDetail_20' ) start [2025-02-20 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517874', 'tblTempUsageDetail_20' ) end [2025-02-20 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517874', 'tblTempVendorCDR_20' ) start [2025-02-20 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517874', 'tblTempVendorCDR_20' ) end [2025-02-20 12:55:21] Production.INFO: ProcessCDR(1,14517874,1,1,2) [2025-02-20 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517874', 'tblTempUsageDetail_20' ) start [2025-02-20 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517874', 'tblTempUsageDetail_20' ) end [2025-02-20 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:55:26] Production.INFO: ==11687== Releasing lock... [2025-02-20 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:55:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-20 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:56:06 [end_date_ymd] => 2025-02-20 12:56:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:56:06' and `end` < '2025-02-20 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-02-20 12:56:19] Production.INFO: count ==4874 [2025-02-20 12:56:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:56:06 - End Time 2025-02-20 12:56:06 [2025-02-20 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517879', 'tblTempUsageDetail_20' ) start [2025-02-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517879', 'tblTempUsageDetail_20' ) end [2025-02-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517879', 'tblTempVendorCDR_20' ) start [2025-02-20 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517879', 'tblTempVendorCDR_20' ) end [2025-02-20 12:56:21] Production.INFO: ProcessCDR(1,14517879,1,1,2) [2025-02-20 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517879', 'tblTempUsageDetail_20' ) start [2025-02-20 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517879', 'tblTempUsageDetail_20' ) end [2025-02-20 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:56:27] Production.INFO: ==11762== Releasing lock... [2025-02-20 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:56:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-20 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:57:05 [end_date_ymd] => 2025-02-20 12:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:57:05' and `end` < '2025-02-20 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-02-20 12:57:18] Production.INFO: count ==4875 [2025-02-20 12:57:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:57:05 - End Time 2025-02-20 12:57:05 [2025-02-20 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517884', 'tblTempUsageDetail_20' ) start [2025-02-20 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517884', 'tblTempUsageDetail_20' ) end [2025-02-20 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517884', 'tblTempVendorCDR_20' ) start [2025-02-20 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517884', 'tblTempVendorCDR_20' ) end [2025-02-20 12:57:20] Production.INFO: ProcessCDR(1,14517884,1,1,2) [2025-02-20 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517884', 'tblTempUsageDetail_20' ) start [2025-02-20 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517884', 'tblTempUsageDetail_20' ) end [2025-02-20 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:57:26] Production.INFO: ==11845== Releasing lock... [2025-02-20 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:57:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-20 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:58:06 [end_date_ymd] => 2025-02-20 12:58:06 [RateCDR] => 1 ) [2025-02-20 12: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-02-20 09:58:06' and `end` < '2025-02-20 12: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-02-20 12:58:19] Production.INFO: count ==4869 [2025-02-20 12:58:21] Production.ERROR: pbx CDR StartTime 2025-02-20 09:58:06 - End Time 2025-02-20 12:58:06 [2025-02-20 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517889', 'tblTempUsageDetail_20' ) start [2025-02-20 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517889', 'tblTempUsageDetail_20' ) end [2025-02-20 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517889', 'tblTempVendorCDR_20' ) start [2025-02-20 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517889', 'tblTempVendorCDR_20' ) end [2025-02-20 12:58:21] Production.INFO: ProcessCDR(1,14517889,1,1,2) [2025-02-20 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517889', 'tblTempUsageDetail_20' ) start [2025-02-20 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517889', 'tblTempUsageDetail_20' ) end [2025-02-20 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:58:26] Production.INFO: ==11918== Releasing lock... [2025-02-20 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:58:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-20 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 09:59:05 [end_date_ymd] => 2025-02-20 12:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 09:59:05' and `end` < '2025-02-20 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-02-20 12:59:18] Production.INFO: count ==4892 [2025-02-20 12:59:20] Production.ERROR: pbx CDR StartTime 2025-02-20 09:59:05 - End Time 2025-02-20 12:59:05 [2025-02-20 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517894', 'tblTempUsageDetail_20' ) start [2025-02-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517894', 'tblTempUsageDetail_20' ) end [2025-02-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517894', 'tblTempVendorCDR_20' ) start [2025-02-20 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517894', 'tblTempVendorCDR_20' ) end [2025-02-20 12:59:20] Production.INFO: ProcessCDR(1,14517894,1,1,2) [2025-02-20 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517894', 'tblTempUsageDetail_20' ) start [2025-02-20 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517894', 'tblTempUsageDetail_20' ) end [2025-02-20 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 12:59:26] Production.INFO: ==11990== Releasing lock... [2025-02-20 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 12:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:00:06 [end_date_ymd] => 2025-02-20 13:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:00:06' and `end` < '2025-02-20 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-02-20 13:00:19] Production.INFO: count ==4901 [2025-02-20 13:00:22] Production.ERROR: pbx CDR StartTime 2025-02-20 10:00:06 - End Time 2025-02-20 13:00:06 [2025-02-20 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517899', 'tblTempUsageDetail_20' ) start [2025-02-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517899', 'tblTempUsageDetail_20' ) end [2025-02-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517899', 'tblTempVendorCDR_20' ) start [2025-02-20 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517899', 'tblTempVendorCDR_20' ) end [2025-02-20 13:00:22] Production.INFO: ProcessCDR(1,14517899,1,1,2) [2025-02-20 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517899', 'tblTempUsageDetail_20' ) start [2025-02-20 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517899', 'tblTempUsageDetail_20' ) end [2025-02-20 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:00:27] Production.INFO: ==12063== Releasing lock... [2025-02-20 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:00:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:01:05 [end_date_ymd] => 2025-02-20 13:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:01:05' and `end` < '2025-02-20 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-02-20 13:01:18] Production.INFO: count ==4901 [2025-02-20 13:01:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:01:05 - End Time 2025-02-20 13:01:05 [2025-02-20 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517905', 'tblTempUsageDetail_20' ) start [2025-02-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517905', 'tblTempUsageDetail_20' ) end [2025-02-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517905', 'tblTempVendorCDR_20' ) start [2025-02-20 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517905', 'tblTempVendorCDR_20' ) end [2025-02-20 13:01:21] Production.INFO: ProcessCDR(1,14517905,1,1,2) [2025-02-20 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517905', 'tblTempUsageDetail_20' ) start [2025-02-20 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517905', 'tblTempUsageDetail_20' ) end [2025-02-20 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:01:26] Production.INFO: ==12150== Releasing lock... [2025-02-20 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:02:06 [end_date_ymd] => 2025-02-20 13:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:02:06' and `end` < '2025-02-20 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-02-20 13:02:18] Production.INFO: count ==4903 [2025-02-20 13:02:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:02:06 - End Time 2025-02-20 13:02:06 [2025-02-20 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517910', 'tblTempUsageDetail_20' ) start [2025-02-20 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517910', 'tblTempUsageDetail_20' ) end [2025-02-20 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517910', 'tblTempVendorCDR_20' ) start [2025-02-20 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517910', 'tblTempVendorCDR_20' ) end [2025-02-20 13:02:21] Production.INFO: ProcessCDR(1,14517910,1,1,2) [2025-02-20 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517910', 'tblTempUsageDetail_20' ) start [2025-02-20 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517910', 'tblTempUsageDetail_20' ) end [2025-02-20 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:02:26] Production.INFO: ==12261== Releasing lock... [2025-02-20 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:02:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:03:06 [end_date_ymd] => 2025-02-20 13:03:06 [RateCDR] => 1 ) [2025-02-20 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:03:06' and `end` < '2025-02-20 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:03:19] Production.INFO: count ==4920 [2025-02-20 13:03:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:03:06 - End Time 2025-02-20 13:03:06 [2025-02-20 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517915', 'tblTempUsageDetail_20' ) start [2025-02-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517915', 'tblTempUsageDetail_20' ) end [2025-02-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517915', 'tblTempVendorCDR_20' ) start [2025-02-20 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517915', 'tblTempVendorCDR_20' ) end [2025-02-20 13:03:21] Production.INFO: ProcessCDR(1,14517915,1,1,2) [2025-02-20 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517915', 'tblTempUsageDetail_20' ) start [2025-02-20 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517915', 'tblTempUsageDetail_20' ) end [2025-02-20 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:03:27] Production.INFO: ==12331== Releasing lock... [2025-02-20 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:03:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:04:06 [end_date_ymd] => 2025-02-20 13:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:04:06' and `end` < '2025-02-20 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-02-20 13:04:19] Production.INFO: count ==4916 [2025-02-20 13:04:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:04:06 - End Time 2025-02-20 13:04:06 [2025-02-20 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517920', 'tblTempUsageDetail_20' ) start [2025-02-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517920', 'tblTempUsageDetail_20' ) end [2025-02-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517920', 'tblTempVendorCDR_20' ) start [2025-02-20 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517920', 'tblTempVendorCDR_20' ) end [2025-02-20 13:04:22] Production.INFO: ProcessCDR(1,14517920,1,1,2) [2025-02-20 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517920', 'tblTempUsageDetail_20' ) start [2025-02-20 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517920', 'tblTempUsageDetail_20' ) end [2025-02-20 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:04:27] Production.INFO: ==12403== Releasing lock... [2025-02-20 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:04:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:05:05 [end_date_ymd] => 2025-02-20 13:05:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:05:05' and `end` < '2025-02-20 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-02-20 13:05:18] Production.INFO: count ==4933 [2025-02-20 13:05:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:05:05 - End Time 2025-02-20 13:05:05 [2025-02-20 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517925', 'tblTempUsageDetail_20' ) start [2025-02-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517925', 'tblTempUsageDetail_20' ) end [2025-02-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517925', 'tblTempVendorCDR_20' ) start [2025-02-20 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517925', 'tblTempVendorCDR_20' ) end [2025-02-20 13:05:21] Production.INFO: ProcessCDR(1,14517925,1,1,2) [2025-02-20 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517925', 'tblTempUsageDetail_20' ) start [2025-02-20 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517925', 'tblTempUsageDetail_20' ) end [2025-02-20 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:05:26] Production.INFO: ==12476== Releasing lock... [2025-02-20 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:05:26] Production.INFO: 65 MB #Memory Used# [2025-02-20 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:06:06 [end_date_ymd] => 2025-02-20 13:06:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:06:06' and `end` < '2025-02-20 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-02-20 13:06:19] Production.INFO: count ==4963 [2025-02-20 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:06:06 - End Time 2025-02-20 13:06:06 [2025-02-20 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517930', 'tblTempUsageDetail_20' ) start [2025-02-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517930', 'tblTempUsageDetail_20' ) end [2025-02-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517930', 'tblTempVendorCDR_20' ) start [2025-02-20 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517930', 'tblTempVendorCDR_20' ) end [2025-02-20 13:06:22] Production.INFO: ProcessCDR(1,14517930,1,1,2) [2025-02-20 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517930', 'tblTempUsageDetail_20' ) start [2025-02-20 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517930', 'tblTempUsageDetail_20' ) end [2025-02-20 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:06:27] Production.INFO: ==12548== Releasing lock... [2025-02-20 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:06:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:07:05 [end_date_ymd] => 2025-02-20 13:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:07:05' and `end` < '2025-02-20 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-02-20 13:07:18] Production.INFO: count ==4977 [2025-02-20 13:07:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:07:05 - End Time 2025-02-20 13:07:05 [2025-02-20 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517935', 'tblTempUsageDetail_20' ) start [2025-02-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517935', 'tblTempUsageDetail_20' ) end [2025-02-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517935', 'tblTempVendorCDR_20' ) start [2025-02-20 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517935', 'tblTempVendorCDR_20' ) end [2025-02-20 13:07:20] Production.INFO: ProcessCDR(1,14517935,1,1,2) [2025-02-20 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517935', 'tblTempUsageDetail_20' ) start [2025-02-20 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517935', 'tblTempUsageDetail_20' ) end [2025-02-20 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:07:26] Production.INFO: ==12623== Releasing lock... [2025-02-20 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:07:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:08:06 [end_date_ymd] => 2025-02-20 13:08:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:08:06' and `end` < '2025-02-20 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-02-20 13:08:18] Production.INFO: count ==4967 [2025-02-20 13:08:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:08:06 - End Time 2025-02-20 13:08:06 [2025-02-20 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517940', 'tblTempUsageDetail_20' ) start [2025-02-20 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517940', 'tblTempUsageDetail_20' ) end [2025-02-20 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517940', 'tblTempVendorCDR_20' ) start [2025-02-20 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517940', 'tblTempVendorCDR_20' ) end [2025-02-20 13:08:21] Production.INFO: ProcessCDR(1,14517940,1,1,2) [2025-02-20 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517940', 'tblTempUsageDetail_20' ) start [2025-02-20 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517940', 'tblTempUsageDetail_20' ) end [2025-02-20 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:08:26] Production.INFO: ==12696== Releasing lock... [2025-02-20 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:08:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:09:05 [end_date_ymd] => 2025-02-20 13:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:09:05' and `end` < '2025-02-20 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-02-20 13:09:18] Production.INFO: count ==4965 [2025-02-20 13:09:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:09:05 - End Time 2025-02-20 13:09:05 [2025-02-20 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517945', 'tblTempUsageDetail_20' ) start [2025-02-20 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517945', 'tblTempUsageDetail_20' ) end [2025-02-20 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517945', 'tblTempVendorCDR_20' ) start [2025-02-20 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517945', 'tblTempVendorCDR_20' ) end [2025-02-20 13:09:20] Production.INFO: ProcessCDR(1,14517945,1,1,2) [2025-02-20 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517945', 'tblTempUsageDetail_20' ) start [2025-02-20 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517945', 'tblTempUsageDetail_20' ) end [2025-02-20 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:09:25] Production.INFO: ==12768== Releasing lock... [2025-02-20 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:09:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:10:07 [end_date_ymd] => 2025-02-20 13:10:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:10:07' and `end` < '2025-02-20 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-02-20 13:10:20] Production.INFO: count ==4968 [2025-02-20 13:10:22] Production.ERROR: pbx CDR StartTime 2025-02-20 10:10:07 - End Time 2025-02-20 13:10:07 [2025-02-20 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517951', 'tblTempUsageDetail_20' ) start [2025-02-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517951', 'tblTempUsageDetail_20' ) end [2025-02-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517951', 'tblTempVendorCDR_20' ) start [2025-02-20 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517951', 'tblTempVendorCDR_20' ) end [2025-02-20 13:10:22] Production.INFO: ProcessCDR(1,14517951,1,1,2) [2025-02-20 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517951', 'tblTempUsageDetail_20' ) start [2025-02-20 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517951', 'tblTempUsageDetail_20' ) end [2025-02-20 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:10:27] Production.INFO: ==12851== Releasing lock... [2025-02-20 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:10:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:11:05 [end_date_ymd] => 2025-02-20 13:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:11:05' and `end` < '2025-02-20 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-02-20 13:11:18] Production.INFO: count ==4978 [2025-02-20 13:11:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:11:05 - End Time 2025-02-20 13:11:05 [2025-02-20 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517956', 'tblTempUsageDetail_20' ) start [2025-02-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517956', 'tblTempUsageDetail_20' ) end [2025-02-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517956', 'tblTempVendorCDR_20' ) start [2025-02-20 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517956', 'tblTempVendorCDR_20' ) end [2025-02-20 13:11:21] Production.INFO: ProcessCDR(1,14517956,1,1,2) [2025-02-20 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517956', 'tblTempUsageDetail_20' ) start [2025-02-20 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517956', 'tblTempUsageDetail_20' ) end [2025-02-20 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:11:26] Production.INFO: ==12930== Releasing lock... [2025-02-20 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:11:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:12:05 [end_date_ymd] => 2025-02-20 13:12:05 [RateCDR] => 1 ) [2025-02-20 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:12:05' and `end` < '2025-02-20 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:12:18] Production.INFO: count ==4986 [2025-02-20 13:12:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:12:05 - End Time 2025-02-20 13:12:05 [2025-02-20 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517961', 'tblTempUsageDetail_20' ) start [2025-02-20 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517961', 'tblTempUsageDetail_20' ) end [2025-02-20 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517961', 'tblTempVendorCDR_20' ) start [2025-02-20 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517961', 'tblTempVendorCDR_20' ) end [2025-02-20 13:12:21] Production.INFO: ProcessCDR(1,14517961,1,1,2) [2025-02-20 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517961', 'tblTempUsageDetail_20' ) start [2025-02-20 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517961', 'tblTempUsageDetail_20' ) end [2025-02-20 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:12:26] Production.INFO: ==13000== Releasing lock... [2025-02-20 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:12:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:13:05 [end_date_ymd] => 2025-02-20 13:13:05 [RateCDR] => 1 ) [2025-02-20 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:13:05' and `end` < '2025-02-20 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:13:18] Production.INFO: count ==4998 [2025-02-20 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:13:05 - End Time 2025-02-20 13:13:05 [2025-02-20 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517966', 'tblTempUsageDetail_20' ) start [2025-02-20 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517966', 'tblTempUsageDetail_20' ) end [2025-02-20 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517966', 'tblTempVendorCDR_20' ) start [2025-02-20 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517966', 'tblTempVendorCDR_20' ) end [2025-02-20 13:13:21] Production.INFO: ProcessCDR(1,14517966,1,1,2) [2025-02-20 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517966', 'tblTempUsageDetail_20' ) start [2025-02-20 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517966', 'tblTempUsageDetail_20' ) end [2025-02-20 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:13:26] Production.INFO: ==13071== Releasing lock... [2025-02-20 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:13:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:14:06 [end_date_ymd] => 2025-02-20 13:14:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:14:06' and `end` < '2025-02-20 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-02-20 13:14:18] Production.INFO: count ==4997 [2025-02-20 13:14:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:14:06 - End Time 2025-02-20 13:14:06 [2025-02-20 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517968', 'tblTempUsageDetail_20' ) start [2025-02-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517968', 'tblTempUsageDetail_20' ) end [2025-02-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517968', 'tblTempVendorCDR_20' ) start [2025-02-20 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517968', 'tblTempVendorCDR_20' ) end [2025-02-20 13:14:21] Production.INFO: ProcessCDR(1,14517968,1,1,2) [2025-02-20 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517968', 'tblTempUsageDetail_20' ) start [2025-02-20 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517968', 'tblTempUsageDetail_20' ) end [2025-02-20 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:14:26] Production.INFO: ==13143== Releasing lock... [2025-02-20 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:14:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:15:05 [end_date_ymd] => 2025-02-20 13:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:15:05' and `end` < '2025-02-20 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-02-20 13:15:18] Production.INFO: count ==4989 [2025-02-20 13:15:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:15:05 - End Time 2025-02-20 13:15:05 [2025-02-20 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517976', 'tblTempUsageDetail_20' ) start [2025-02-20 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517976', 'tblTempUsageDetail_20' ) end [2025-02-20 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517976', 'tblTempVendorCDR_20' ) start [2025-02-20 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517976', 'tblTempVendorCDR_20' ) end [2025-02-20 13:15:20] Production.INFO: ProcessCDR(1,14517976,1,1,2) [2025-02-20 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517976', 'tblTempUsageDetail_20' ) start [2025-02-20 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517976', 'tblTempUsageDetail_20' ) end [2025-02-20 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:15:26] Production.INFO: ==13214== Releasing lock... [2025-02-20 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:15:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:16:06 [end_date_ymd] => 2025-02-20 13:16:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:16:06' and `end` < '2025-02-20 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-02-20 13:16:19] Production.INFO: count ==4986 [2025-02-20 13:16:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:16:06 - End Time 2025-02-20 13:16:06 [2025-02-20 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517981', 'tblTempUsageDetail_20' ) start [2025-02-20 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517981', 'tblTempUsageDetail_20' ) end [2025-02-20 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517981', 'tblTempVendorCDR_20' ) start [2025-02-20 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517981', 'tblTempVendorCDR_20' ) end [2025-02-20 13:16:22] Production.INFO: ProcessCDR(1,14517981,1,1,2) [2025-02-20 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517981', 'tblTempUsageDetail_20' ) start [2025-02-20 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517981', 'tblTempUsageDetail_20' ) end [2025-02-20 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:16:27] Production.INFO: ==13284== Releasing lock... [2025-02-20 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:16:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:17:05 [end_date_ymd] => 2025-02-20 13:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:17:05' and `end` < '2025-02-20 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-02-20 13:17:18] Production.INFO: count ==4987 [2025-02-20 13:17:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:17:05 - End Time 2025-02-20 13:17:05 [2025-02-20 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517986', 'tblTempUsageDetail_20' ) start [2025-02-20 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517986', 'tblTempUsageDetail_20' ) end [2025-02-20 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517986', 'tblTempVendorCDR_20' ) start [2025-02-20 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517986', 'tblTempVendorCDR_20' ) end [2025-02-20 13:17:21] Production.INFO: ProcessCDR(1,14517986,1,1,2) [2025-02-20 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517986', 'tblTempUsageDetail_20' ) start [2025-02-20 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517986', 'tblTempUsageDetail_20' ) end [2025-02-20 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:17:26] Production.INFO: ==13399== Releasing lock... [2025-02-20 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:17:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:18:06 [end_date_ymd] => 2025-02-20 13:18:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:18:06' and `end` < '2025-02-20 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-02-20 13:18:19] Production.INFO: count ==4987 [2025-02-20 13:18:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:18:06 - End Time 2025-02-20 13:18:06 [2025-02-20 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517991', 'tblTempUsageDetail_20' ) start [2025-02-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517991', 'tblTempUsageDetail_20' ) end [2025-02-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517991', 'tblTempVendorCDR_20' ) start [2025-02-20 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517991', 'tblTempVendorCDR_20' ) end [2025-02-20 13:18:21] Production.INFO: ProcessCDR(1,14517991,1,1,2) [2025-02-20 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517991', 'tblTempUsageDetail_20' ) start [2025-02-20 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517991', 'tblTempUsageDetail_20' ) end [2025-02-20 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:18:27] Production.INFO: ==13469== Releasing lock... [2025-02-20 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:18:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:19:05 [end_date_ymd] => 2025-02-20 13:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:19:05' and `end` < '2025-02-20 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-02-20 13:19:18] Production.INFO: count ==4997 [2025-02-20 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:19:05 - End Time 2025-02-20 13:19:05 [2025-02-20 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517996', 'tblTempUsageDetail_20' ) start [2025-02-20 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14517996', 'tblTempUsageDetail_20' ) end [2025-02-20 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517996', 'tblTempVendorCDR_20' ) start [2025-02-20 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14517996', 'tblTempVendorCDR_20' ) end [2025-02-20 13:19:21] Production.INFO: ProcessCDR(1,14517996,1,1,2) [2025-02-20 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14517996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14517996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14517996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14517996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517996', 'tblTempUsageDetail_20' ) start [2025-02-20 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14517996', 'tblTempUsageDetail_20' ) end [2025-02-20 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:19:27] Production.INFO: ==13540== Releasing lock... [2025-02-20 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:19:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:20:07 [end_date_ymd] => 2025-02-20 13:20:07 [RateCDR] => 1 ) [2025-02-20 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:20:07' and `end` < '2025-02-20 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:20:20] Production.INFO: count ==5025 [2025-02-20 13:20:23] Production.ERROR: pbx CDR StartTime 2025-02-20 10:20:07 - End Time 2025-02-20 13:20:07 [2025-02-20 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518002', 'tblTempUsageDetail_20' ) start [2025-02-20 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518002', 'tblTempUsageDetail_20' ) end [2025-02-20 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518002', 'tblTempVendorCDR_20' ) start [2025-02-20 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518002', 'tblTempVendorCDR_20' ) end [2025-02-20 13:20:23] Production.INFO: ProcessCDR(1,14518002,1,1,2) [2025-02-20 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518002', 'tblTempUsageDetail_20' ) start [2025-02-20 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518002', 'tblTempUsageDetail_20' ) end [2025-02-20 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:20:28] Production.INFO: ==13619== Releasing lock... [2025-02-20 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:20:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:21:05 [end_date_ymd] => 2025-02-20 13:21:05 [RateCDR] => 1 ) [2025-02-20 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:21:05' and `end` < '2025-02-20 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:21:18] Production.INFO: count ==5072 [2025-02-20 13:21:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:21:05 - End Time 2025-02-20 13:21:05 [2025-02-20 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518007', 'tblTempUsageDetail_20' ) start [2025-02-20 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518007', 'tblTempUsageDetail_20' ) end [2025-02-20 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518007', 'tblTempVendorCDR_20' ) start [2025-02-20 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518007', 'tblTempVendorCDR_20' ) end [2025-02-20 13:21:21] Production.INFO: ProcessCDR(1,14518007,1,1,2) [2025-02-20 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518007', 'tblTempUsageDetail_20' ) start [2025-02-20 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518007', 'tblTempUsageDetail_20' ) end [2025-02-20 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:21:26] Production.INFO: ==13692== Releasing lock... [2025-02-20 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:21:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:22:05 [end_date_ymd] => 2025-02-20 13:22:05 [RateCDR] => 1 ) [2025-02-20 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:22:05' and `end` < '2025-02-20 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:22:19] Production.INFO: count ==5070 [2025-02-20 13:22:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:22:05 - End Time 2025-02-20 13:22:05 [2025-02-20 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518012', 'tblTempUsageDetail_20' ) start [2025-02-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518012', 'tblTempUsageDetail_20' ) end [2025-02-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518012', 'tblTempVendorCDR_20' ) start [2025-02-20 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518012', 'tblTempVendorCDR_20' ) end [2025-02-20 13:22:21] Production.INFO: ProcessCDR(1,14518012,1,1,2) [2025-02-20 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518012', 'tblTempUsageDetail_20' ) start [2025-02-20 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518012', 'tblTempUsageDetail_20' ) end [2025-02-20 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:22:27] Production.INFO: ==13763== Releasing lock... [2025-02-20 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:22:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:23:05 [end_date_ymd] => 2025-02-20 13:23:05 [RateCDR] => 1 ) [2025-02-20 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:23:05' and `end` < '2025-02-20 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:23:18] Production.INFO: count ==5082 [2025-02-20 13:23:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:23:05 - End Time 2025-02-20 13:23:05 [2025-02-20 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518017', 'tblTempUsageDetail_20' ) start [2025-02-20 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518017', 'tblTempUsageDetail_20' ) end [2025-02-20 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518017', 'tblTempVendorCDR_20' ) start [2025-02-20 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518017', 'tblTempVendorCDR_20' ) end [2025-02-20 13:23:21] Production.INFO: ProcessCDR(1,14518017,1,1,2) [2025-02-20 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518017', 'tblTempUsageDetail_20' ) start [2025-02-20 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518017', 'tblTempUsageDetail_20' ) end [2025-02-20 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:23:26] Production.INFO: ==13837== Releasing lock... [2025-02-20 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:23:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:24:06 [end_date_ymd] => 2025-02-20 13:24:06 [RateCDR] => 1 ) [2025-02-20 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:24:06' and `end` < '2025-02-20 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:24:19] Production.INFO: count ==5074 [2025-02-20 13:24:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:24:06 - End Time 2025-02-20 13:24:06 [2025-02-20 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518022', 'tblTempUsageDetail_20' ) start [2025-02-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518022', 'tblTempUsageDetail_20' ) end [2025-02-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518022', 'tblTempVendorCDR_20' ) start [2025-02-20 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518022', 'tblTempVendorCDR_20' ) end [2025-02-20 13:24:21] Production.INFO: ProcessCDR(1,14518022,1,1,2) [2025-02-20 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518022', 'tblTempUsageDetail_20' ) start [2025-02-20 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518022', 'tblTempUsageDetail_20' ) end [2025-02-20 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:24:27] Production.INFO: ==13909== Releasing lock... [2025-02-20 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:24:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:25:06 [end_date_ymd] => 2025-02-20 13:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:25:06' and `end` < '2025-02-20 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-02-20 13:25:19] Production.INFO: count ==5098 [2025-02-20 13:25:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:25:06 - End Time 2025-02-20 13:25:06 [2025-02-20 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518027', 'tblTempUsageDetail_20' ) start [2025-02-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518027', 'tblTempUsageDetail_20' ) end [2025-02-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518027', 'tblTempVendorCDR_20' ) start [2025-02-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518027', 'tblTempVendorCDR_20' ) end [2025-02-20 13:25:21] Production.INFO: ProcessCDR(1,14518027,1,1,2) [2025-02-20 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518027', 'tblTempUsageDetail_20' ) start [2025-02-20 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518027', 'tblTempUsageDetail_20' ) end [2025-02-20 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:25:27] Production.INFO: ==13980== Releasing lock... [2025-02-20 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:25:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:26:06 [end_date_ymd] => 2025-02-20 13:26:06 [RateCDR] => 1 ) [2025-02-20 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:26:06' and `end` < '2025-02-20 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:26:19] Production.INFO: count ==5092 [2025-02-20 13:26:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:26:06 - End Time 2025-02-20 13:26:06 [2025-02-20 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518032', 'tblTempUsageDetail_20' ) start [2025-02-20 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518032', 'tblTempUsageDetail_20' ) end [2025-02-20 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518032', 'tblTempVendorCDR_20' ) start [2025-02-20 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518032', 'tblTempVendorCDR_20' ) end [2025-02-20 13:26:21] Production.INFO: ProcessCDR(1,14518032,1,1,2) [2025-02-20 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518032', 'tblTempUsageDetail_20' ) start [2025-02-20 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518032', 'tblTempUsageDetail_20' ) end [2025-02-20 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:26:26] Production.INFO: ==14051== Releasing lock... [2025-02-20 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:26:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:27:05 [end_date_ymd] => 2025-02-20 13:27:05 [RateCDR] => 1 ) [2025-02-20 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:27:05' and `end` < '2025-02-20 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:27:19] Production.INFO: count ==5100 [2025-02-20 13:27:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:27:05 - End Time 2025-02-20 13:27:05 [2025-02-20 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518037', 'tblTempUsageDetail_20' ) start [2025-02-20 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518037', 'tblTempUsageDetail_20' ) end [2025-02-20 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518037', 'tblTempVendorCDR_20' ) start [2025-02-20 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518037', 'tblTempVendorCDR_20' ) end [2025-02-20 13:27:21] Production.INFO: ProcessCDR(1,14518037,1,1,2) [2025-02-20 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518037', 'tblTempUsageDetail_20' ) start [2025-02-20 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518037', 'tblTempUsageDetail_20' ) end [2025-02-20 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:27:26] Production.INFO: ==14122== Releasing lock... [2025-02-20 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:27:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:28:06 [end_date_ymd] => 2025-02-20 13:28:06 [RateCDR] => 1 ) [2025-02-20 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:28:06' and `end` < '2025-02-20 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:28:18] Production.INFO: count ==5091 [2025-02-20 13:28:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:28:06 - End Time 2025-02-20 13:28:06 [2025-02-20 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518042', 'tblTempUsageDetail_20' ) start [2025-02-20 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518042', 'tblTempUsageDetail_20' ) end [2025-02-20 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518042', 'tblTempVendorCDR_20' ) start [2025-02-20 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518042', 'tblTempVendorCDR_20' ) end [2025-02-20 13:28:21] Production.INFO: ProcessCDR(1,14518042,1,1,2) [2025-02-20 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518042', 'tblTempUsageDetail_20' ) start [2025-02-20 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518042', 'tblTempUsageDetail_20' ) end [2025-02-20 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:28:26] Production.INFO: ==14195== Releasing lock... [2025-02-20 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:28:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:29:05 [end_date_ymd] => 2025-02-20 13:29:05 [RateCDR] => 1 ) [2025-02-20 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:29:05' and `end` < '2025-02-20 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:29:18] Production.INFO: count ==5100 [2025-02-20 13:29:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:29:05 - End Time 2025-02-20 13:29:05 [2025-02-20 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518047', 'tblTempUsageDetail_20' ) start [2025-02-20 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518047', 'tblTempUsageDetail_20' ) end [2025-02-20 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518047', 'tblTempVendorCDR_20' ) start [2025-02-20 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518047', 'tblTempVendorCDR_20' ) end [2025-02-20 13:29:21] Production.INFO: ProcessCDR(1,14518047,1,1,2) [2025-02-20 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518047', 'tblTempUsageDetail_20' ) start [2025-02-20 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518047', 'tblTempUsageDetail_20' ) end [2025-02-20 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:29:26] Production.INFO: ==14264== Releasing lock... [2025-02-20 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:29:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:30:06 [end_date_ymd] => 2025-02-20 13:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:30:06' and `end` < '2025-02-20 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-02-20 13:30:19] Production.INFO: count ==5091 [2025-02-20 13:30:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:30:06 - End Time 2025-02-20 13:30:06 [2025-02-20 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518052', 'tblTempUsageDetail_20' ) start [2025-02-20 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518052', 'tblTempUsageDetail_20' ) end [2025-02-20 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518052', 'tblTempVendorCDR_20' ) start [2025-02-20 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518052', 'tblTempVendorCDR_20' ) end [2025-02-20 13:30:22] Production.INFO: ProcessCDR(1,14518052,1,1,2) [2025-02-20 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518052', 'tblTempUsageDetail_20' ) start [2025-02-20 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518052', 'tblTempUsageDetail_20' ) end [2025-02-20 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:30:27] Production.INFO: ==14337== Releasing lock... [2025-02-20 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:30:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:31:06 [end_date_ymd] => 2025-02-20 13:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:31:06' and `end` < '2025-02-20 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-02-20 13:31:18] Production.INFO: count ==5102 [2025-02-20 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:31:06 - End Time 2025-02-20 13:31:06 [2025-02-20 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518058', 'tblTempUsageDetail_20' ) start [2025-02-20 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518058', 'tblTempUsageDetail_20' ) end [2025-02-20 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518058', 'tblTempVendorCDR_20' ) start [2025-02-20 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518058', 'tblTempVendorCDR_20' ) end [2025-02-20 13:31:21] Production.INFO: ProcessCDR(1,14518058,1,1,2) [2025-02-20 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518058', 'tblTempUsageDetail_20' ) start [2025-02-20 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518058', 'tblTempUsageDetail_20' ) end [2025-02-20 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:31:27] Production.INFO: ==14411== Releasing lock... [2025-02-20 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:31:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:32:06 [end_date_ymd] => 2025-02-20 13:32:06 [RateCDR] => 1 ) [2025-02-20 13: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-02-20 10:32:06' and `end` < '2025-02-20 13: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-02-20 13:32:18] Production.INFO: count ==5094 [2025-02-20 13:32:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:32:06 - End Time 2025-02-20 13:32:06 [2025-02-20 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518063', 'tblTempUsageDetail_20' ) start [2025-02-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518063', 'tblTempUsageDetail_20' ) end [2025-02-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518063', 'tblTempVendorCDR_20' ) start [2025-02-20 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518063', 'tblTempVendorCDR_20' ) end [2025-02-20 13:32:21] Production.INFO: ProcessCDR(1,14518063,1,1,2) [2025-02-20 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518063', 'tblTempUsageDetail_20' ) start [2025-02-20 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518063', 'tblTempUsageDetail_20' ) end [2025-02-20 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:32:26] Production.INFO: ==14519== Releasing lock... [2025-02-20 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:32:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:33:05 [end_date_ymd] => 2025-02-20 13:33:05 [RateCDR] => 1 ) [2025-02-20 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:33:05' and `end` < '2025-02-20 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:33:18] Production.INFO: count ==5059 [2025-02-20 13:33:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:33:05 - End Time 2025-02-20 13:33:05 [2025-02-20 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518068', 'tblTempUsageDetail_20' ) start [2025-02-20 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518068', 'tblTempUsageDetail_20' ) end [2025-02-20 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518068', 'tblTempVendorCDR_20' ) start [2025-02-20 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518068', 'tblTempVendorCDR_20' ) end [2025-02-20 13:33:20] Production.INFO: ProcessCDR(1,14518068,1,1,2) [2025-02-20 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518068', 'tblTempUsageDetail_20' ) start [2025-02-20 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518068', 'tblTempUsageDetail_20' ) end [2025-02-20 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:33:25] Production.INFO: ==14595== Releasing lock... [2025-02-20 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:33:25] Production.INFO: 66 MB #Memory Used# [2025-02-20 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:34:06 [end_date_ymd] => 2025-02-20 13:34:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:34:06' and `end` < '2025-02-20 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-02-20 13:34:19] Production.INFO: count ==5058 [2025-02-20 13:34:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:34:06 - End Time 2025-02-20 13:34:06 [2025-02-20 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518073', 'tblTempUsageDetail_20' ) start [2025-02-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518073', 'tblTempUsageDetail_20' ) end [2025-02-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518073', 'tblTempVendorCDR_20' ) start [2025-02-20 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518073', 'tblTempVendorCDR_20' ) end [2025-02-20 13:34:21] Production.INFO: ProcessCDR(1,14518073,1,1,2) [2025-02-20 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518073', 'tblTempUsageDetail_20' ) start [2025-02-20 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518073', 'tblTempUsageDetail_20' ) end [2025-02-20 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:34:27] Production.INFO: ==14689== Releasing lock... [2025-02-20 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:34:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:35:05 [end_date_ymd] => 2025-02-20 13:35:05 [RateCDR] => 1 ) [2025-02-20 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:35:05' and `end` < '2025-02-20 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:35:18] Production.INFO: count ==5051 [2025-02-20 13:35:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:35:05 - End Time 2025-02-20 13:35:05 [2025-02-20 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518078', 'tblTempUsageDetail_20' ) start [2025-02-20 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518078', 'tblTempUsageDetail_20' ) end [2025-02-20 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518078', 'tblTempVendorCDR_20' ) start [2025-02-20 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518078', 'tblTempVendorCDR_20' ) end [2025-02-20 13:35:20] Production.INFO: ProcessCDR(1,14518078,1,1,2) [2025-02-20 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518078', 'tblTempUsageDetail_20' ) start [2025-02-20 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518078', 'tblTempUsageDetail_20' ) end [2025-02-20 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:35:25] Production.INFO: ==14798== Releasing lock... [2025-02-20 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:35:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:36:06 [end_date_ymd] => 2025-02-20 13:36:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:36:06' and `end` < '2025-02-20 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-02-20 13:36:19] Production.INFO: count ==5026 [2025-02-20 13:36:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:36:06 - End Time 2025-02-20 13:36:06 [2025-02-20 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518083', 'tblTempUsageDetail_20' ) start [2025-02-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518083', 'tblTempUsageDetail_20' ) end [2025-02-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518083', 'tblTempVendorCDR_20' ) start [2025-02-20 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518083', 'tblTempVendorCDR_20' ) end [2025-02-20 13:36:21] Production.INFO: ProcessCDR(1,14518083,1,1,2) [2025-02-20 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518083', 'tblTempUsageDetail_20' ) start [2025-02-20 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518083', 'tblTempUsageDetail_20' ) end [2025-02-20 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:36:27] Production.INFO: ==14916== Releasing lock... [2025-02-20 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:36:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:37:05 [end_date_ymd] => 2025-02-20 13:37:05 [RateCDR] => 1 ) [2025-02-20 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:37:05' and `end` < '2025-02-20 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:37:18] Production.INFO: count ==5014 [2025-02-20 13:37:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:37:05 - End Time 2025-02-20 13:37:05 [2025-02-20 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518088', 'tblTempUsageDetail_20' ) start [2025-02-20 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518088', 'tblTempUsageDetail_20' ) end [2025-02-20 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518088', 'tblTempVendorCDR_20' ) start [2025-02-20 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518088', 'tblTempVendorCDR_20' ) end [2025-02-20 13:37:21] Production.INFO: ProcessCDR(1,14518088,1,1,2) [2025-02-20 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518088', 'tblTempUsageDetail_20' ) start [2025-02-20 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518088', 'tblTempUsageDetail_20' ) end [2025-02-20 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:37:26] Production.INFO: ==15030== Releasing lock... [2025-02-20 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:37:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:38:06 [end_date_ymd] => 2025-02-20 13:38:06 [RateCDR] => 1 ) [2025-02-20 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:38:06' and `end` < '2025-02-20 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:38:19] Production.INFO: count ==5018 [2025-02-20 13:38:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:38:06 - End Time 2025-02-20 13:38:06 [2025-02-20 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518093', 'tblTempUsageDetail_20' ) start [2025-02-20 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518093', 'tblTempUsageDetail_20' ) end [2025-02-20 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518093', 'tblTempVendorCDR_20' ) start [2025-02-20 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518093', 'tblTempVendorCDR_20' ) end [2025-02-20 13:38:22] Production.INFO: ProcessCDR(1,14518093,1,1,2) [2025-02-20 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518093', 'tblTempUsageDetail_20' ) start [2025-02-20 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518093', 'tblTempUsageDetail_20' ) end [2025-02-20 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:38:27] Production.INFO: ==15147== Releasing lock... [2025-02-20 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:38:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:39:05 [end_date_ymd] => 2025-02-20 13:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:39:05' and `end` < '2025-02-20 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-02-20 13:39:18] Production.INFO: count ==5017 [2025-02-20 13:39:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:39:05 - End Time 2025-02-20 13:39:05 [2025-02-20 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518098', 'tblTempUsageDetail_20' ) start [2025-02-20 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518098', 'tblTempUsageDetail_20' ) end [2025-02-20 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518098', 'tblTempVendorCDR_20' ) start [2025-02-20 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518098', 'tblTempVendorCDR_20' ) end [2025-02-20 13:39:20] Production.INFO: ProcessCDR(1,14518098,1,1,2) [2025-02-20 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518098', 'tblTempUsageDetail_20' ) start [2025-02-20 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518098', 'tblTempUsageDetail_20' ) end [2025-02-20 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:39:25] Production.INFO: ==15257== Releasing lock... [2025-02-20 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:39:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:40:05 [end_date_ymd] => 2025-02-20 13:40:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:40:05' and `end` < '2025-02-20 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:40:18] Production.INFO: count ==5017 [2025-02-20 13:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:40:05 - End Time 2025-02-20 13:40:05 [2025-02-20 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518102', 'tblTempUsageDetail_20' ) start [2025-02-20 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518102', 'tblTempUsageDetail_20' ) end [2025-02-20 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518102', 'tblTempVendorCDR_20' ) start [2025-02-20 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518102', 'tblTempVendorCDR_20' ) end [2025-02-20 13:40:21] Production.INFO: ProcessCDR(1,14518102,1,1,2) [2025-02-20 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518102', 'tblTempUsageDetail_20' ) start [2025-02-20 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518102', 'tblTempUsageDetail_20' ) end [2025-02-20 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:40:27] Production.INFO: ==15371== Releasing lock... [2025-02-20 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:40:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:41:05 [end_date_ymd] => 2025-02-20 13:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:41:05' and `end` < '2025-02-20 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-02-20 13:41:18] Production.INFO: count ==4955 [2025-02-20 13:41:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:41:05 - End Time 2025-02-20 13:41:05 [2025-02-20 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518109', 'tblTempUsageDetail_20' ) start [2025-02-20 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518109', 'tblTempUsageDetail_20' ) end [2025-02-20 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518109', 'tblTempVendorCDR_20' ) start [2025-02-20 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518109', 'tblTempVendorCDR_20' ) end [2025-02-20 13:41:21] Production.INFO: ProcessCDR(1,14518109,1,1,2) [2025-02-20 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518109', 'tblTempUsageDetail_20' ) start [2025-02-20 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518109', 'tblTempUsageDetail_20' ) end [2025-02-20 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:41:26] Production.INFO: ==15484== Releasing lock... [2025-02-20 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:41:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:42:06 [end_date_ymd] => 2025-02-20 13:42:06 [RateCDR] => 1 ) [2025-02-20 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:42:06' and `end` < '2025-02-20 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:42:18] Production.INFO: count ==4950 [2025-02-20 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:42:06 - End Time 2025-02-20 13:42:06 [2025-02-20 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518114', 'tblTempUsageDetail_20' ) start [2025-02-20 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518114', 'tblTempUsageDetail_20' ) end [2025-02-20 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518114', 'tblTempVendorCDR_20' ) start [2025-02-20 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518114', 'tblTempVendorCDR_20' ) end [2025-02-20 13:42:21] Production.INFO: ProcessCDR(1,14518114,1,1,2) [2025-02-20 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518114', 'tblTempUsageDetail_20' ) start [2025-02-20 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518114', 'tblTempUsageDetail_20' ) end [2025-02-20 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:42:26] Production.INFO: ==15597== Releasing lock... [2025-02-20 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:42:26] Production.INFO: 65 MB #Memory Used# [2025-02-20 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:43:05 [end_date_ymd] => 2025-02-20 13:43:05 [RateCDR] => 1 ) [2025-02-20 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:43:05' and `end` < '2025-02-20 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:43:18] Production.INFO: count ==4960 [2025-02-20 13:43:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:43:05 - End Time 2025-02-20 13:43:05 [2025-02-20 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518119', 'tblTempUsageDetail_20' ) start [2025-02-20 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518119', 'tblTempUsageDetail_20' ) end [2025-02-20 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518119', 'tblTempVendorCDR_20' ) start [2025-02-20 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518119', 'tblTempVendorCDR_20' ) end [2025-02-20 13:43:20] Production.INFO: ProcessCDR(1,14518119,1,1,2) [2025-02-20 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518119', 'tblTempUsageDetail_20' ) start [2025-02-20 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518119', 'tblTempUsageDetail_20' ) end [2025-02-20 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:43:26] Production.INFO: ==15710== Releasing lock... [2025-02-20 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:43:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:44:05 [end_date_ymd] => 2025-02-20 13:44:05 [RateCDR] => 1 ) [2025-02-20 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:44:05' and `end` < '2025-02-20 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-02-20 13:44:18] Production.INFO: count ==4964 [2025-02-20 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:44:05 - End Time 2025-02-20 13:44:05 [2025-02-20 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518124', 'tblTempUsageDetail_20' ) start [2025-02-20 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518124', 'tblTempUsageDetail_20' ) end [2025-02-20 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518124', 'tblTempVendorCDR_20' ) start [2025-02-20 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518124', 'tblTempVendorCDR_20' ) end [2025-02-20 13:44:21] Production.INFO: ProcessCDR(1,14518124,1,1,2) [2025-02-20 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518124', 'tblTempUsageDetail_20' ) start [2025-02-20 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518124', 'tblTempUsageDetail_20' ) end [2025-02-20 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:44:26] Production.INFO: ==15828== Releasing lock... [2025-02-20 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:44:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:45:05 [end_date_ymd] => 2025-02-20 13:45:05 [RateCDR] => 1 ) [2025-02-20 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:45:05' and `end` < '2025-02-20 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:45:17] Production.INFO: count ==4969 [2025-02-20 13:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:45:05 - End Time 2025-02-20 13:45:05 [2025-02-20 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518129', 'tblTempUsageDetail_20' ) start [2025-02-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518129', 'tblTempUsageDetail_20' ) end [2025-02-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518129', 'tblTempVendorCDR_20' ) start [2025-02-20 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518129', 'tblTempVendorCDR_20' ) end [2025-02-20 13:45:20] Production.INFO: ProcessCDR(1,14518129,1,1,2) [2025-02-20 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518129', 'tblTempUsageDetail_20' ) start [2025-02-20 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518129', 'tblTempUsageDetail_20' ) end [2025-02-20 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:45:25] Production.INFO: ==15943== Releasing lock... [2025-02-20 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:45:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:46:06 [end_date_ymd] => 2025-02-20 13:46:06 [RateCDR] => 1 ) [2025-02-20 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:46:06' and `end` < '2025-02-20 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:46:19] Production.INFO: count ==4957 [2025-02-20 13:46:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:46:06 - End Time 2025-02-20 13:46:06 [2025-02-20 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518134', 'tblTempUsageDetail_20' ) start [2025-02-20 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518134', 'tblTempUsageDetail_20' ) end [2025-02-20 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518134', 'tblTempVendorCDR_20' ) start [2025-02-20 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518134', 'tblTempVendorCDR_20' ) end [2025-02-20 13:46:21] Production.INFO: ProcessCDR(1,14518134,1,1,2) [2025-02-20 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518134', 'tblTempUsageDetail_20' ) start [2025-02-20 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518134', 'tblTempUsageDetail_20' ) end [2025-02-20 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:46:26] Production.INFO: ==16059== Releasing lock... [2025-02-20 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:46:26] Production.INFO: 65 MB #Memory Used# [2025-02-20 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:47:05 [end_date_ymd] => 2025-02-20 13:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:47:05' and `end` < '2025-02-20 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-02-20 13:47:18] Production.INFO: count ==4950 [2025-02-20 13:47:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:47:05 - End Time 2025-02-20 13:47:05 [2025-02-20 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518139', 'tblTempUsageDetail_20' ) start [2025-02-20 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518139', 'tblTempUsageDetail_20' ) end [2025-02-20 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518139', 'tblTempVendorCDR_20' ) start [2025-02-20 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518139', 'tblTempVendorCDR_20' ) end [2025-02-20 13:47:20] Production.INFO: ProcessCDR(1,14518139,1,1,2) [2025-02-20 13:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518139', 'tblTempUsageDetail_20' ) start [2025-02-20 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518139', 'tblTempUsageDetail_20' ) end [2025-02-20 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:47:26] Production.INFO: ==16171== Releasing lock... [2025-02-20 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:47:26] Production.INFO: 65 MB #Memory Used# [2025-02-20 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:48:06 [end_date_ymd] => 2025-02-20 13:48:06 [RateCDR] => 1 ) [2025-02-20 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:48:06' and `end` < '2025-02-20 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:48:18] Production.INFO: count ==4968 [2025-02-20 13:48:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:48:06 - End Time 2025-02-20 13:48:06 [2025-02-20 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518144', 'tblTempUsageDetail_20' ) start [2025-02-20 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518144', 'tblTempUsageDetail_20' ) end [2025-02-20 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518144', 'tblTempVendorCDR_20' ) start [2025-02-20 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518144', 'tblTempVendorCDR_20' ) end [2025-02-20 13:48:21] Production.INFO: ProcessCDR(1,14518144,1,1,2) [2025-02-20 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518144', 'tblTempUsageDetail_20' ) start [2025-02-20 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518144', 'tblTempUsageDetail_20' ) end [2025-02-20 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:48:27] Production.INFO: ==16322== Releasing lock... [2025-02-20 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:48:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:49:06 [end_date_ymd] => 2025-02-20 13:49:06 [RateCDR] => 1 ) [2025-02-20 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:49:06' and `end` < '2025-02-20 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:49:19] Production.INFO: count ==4973 [2025-02-20 13:49:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:49:06 - End Time 2025-02-20 13:49:06 [2025-02-20 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518149', 'tblTempUsageDetail_20' ) start [2025-02-20 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518149', 'tblTempUsageDetail_20' ) end [2025-02-20 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518149', 'tblTempVendorCDR_20' ) start [2025-02-20 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518149', 'tblTempVendorCDR_20' ) end [2025-02-20 13:49:22] Production.INFO: ProcessCDR(1,14518149,1,1,2) [2025-02-20 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518149', 'tblTempUsageDetail_20' ) start [2025-02-20 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518149', 'tblTempUsageDetail_20' ) end [2025-02-20 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:49:27] Production.INFO: ==16440== Releasing lock... [2025-02-20 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:49:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:50:06 [end_date_ymd] => 2025-02-20 13:50:06 [RateCDR] => 1 ) [2025-02-20 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:50:06' and `end` < '2025-02-20 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:50:19] Production.INFO: count ==4990 [2025-02-20 13:50:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:50:06 - End Time 2025-02-20 13:50:06 [2025-02-20 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518154', 'tblTempUsageDetail_20' ) start [2025-02-20 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518154', 'tblTempUsageDetail_20' ) end [2025-02-20 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518154', 'tblTempVendorCDR_20' ) start [2025-02-20 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518154', 'tblTempVendorCDR_20' ) end [2025-02-20 13:50:22] Production.INFO: ProcessCDR(1,14518154,1,1,2) [2025-02-20 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518154', 'tblTempUsageDetail_20' ) start [2025-02-20 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518154', 'tblTempUsageDetail_20' ) end [2025-02-20 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:50:27] Production.INFO: ==16551== Releasing lock... [2025-02-20 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:50:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:51:06 [end_date_ymd] => 2025-02-20 13:51:06 [RateCDR] => 1 ) [2025-02-20 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:51:06' and `end` < '2025-02-20 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:51:19] Production.INFO: count ==4979 [2025-02-20 13:51:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:51:06 - End Time 2025-02-20 13:51:06 [2025-02-20 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518160', 'tblTempUsageDetail_20' ) start [2025-02-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518160', 'tblTempUsageDetail_20' ) end [2025-02-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518160', 'tblTempVendorCDR_20' ) start [2025-02-20 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518160', 'tblTempVendorCDR_20' ) end [2025-02-20 13:51:21] Production.INFO: ProcessCDR(1,14518160,1,1,2) [2025-02-20 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518160', 'tblTempUsageDetail_20' ) start [2025-02-20 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518160', 'tblTempUsageDetail_20' ) end [2025-02-20 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:51:27] Production.INFO: ==16667== Releasing lock... [2025-02-20 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:51:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:52:05 [end_date_ymd] => 2025-02-20 13:52:05 [RateCDR] => 1 ) [2025-02-20 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:52:05' and `end` < '2025-02-20 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:52:18] Production.INFO: count ==4969 [2025-02-20 13:52:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:52:05 - End Time 2025-02-20 13:52:05 [2025-02-20 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518165', 'tblTempUsageDetail_20' ) start [2025-02-20 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518165', 'tblTempUsageDetail_20' ) end [2025-02-20 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518165', 'tblTempVendorCDR_20' ) start [2025-02-20 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518165', 'tblTempVendorCDR_20' ) end [2025-02-20 13:52:21] Production.INFO: ProcessCDR(1,14518165,1,1,2) [2025-02-20 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518165', 'tblTempUsageDetail_20' ) start [2025-02-20 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518165', 'tblTempUsageDetail_20' ) end [2025-02-20 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:52:26] Production.INFO: ==16779== Releasing lock... [2025-02-20 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:52:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:53:05 [end_date_ymd] => 2025-02-20 13:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:53:05' and `end` < '2025-02-20 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-02-20 13:53:18] Production.INFO: count ==4983 [2025-02-20 13:53:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:53:05 - End Time 2025-02-20 13:53:05 [2025-02-20 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518170', 'tblTempUsageDetail_20' ) start [2025-02-20 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518170', 'tblTempUsageDetail_20' ) end [2025-02-20 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518170', 'tblTempVendorCDR_20' ) start [2025-02-20 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518170', 'tblTempVendorCDR_20' ) end [2025-02-20 13:53:21] Production.INFO: ProcessCDR(1,14518170,1,1,2) [2025-02-20 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518170', 'tblTempUsageDetail_20' ) start [2025-02-20 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518170', 'tblTempUsageDetail_20' ) end [2025-02-20 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:53:26] Production.INFO: ==16895== Releasing lock... [2025-02-20 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:53:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:54:05 [end_date_ymd] => 2025-02-20 13:54:05 [RateCDR] => 1 ) [2025-02-20 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:54:05' and `end` < '2025-02-20 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:54:18] Production.INFO: count ==5003 [2025-02-20 13:54:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:54:05 - End Time 2025-02-20 13:54:05 [2025-02-20 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518175', 'tblTempUsageDetail_20' ) start [2025-02-20 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518175', 'tblTempUsageDetail_20' ) end [2025-02-20 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518175', 'tblTempVendorCDR_20' ) start [2025-02-20 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518175', 'tblTempVendorCDR_20' ) end [2025-02-20 13:54:21] Production.INFO: ProcessCDR(1,14518175,1,1,2) [2025-02-20 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518175', 'tblTempUsageDetail_20' ) start [2025-02-20 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518175', 'tblTempUsageDetail_20' ) end [2025-02-20 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:54:26] Production.INFO: ==16990== Releasing lock... [2025-02-20 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:54:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:55:06 [end_date_ymd] => 2025-02-20 13:55:06 [RateCDR] => 1 ) [2025-02-20 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:55:06' and `end` < '2025-02-20 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:55:19] Production.INFO: count ==4980 [2025-02-20 13:55:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:55:06 - End Time 2025-02-20 13:55:06 [2025-02-20 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518180', 'tblTempUsageDetail_20' ) start [2025-02-20 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518180', 'tblTempUsageDetail_20' ) end [2025-02-20 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518180', 'tblTempVendorCDR_20' ) start [2025-02-20 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518180', 'tblTempVendorCDR_20' ) end [2025-02-20 13:55:21] Production.INFO: ProcessCDR(1,14518180,1,1,2) [2025-02-20 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518180', 'tblTempUsageDetail_20' ) start [2025-02-20 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518180', 'tblTempUsageDetail_20' ) end [2025-02-20 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:55:26] Production.INFO: ==17066== Releasing lock... [2025-02-20 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:55:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:56:06 [end_date_ymd] => 2025-02-20 13:56:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:56:06' and `end` < '2025-02-20 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-02-20 13:56:19] Production.INFO: count ==4980 [2025-02-20 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:56:06 - End Time 2025-02-20 13:56:06 [2025-02-20 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518185', 'tblTempUsageDetail_20' ) start [2025-02-20 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518185', 'tblTempUsageDetail_20' ) end [2025-02-20 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518185', 'tblTempVendorCDR_20' ) start [2025-02-20 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518185', 'tblTempVendorCDR_20' ) end [2025-02-20 13:56:21] Production.INFO: ProcessCDR(1,14518185,1,1,2) [2025-02-20 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518185', 'tblTempUsageDetail_20' ) start [2025-02-20 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518185', 'tblTempUsageDetail_20' ) end [2025-02-20 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:56:26] Production.INFO: ==17136== Releasing lock... [2025-02-20 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:56:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:57:06 [end_date_ymd] => 2025-02-20 13:57:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:57:06' and `end` < '2025-02-20 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-02-20 13:57:19] Production.INFO: count ==4973 [2025-02-20 13:57:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:57:06 - End Time 2025-02-20 13:57:06 [2025-02-20 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518190', 'tblTempUsageDetail_20' ) start [2025-02-20 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518190', 'tblTempUsageDetail_20' ) end [2025-02-20 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518190', 'tblTempVendorCDR_20' ) start [2025-02-20 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518190', 'tblTempVendorCDR_20' ) end [2025-02-20 13:57:21] Production.INFO: ProcessCDR(1,14518190,1,1,2) [2025-02-20 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518190', 'tblTempUsageDetail_20' ) start [2025-02-20 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518190', 'tblTempUsageDetail_20' ) end [2025-02-20 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:57:26] Production.INFO: ==17207== Releasing lock... [2025-02-20 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:57:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:58:05 [end_date_ymd] => 2025-02-20 13:58:05 [RateCDR] => 1 ) [2025-02-20 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 10:58:05' and `end` < '2025-02-20 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 13:58:18] Production.INFO: count ==4987 [2025-02-20 13:58:20] Production.ERROR: pbx CDR StartTime 2025-02-20 10:58:05 - End Time 2025-02-20 13:58:05 [2025-02-20 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518195', 'tblTempUsageDetail_20' ) start [2025-02-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518195', 'tblTempUsageDetail_20' ) end [2025-02-20 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518195', 'tblTempVendorCDR_20' ) start [2025-02-20 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518195', 'tblTempVendorCDR_20' ) end [2025-02-20 13:58:21] Production.INFO: ProcessCDR(1,14518195,1,1,2) [2025-02-20 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518195', 'tblTempUsageDetail_20' ) start [2025-02-20 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518195', 'tblTempUsageDetail_20' ) end [2025-02-20 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:58:26] Production.INFO: ==17279== Releasing lock... [2025-02-20 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:58:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 10:59:05 [end_date_ymd] => 2025-02-20 13:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 10:59:05' and `end` < '2025-02-20 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-02-20 13:59:18] Production.INFO: count ==4995 [2025-02-20 13:59:21] Production.ERROR: pbx CDR StartTime 2025-02-20 10:59:05 - End Time 2025-02-20 13:59:05 [2025-02-20 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518200', 'tblTempUsageDetail_20' ) start [2025-02-20 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518200', 'tblTempUsageDetail_20' ) end [2025-02-20 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518200', 'tblTempVendorCDR_20' ) start [2025-02-20 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518200', 'tblTempVendorCDR_20' ) end [2025-02-20 13:59:21] Production.INFO: ProcessCDR(1,14518200,1,1,2) [2025-02-20 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518200', 'tblTempUsageDetail_20' ) start [2025-02-20 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518200', 'tblTempUsageDetail_20' ) end [2025-02-20 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 13:59:26] Production.INFO: ==17356== Releasing lock... [2025-02-20 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 13:59:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:00:06 [end_date_ymd] => 2025-02-20 14:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:00:06' and `end` < '2025-02-20 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-02-20 14:00:19] Production.INFO: count ==5004 [2025-02-20 14:00:22] Production.ERROR: pbx CDR StartTime 2025-02-20 11:00:06 - End Time 2025-02-20 14:00:06 [2025-02-20 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518206', 'tblTempUsageDetail_20' ) start [2025-02-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518206', 'tblTempUsageDetail_20' ) end [2025-02-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518206', 'tblTempVendorCDR_20' ) start [2025-02-20 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518206', 'tblTempVendorCDR_20' ) end [2025-02-20 14:00:22] Production.INFO: ProcessCDR(1,14518206,1,1,2) [2025-02-20 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518206', 'tblTempUsageDetail_20' ) start [2025-02-20 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518206', 'tblTempUsageDetail_20' ) end [2025-02-20 14:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:00:26] Production.INFO: ==17432== Releasing lock... [2025-02-20 14:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:00:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:01:05 [end_date_ymd] => 2025-02-20 14:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:01:05' and `end` < '2025-02-20 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-02-20 14:01:18] Production.INFO: count ==5021 [2025-02-20 14:01:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:01:05 - End Time 2025-02-20 14:01:05 [2025-02-20 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518211', 'tblTempUsageDetail_20' ) start [2025-02-20 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518211', 'tblTempUsageDetail_20' ) end [2025-02-20 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518211', 'tblTempVendorCDR_20' ) start [2025-02-20 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518211', 'tblTempVendorCDR_20' ) end [2025-02-20 14:01:21] Production.INFO: ProcessCDR(1,14518211,1,1,2) [2025-02-20 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518211', 'tblTempUsageDetail_20' ) start [2025-02-20 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518211', 'tblTempUsageDetail_20' ) end [2025-02-20 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:01:27] Production.INFO: ==17517== Releasing lock... [2025-02-20 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:01:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:02:05 [end_date_ymd] => 2025-02-20 14:02:05 [RateCDR] => 1 ) [2025-02-20 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:02:05' and `end` < '2025-02-20 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:02:18] Production.INFO: count ==5044 [2025-02-20 14:02:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:02:05 - End Time 2025-02-20 14:02:05 [2025-02-20 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518216', 'tblTempUsageDetail_20' ) start [2025-02-20 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518216', 'tblTempUsageDetail_20' ) end [2025-02-20 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518216', 'tblTempVendorCDR_20' ) start [2025-02-20 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518216', 'tblTempVendorCDR_20' ) end [2025-02-20 14:02:21] Production.INFO: ProcessCDR(1,14518216,1,1,2) [2025-02-20 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518216', 'tblTempUsageDetail_20' ) start [2025-02-20 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518216', 'tblTempUsageDetail_20' ) end [2025-02-20 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:02:26] Production.INFO: ==17592== Releasing lock... [2025-02-20 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:02:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:03:06 [end_date_ymd] => 2025-02-20 14:03:06 [RateCDR] => 1 ) [2025-02-20 14: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-02-20 11:03:06' and `end` < '2025-02-20 14: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-02-20 14:03:19] Production.INFO: count ==5063 [2025-02-20 14:03:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:03:06 - End Time 2025-02-20 14:03:06 [2025-02-20 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518221', 'tblTempUsageDetail_20' ) start [2025-02-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518221', 'tblTempUsageDetail_20' ) end [2025-02-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518221', 'tblTempVendorCDR_20' ) start [2025-02-20 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518221', 'tblTempVendorCDR_20' ) end [2025-02-20 14:03:21] Production.INFO: ProcessCDR(1,14518221,1,1,2) [2025-02-20 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518221', 'tblTempUsageDetail_20' ) start [2025-02-20 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518221', 'tblTempUsageDetail_20' ) end [2025-02-20 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:03:27] Production.INFO: ==17701== Releasing lock... [2025-02-20 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:03:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:04:05 [end_date_ymd] => 2025-02-20 14:04:05 [RateCDR] => 1 ) [2025-02-20 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:04:05' and `end` < '2025-02-20 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:04:18] Production.INFO: count ==5048 [2025-02-20 14:04:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:04:05 - End Time 2025-02-20 14:04:05 [2025-02-20 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518226', 'tblTempUsageDetail_20' ) start [2025-02-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518226', 'tblTempUsageDetail_20' ) end [2025-02-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518226', 'tblTempVendorCDR_20' ) start [2025-02-20 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518226', 'tblTempVendorCDR_20' ) end [2025-02-20 14:04:21] Production.INFO: ProcessCDR(1,14518226,1,1,2) [2025-02-20 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518226', 'tblTempUsageDetail_20' ) start [2025-02-20 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518226', 'tblTempUsageDetail_20' ) end [2025-02-20 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:04:26] Production.INFO: ==17772== Releasing lock... [2025-02-20 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:04:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:05:06 [end_date_ymd] => 2025-02-20 14:05:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:05:06' and `end` < '2025-02-20 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:05:18] Production.INFO: count ==5013 [2025-02-20 14:05:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:05:06 - End Time 2025-02-20 14:05:06 [2025-02-20 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518231', 'tblTempUsageDetail_20' ) start [2025-02-20 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518231', 'tblTempUsageDetail_20' ) end [2025-02-20 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518231', 'tblTempVendorCDR_20' ) start [2025-02-20 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518231', 'tblTempVendorCDR_20' ) end [2025-02-20 14:05:21] Production.INFO: ProcessCDR(1,14518231,1,1,2) [2025-02-20 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518231', 'tblTempUsageDetail_20' ) start [2025-02-20 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518231', 'tblTempUsageDetail_20' ) end [2025-02-20 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:05:26] Production.INFO: ==17843== Releasing lock... [2025-02-20 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:05:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:06:05 [end_date_ymd] => 2025-02-20 14:06:05 [RateCDR] => 1 ) [2025-02-20 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:06:05' and `end` < '2025-02-20 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:06:18] Production.INFO: count ==5073 [2025-02-20 14:06:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:06:05 - End Time 2025-02-20 14:06:05 [2025-02-20 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518236', 'tblTempUsageDetail_20' ) start [2025-02-20 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518236', 'tblTempUsageDetail_20' ) end [2025-02-20 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518236', 'tblTempVendorCDR_20' ) start [2025-02-20 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518236', 'tblTempVendorCDR_20' ) end [2025-02-20 14:06:21] Production.INFO: ProcessCDR(1,14518236,1,1,2) [2025-02-20 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518236', 'tblTempUsageDetail_20' ) start [2025-02-20 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518236', 'tblTempUsageDetail_20' ) end [2025-02-20 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:06:26] Production.INFO: ==17915== Releasing lock... [2025-02-20 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:06:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:07:06 [end_date_ymd] => 2025-02-20 14:07:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:07:06' and `end` < '2025-02-20 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-02-20 14:07:19] Production.INFO: count ==5081 [2025-02-20 14:07:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:07:06 - End Time 2025-02-20 14:07:06 [2025-02-20 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518241', 'tblTempUsageDetail_20' ) start [2025-02-20 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518241', 'tblTempUsageDetail_20' ) end [2025-02-20 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518241', 'tblTempVendorCDR_20' ) start [2025-02-20 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518241', 'tblTempVendorCDR_20' ) end [2025-02-20 14:07:21] Production.INFO: ProcessCDR(1,14518241,1,1,2) [2025-02-20 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518241', 'tblTempUsageDetail_20' ) start [2025-02-20 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518241', 'tblTempUsageDetail_20' ) end [2025-02-20 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:07:26] Production.INFO: ==17986== Releasing lock... [2025-02-20 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:07:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:08:05 [end_date_ymd] => 2025-02-20 14:08:05 [RateCDR] => 1 ) [2025-02-20 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:08:05' and `end` < '2025-02-20 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:08:18] Production.INFO: count ==5070 [2025-02-20 14:08:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:08:05 - End Time 2025-02-20 14:08:05 [2025-02-20 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518246', 'tblTempUsageDetail_20' ) start [2025-02-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518246', 'tblTempUsageDetail_20' ) end [2025-02-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518246', 'tblTempVendorCDR_20' ) start [2025-02-20 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518246', 'tblTempVendorCDR_20' ) end [2025-02-20 14:08:20] Production.INFO: ProcessCDR(1,14518246,1,1,2) [2025-02-20 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518246', 'tblTempUsageDetail_20' ) start [2025-02-20 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518246', 'tblTempUsageDetail_20' ) end [2025-02-20 14:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:08:25] Production.INFO: ==18068== Releasing lock... [2025-02-20 14:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:08:25] Production.INFO: 66 MB #Memory Used# [2025-02-20 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:09:06 [end_date_ymd] => 2025-02-20 14:09:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:09:06' and `end` < '2025-02-20 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-02-20 14:09:18] Production.INFO: count ==5099 [2025-02-20 14:09:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:09:06 - End Time 2025-02-20 14:09:06 [2025-02-20 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518251', 'tblTempUsageDetail_20' ) start [2025-02-20 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518251', 'tblTempUsageDetail_20' ) end [2025-02-20 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518251', 'tblTempVendorCDR_20' ) start [2025-02-20 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518251', 'tblTempVendorCDR_20' ) end [2025-02-20 14:09:21] Production.INFO: ProcessCDR(1,14518251,1,1,2) [2025-02-20 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518251', 'tblTempUsageDetail_20' ) start [2025-02-20 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518251', 'tblTempUsageDetail_20' ) end [2025-02-20 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:09:26] Production.INFO: ==18161== Releasing lock... [2025-02-20 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:09:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:10:06 [end_date_ymd] => 2025-02-20 14:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:10:06' and `end` < '2025-02-20 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-02-20 14:10:19] Production.INFO: count ==5137 [2025-02-20 14:10:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:10:06 - End Time 2025-02-20 14:10:06 [2025-02-20 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518257', 'tblTempUsageDetail_20' ) start [2025-02-20 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518257', 'tblTempUsageDetail_20' ) end [2025-02-20 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518257', 'tblTempVendorCDR_20' ) start [2025-02-20 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518257', 'tblTempVendorCDR_20' ) end [2025-02-20 14:10:21] Production.INFO: ProcessCDR(1,14518257,1,1,2) [2025-02-20 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518257', 'tblTempUsageDetail_20' ) start [2025-02-20 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518257', 'tblTempUsageDetail_20' ) end [2025-02-20 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:10:27] Production.INFO: ==18244== Releasing lock... [2025-02-20 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:10:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:11:05 [end_date_ymd] => 2025-02-20 14:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:11:05' and `end` < '2025-02-20 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-02-20 14:11:18] Production.INFO: count ==5138 [2025-02-20 14:11:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:11:05 - End Time 2025-02-20 14:11:05 [2025-02-20 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518262', 'tblTempUsageDetail_20' ) start [2025-02-20 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518262', 'tblTempUsageDetail_20' ) end [2025-02-20 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518262', 'tblTempVendorCDR_20' ) start [2025-02-20 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518262', 'tblTempVendorCDR_20' ) end [2025-02-20 14:11:21] Production.INFO: ProcessCDR(1,14518262,1,1,2) [2025-02-20 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518262', 'tblTempUsageDetail_20' ) start [2025-02-20 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518262', 'tblTempUsageDetail_20' ) end [2025-02-20 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:11:26] Production.INFO: ==18336== Releasing lock... [2025-02-20 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:11:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:12:06 [end_date_ymd] => 2025-02-20 14:12:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:12:06' and `end` < '2025-02-20 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-02-20 14:12:18] Production.INFO: count ==5136 [2025-02-20 14:12:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:12:06 - End Time 2025-02-20 14:12:06 [2025-02-20 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518267', 'tblTempUsageDetail_20' ) start [2025-02-20 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518267', 'tblTempUsageDetail_20' ) end [2025-02-20 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518267', 'tblTempVendorCDR_20' ) start [2025-02-20 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518267', 'tblTempVendorCDR_20' ) end [2025-02-20 14:12:21] Production.INFO: ProcessCDR(1,14518267,1,1,2) [2025-02-20 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518267', 'tblTempUsageDetail_20' ) start [2025-02-20 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518267', 'tblTempUsageDetail_20' ) end [2025-02-20 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:12:26] Production.INFO: ==18424== Releasing lock... [2025-02-20 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:13:05 [end_date_ymd] => 2025-02-20 14:13:05 [RateCDR] => 1 ) [2025-02-20 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:13:05' and `end` < '2025-02-20 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:13:18] Production.INFO: count ==5149 [2025-02-20 14:13:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:13:05 - End Time 2025-02-20 14:13:05 [2025-02-20 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518272', 'tblTempUsageDetail_20' ) start [2025-02-20 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518272', 'tblTempUsageDetail_20' ) end [2025-02-20 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518272', 'tblTempVendorCDR_20' ) start [2025-02-20 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518272', 'tblTempVendorCDR_20' ) end [2025-02-20 14:13:21] Production.INFO: ProcessCDR(1,14518272,1,1,2) [2025-02-20 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518272', 'tblTempUsageDetail_20' ) start [2025-02-20 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518272', 'tblTempUsageDetail_20' ) end [2025-02-20 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:13:26] Production.INFO: ==18520== Releasing lock... [2025-02-20 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:13:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:14:05 [end_date_ymd] => 2025-02-20 14:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:14:05' and `end` < '2025-02-20 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-02-20 14:14:18] Production.INFO: count ==5172 [2025-02-20 14:14:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:14:05 - End Time 2025-02-20 14:14:05 [2025-02-20 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518277', 'tblTempUsageDetail_20' ) start [2025-02-20 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518277', 'tblTempUsageDetail_20' ) end [2025-02-20 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518277', 'tblTempVendorCDR_20' ) start [2025-02-20 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518277', 'tblTempVendorCDR_20' ) end [2025-02-20 14:14:20] Production.INFO: ProcessCDR(1,14518277,1,1,2) [2025-02-20 14:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518277', 'tblTempUsageDetail_20' ) start [2025-02-20 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518277', 'tblTempUsageDetail_20' ) end [2025-02-20 14:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:14:25] Production.INFO: ==18607== Releasing lock... [2025-02-20 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:14:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:15:06 [end_date_ymd] => 2025-02-20 14:15:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:15:06' and `end` < '2025-02-20 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-02-20 14:15:18] Production.INFO: count ==5175 [2025-02-20 14:15:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:15:06 - End Time 2025-02-20 14:15:06 [2025-02-20 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518282', 'tblTempUsageDetail_20' ) start [2025-02-20 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518282', 'tblTempUsageDetail_20' ) end [2025-02-20 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518282', 'tblTempVendorCDR_20' ) start [2025-02-20 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518282', 'tblTempVendorCDR_20' ) end [2025-02-20 14:15:21] Production.INFO: ProcessCDR(1,14518282,1,1,2) [2025-02-20 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518282', 'tblTempUsageDetail_20' ) start [2025-02-20 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518282', 'tblTempUsageDetail_20' ) end [2025-02-20 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:15:26] Production.INFO: ==18707== Releasing lock... [2025-02-20 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:15:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:16:05 [end_date_ymd] => 2025-02-20 14:16:05 [RateCDR] => 1 ) [2025-02-20 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:16:05' and `end` < '2025-02-20 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:16:18] Production.INFO: count ==5183 [2025-02-20 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:16:05 - End Time 2025-02-20 14:16:05 [2025-02-20 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518287', 'tblTempUsageDetail_20' ) start [2025-02-20 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518287', 'tblTempUsageDetail_20' ) end [2025-02-20 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518287', 'tblTempVendorCDR_20' ) start [2025-02-20 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518287', 'tblTempVendorCDR_20' ) end [2025-02-20 14:16:21] Production.INFO: ProcessCDR(1,14518287,1,1,2) [2025-02-20 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518287', 'tblTempUsageDetail_20' ) start [2025-02-20 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518287', 'tblTempUsageDetail_20' ) end [2025-02-20 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:16:26] Production.INFO: ==18795== Releasing lock... [2025-02-20 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:16:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:17:06 [end_date_ymd] => 2025-02-20 14:17:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:17:06' and `end` < '2025-02-20 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-02-20 14:17:19] Production.INFO: count ==5173 [2025-02-20 14:17:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:17:06 - End Time 2025-02-20 14:17:06 [2025-02-20 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518292', 'tblTempUsageDetail_20' ) start [2025-02-20 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518292', 'tblTempUsageDetail_20' ) end [2025-02-20 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518292', 'tblTempVendorCDR_20' ) start [2025-02-20 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518292', 'tblTempVendorCDR_20' ) end [2025-02-20 14:17:22] Production.INFO: ProcessCDR(1,14518292,1,1,2) [2025-02-20 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518292', 'tblTempUsageDetail_20' ) start [2025-02-20 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518292', 'tblTempUsageDetail_20' ) end [2025-02-20 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:17:27] Production.INFO: ==18887== Releasing lock... [2025-02-20 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:17:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:18:06 [end_date_ymd] => 2025-02-20 14:18:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:18:06' and `end` < '2025-02-20 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-02-20 14:18:18] Production.INFO: count ==5162 [2025-02-20 14:18:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:18:06 - End Time 2025-02-20 14:18:06 [2025-02-20 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518297', 'tblTempUsageDetail_20' ) start [2025-02-20 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518297', 'tblTempUsageDetail_20' ) end [2025-02-20 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518297', 'tblTempVendorCDR_20' ) start [2025-02-20 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518297', 'tblTempVendorCDR_20' ) end [2025-02-20 14:18:21] Production.INFO: ProcessCDR(1,14518297,1,1,2) [2025-02-20 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518297', 'tblTempUsageDetail_20' ) start [2025-02-20 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518297', 'tblTempUsageDetail_20' ) end [2025-02-20 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:18:27] Production.INFO: ==18970== Releasing lock... [2025-02-20 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:18:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:19:06 [end_date_ymd] => 2025-02-20 14:19:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:19:06' and `end` < '2025-02-20 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-02-20 14:19:19] Production.INFO: count ==5156 [2025-02-20 14:19:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:19:06 - End Time 2025-02-20 14:19:06 [2025-02-20 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518302', 'tblTempUsageDetail_20' ) start [2025-02-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518302', 'tblTempUsageDetail_20' ) end [2025-02-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518302', 'tblTempVendorCDR_20' ) start [2025-02-20 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518302', 'tblTempVendorCDR_20' ) end [2025-02-20 14:19:22] Production.INFO: ProcessCDR(1,14518302,1,1,2) [2025-02-20 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518302', 'tblTempUsageDetail_20' ) start [2025-02-20 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518302', 'tblTempUsageDetail_20' ) end [2025-02-20 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:19:27] Production.INFO: ==19104== Releasing lock... [2025-02-20 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:19:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:20:07 [end_date_ymd] => 2025-02-20 14:20:07 [RateCDR] => 1 ) [2025-02-20 14: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-02-20 11:20:07' and `end` < '2025-02-20 14: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-02-20 14:20:19] Production.INFO: count ==5160 [2025-02-20 14:20:22] Production.ERROR: pbx CDR StartTime 2025-02-20 11:20:07 - End Time 2025-02-20 14:20:07 [2025-02-20 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518308', 'tblTempUsageDetail_20' ) start [2025-02-20 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518308', 'tblTempUsageDetail_20' ) end [2025-02-20 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518308', 'tblTempVendorCDR_20' ) start [2025-02-20 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518308', 'tblTempVendorCDR_20' ) end [2025-02-20 14:20:22] Production.INFO: ProcessCDR(1,14518308,1,1,2) [2025-02-20 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518308', 'tblTempUsageDetail_20' ) start [2025-02-20 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518308', 'tblTempUsageDetail_20' ) end [2025-02-20 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:20:28] Production.INFO: ==19196== Releasing lock... [2025-02-20 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:20:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:21:06 [end_date_ymd] => 2025-02-20 14:21:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:21:06' and `end` < '2025-02-20 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-02-20 14:21:19] Production.INFO: count ==5183 [2025-02-20 14:21:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:21:06 - End Time 2025-02-20 14:21:06 [2025-02-20 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518313', 'tblTempUsageDetail_20' ) start [2025-02-20 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518313', 'tblTempUsageDetail_20' ) end [2025-02-20 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518313', 'tblTempVendorCDR_20' ) start [2025-02-20 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518313', 'tblTempVendorCDR_20' ) end [2025-02-20 14:21:21] Production.INFO: ProcessCDR(1,14518313,1,1,2) [2025-02-20 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518313', 'tblTempUsageDetail_20' ) start [2025-02-20 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518313', 'tblTempUsageDetail_20' ) end [2025-02-20 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:21:26] Production.INFO: ==19286== Releasing lock... [2025-02-20 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:21:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:22:05 [end_date_ymd] => 2025-02-20 14:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:22:05' and `end` < '2025-02-20 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-02-20 14:22:18] Production.INFO: count ==5259 [2025-02-20 14:22:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:22:05 - End Time 2025-02-20 14:22:05 [2025-02-20 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518318', 'tblTempUsageDetail_20' ) start [2025-02-20 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518318', 'tblTempUsageDetail_20' ) end [2025-02-20 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518318', 'tblTempVendorCDR_20' ) start [2025-02-20 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518318', 'tblTempVendorCDR_20' ) end [2025-02-20 14:22:21] Production.INFO: ProcessCDR(1,14518318,1,1,2) [2025-02-20 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518318', 'tblTempUsageDetail_20' ) start [2025-02-20 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518318', 'tblTempUsageDetail_20' ) end [2025-02-20 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:22:26] Production.INFO: ==19373== Releasing lock... [2025-02-20 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:22:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-20 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:23:06 [end_date_ymd] => 2025-02-20 14:23:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:23:06' and `end` < '2025-02-20 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-02-20 14:23:19] Production.INFO: count ==5279 [2025-02-20 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:23:06 - End Time 2025-02-20 14:23:06 [2025-02-20 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518323', 'tblTempUsageDetail_20' ) start [2025-02-20 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518323', 'tblTempUsageDetail_20' ) end [2025-02-20 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518323', 'tblTempVendorCDR_20' ) start [2025-02-20 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518323', 'tblTempVendorCDR_20' ) end [2025-02-20 14:23:21] Production.INFO: ProcessCDR(1,14518323,1,1,2) [2025-02-20 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518323', 'tblTempUsageDetail_20' ) start [2025-02-20 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518323', 'tblTempUsageDetail_20' ) end [2025-02-20 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:23:27] Production.INFO: ==19464== Releasing lock... [2025-02-20 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:23:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-20 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:24:05 [end_date_ymd] => 2025-02-20 14:24:05 [RateCDR] => 1 ) [2025-02-20 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:24:05' and `end` < '2025-02-20 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:24:18] Production.INFO: count ==5324 [2025-02-20 14:24:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:24:05 - End Time 2025-02-20 14:24:05 [2025-02-20 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518328', 'tblTempUsageDetail_20' ) start [2025-02-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518328', 'tblTempUsageDetail_20' ) end [2025-02-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518328', 'tblTempVendorCDR_20' ) start [2025-02-20 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518328', 'tblTempVendorCDR_20' ) end [2025-02-20 14:24:20] Production.INFO: ProcessCDR(1,14518328,1,1,2) [2025-02-20 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518328', 'tblTempUsageDetail_20' ) start [2025-02-20 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518328', 'tblTempUsageDetail_20' ) end [2025-02-20 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:24:26] Production.INFO: ==19554== Releasing lock... [2025-02-20 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:24:26] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:25:06 [end_date_ymd] => 2025-02-20 14:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:25:06' and `end` < '2025-02-20 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-02-20 14:25:19] Production.INFO: count ==5362 [2025-02-20 14:25:22] Production.ERROR: pbx CDR StartTime 2025-02-20 11:25:06 - End Time 2025-02-20 14:25:06 [2025-02-20 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518333', 'tblTempUsageDetail_20' ) start [2025-02-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518333', 'tblTempUsageDetail_20' ) end [2025-02-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518333', 'tblTempVendorCDR_20' ) start [2025-02-20 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518333', 'tblTempVendorCDR_20' ) end [2025-02-20 14:25:22] Production.INFO: ProcessCDR(1,14518333,1,1,2) [2025-02-20 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518333', 'tblTempUsageDetail_20' ) start [2025-02-20 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518333', 'tblTempUsageDetail_20' ) end [2025-02-20 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:25:27] Production.INFO: ==19648== Releasing lock... [2025-02-20 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:25:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-20 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:26:05 [end_date_ymd] => 2025-02-20 14:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:26:05' and `end` < '2025-02-20 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-02-20 14:26:18] Production.INFO: count ==5371 [2025-02-20 14:26:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:26:05 - End Time 2025-02-20 14:26:05 [2025-02-20 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518338', 'tblTempUsageDetail_20' ) start [2025-02-20 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518338', 'tblTempUsageDetail_20' ) end [2025-02-20 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518338', 'tblTempVendorCDR_20' ) start [2025-02-20 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518338', 'tblTempVendorCDR_20' ) end [2025-02-20 14:26:21] Production.INFO: ProcessCDR(1,14518338,1,1,2) [2025-02-20 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518338', 'tblTempUsageDetail_20' ) start [2025-02-20 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518338', 'tblTempUsageDetail_20' ) end [2025-02-20 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:26:27] Production.INFO: ==19739== Releasing lock... [2025-02-20 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:26:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-20 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:27:06 [end_date_ymd] => 2025-02-20 14:27:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:27:06' and `end` < '2025-02-20 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-02-20 14:27:19] Production.INFO: count ==5347 [2025-02-20 14:27:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:27:06 - End Time 2025-02-20 14:27:06 [2025-02-20 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518343', 'tblTempUsageDetail_20' ) start [2025-02-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518343', 'tblTempUsageDetail_20' ) end [2025-02-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518343', 'tblTempVendorCDR_20' ) start [2025-02-20 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518343', 'tblTempVendorCDR_20' ) end [2025-02-20 14:27:21] Production.INFO: ProcessCDR(1,14518343,1,1,2) [2025-02-20 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518343', 'tblTempUsageDetail_20' ) start [2025-02-20 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518343', 'tblTempUsageDetail_20' ) end [2025-02-20 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:27:27] Production.INFO: ==19829== Releasing lock... [2025-02-20 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:27:27] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:28:05 [end_date_ymd] => 2025-02-20 14:28:05 [RateCDR] => 1 ) [2025-02-20 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:28:05' and `end` < '2025-02-20 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:28:18] Production.INFO: count ==5332 [2025-02-20 14:28:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:28:05 - End Time 2025-02-20 14:28:05 [2025-02-20 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518348', 'tblTempUsageDetail_20' ) start [2025-02-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518348', 'tblTempUsageDetail_20' ) end [2025-02-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518348', 'tblTempVendorCDR_20' ) start [2025-02-20 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518348', 'tblTempVendorCDR_20' ) end [2025-02-20 14:28:21] Production.INFO: ProcessCDR(1,14518348,1,1,2) [2025-02-20 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518348', 'tblTempUsageDetail_20' ) start [2025-02-20 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518348', 'tblTempUsageDetail_20' ) end [2025-02-20 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:28:26] Production.INFO: ==19916== Releasing lock... [2025-02-20 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:28:26] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:29:06 [end_date_ymd] => 2025-02-20 14:29:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:29:06' and `end` < '2025-02-20 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-02-20 14:29:19] Production.INFO: count ==5301 [2025-02-20 14:29:22] Production.ERROR: pbx CDR StartTime 2025-02-20 11:29:06 - End Time 2025-02-20 14:29:06 [2025-02-20 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518353', 'tblTempUsageDetail_20' ) start [2025-02-20 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518353', 'tblTempUsageDetail_20' ) end [2025-02-20 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518353', 'tblTempVendorCDR_20' ) start [2025-02-20 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518353', 'tblTempVendorCDR_20' ) end [2025-02-20 14:29:22] Production.INFO: ProcessCDR(1,14518353,1,1,2) [2025-02-20 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518353', 'tblTempUsageDetail_20' ) start [2025-02-20 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518353', 'tblTempUsageDetail_20' ) end [2025-02-20 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:29:27] Production.INFO: ==20008== Releasing lock... [2025-02-20 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:29:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:30:06 [end_date_ymd] => 2025-02-20 14:30:06 [RateCDR] => 1 ) [2025-02-20 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:30:06' and `end` < '2025-02-20 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:30:19] Production.INFO: count ==5290 [2025-02-20 14:30:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:30:06 - End Time 2025-02-20 14:30:06 [2025-02-20 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518359', 'tblTempUsageDetail_20' ) start [2025-02-20 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518359', 'tblTempUsageDetail_20' ) end [2025-02-20 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518359', 'tblTempVendorCDR_20' ) start [2025-02-20 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518359', 'tblTempVendorCDR_20' ) end [2025-02-20 14:30:22] Production.INFO: ProcessCDR(1,14518359,1,1,2) [2025-02-20 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518359', 'tblTempUsageDetail_20' ) start [2025-02-20 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518359', 'tblTempUsageDetail_20' ) end [2025-02-20 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:30:27] Production.INFO: ==20096== Releasing lock... [2025-02-20 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:30:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-20 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:31:06 [end_date_ymd] => 2025-02-20 14:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:31:06' and `end` < '2025-02-20 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-02-20 14:31:19] Production.INFO: count ==5338 [2025-02-20 14:31:22] Production.ERROR: pbx CDR StartTime 2025-02-20 11:31:06 - End Time 2025-02-20 14:31:06 [2025-02-20 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518364', 'tblTempUsageDetail_20' ) start [2025-02-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518364', 'tblTempUsageDetail_20' ) end [2025-02-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518364', 'tblTempVendorCDR_20' ) start [2025-02-20 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518364', 'tblTempVendorCDR_20' ) end [2025-02-20 14:31:22] Production.INFO: ProcessCDR(1,14518364,1,1,2) [2025-02-20 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518364', 'tblTempUsageDetail_20' ) start [2025-02-20 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518364', 'tblTempUsageDetail_20' ) end [2025-02-20 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:31:27] Production.INFO: ==20193== Releasing lock... [2025-02-20 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:31:27] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:32:05 [end_date_ymd] => 2025-02-20 14:32:05 [RateCDR] => 1 ) [2025-02-20 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:32:05' and `end` < '2025-02-20 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:32:18] Production.INFO: count ==5328 [2025-02-20 14:32:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:32:05 - End Time 2025-02-20 14:32:05 [2025-02-20 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518369', 'tblTempUsageDetail_20' ) start [2025-02-20 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518369', 'tblTempUsageDetail_20' ) end [2025-02-20 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518369', 'tblTempVendorCDR_20' ) start [2025-02-20 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518369', 'tblTempVendorCDR_20' ) end [2025-02-20 14:32:21] Production.INFO: ProcessCDR(1,14518369,1,1,2) [2025-02-20 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518369', 'tblTempUsageDetail_20' ) start [2025-02-20 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518369', 'tblTempUsageDetail_20' ) end [2025-02-20 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:32:26] Production.INFO: ==20277== Releasing lock... [2025-02-20 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:32:26] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:33:06 [end_date_ymd] => 2025-02-20 14:33:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:33:06' and `end` < '2025-02-20 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-02-20 14:33:18] Production.INFO: count ==5319 [2025-02-20 14:33:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:33:06 - End Time 2025-02-20 14:33:06 [2025-02-20 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518374', 'tblTempUsageDetail_20' ) start [2025-02-20 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518374', 'tblTempUsageDetail_20' ) end [2025-02-20 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518374', 'tblTempVendorCDR_20' ) start [2025-02-20 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518374', 'tblTempVendorCDR_20' ) end [2025-02-20 14:33:21] Production.INFO: ProcessCDR(1,14518374,1,1,2) [2025-02-20 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518374', 'tblTempUsageDetail_20' ) start [2025-02-20 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518374', 'tblTempUsageDetail_20' ) end [2025-02-20 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:33:26] Production.INFO: ==20364== Releasing lock... [2025-02-20 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:33:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:34:05 [end_date_ymd] => 2025-02-20 14:34:05 [RateCDR] => 1 ) [2025-02-20 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:34:05' and `end` < '2025-02-20 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:34:18] Production.INFO: count ==5324 [2025-02-20 14:34:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:34:05 - End Time 2025-02-20 14:34:05 [2025-02-20 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518379', 'tblTempUsageDetail_20' ) start [2025-02-20 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518379', 'tblTempUsageDetail_20' ) end [2025-02-20 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518379', 'tblTempVendorCDR_20' ) start [2025-02-20 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518379', 'tblTempVendorCDR_20' ) end [2025-02-20 14:34:21] Production.INFO: ProcessCDR(1,14518379,1,1,2) [2025-02-20 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518379', 'tblTempUsageDetail_20' ) start [2025-02-20 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518379', 'tblTempUsageDetail_20' ) end [2025-02-20 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:34:26] Production.INFO: ==20479== Releasing lock... [2025-02-20 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:34:26] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:35:06 [end_date_ymd] => 2025-02-20 14:35:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:35:06' and `end` < '2025-02-20 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-02-20 14:35:19] Production.INFO: count ==5298 [2025-02-20 14:35:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:35:06 - End Time 2025-02-20 14:35:06 [2025-02-20 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518384', 'tblTempUsageDetail_20' ) start [2025-02-20 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518384', 'tblTempUsageDetail_20' ) end [2025-02-20 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518384', 'tblTempVendorCDR_20' ) start [2025-02-20 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518384', 'tblTempVendorCDR_20' ) end [2025-02-20 14:35:22] Production.INFO: ProcessCDR(1,14518384,1,1,2) [2025-02-20 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518384', 'tblTempUsageDetail_20' ) start [2025-02-20 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518384', 'tblTempUsageDetail_20' ) end [2025-02-20 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:35:26] Production.INFO: ==20562== Releasing lock... [2025-02-20 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:35:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:36:05 [end_date_ymd] => 2025-02-20 14:36:05 [RateCDR] => 1 ) [2025-02-20 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:36:05' and `end` < '2025-02-20 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:36:18] Production.INFO: count ==5305 [2025-02-20 14:36:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:36:05 - End Time 2025-02-20 14:36:05 [2025-02-20 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518389', 'tblTempUsageDetail_20' ) start [2025-02-20 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518389', 'tblTempUsageDetail_20' ) end [2025-02-20 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518389', 'tblTempVendorCDR_20' ) start [2025-02-20 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518389', 'tblTempVendorCDR_20' ) end [2025-02-20 14:36:21] Production.INFO: ProcessCDR(1,14518389,1,1,2) [2025-02-20 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518389', 'tblTempUsageDetail_20' ) start [2025-02-20 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518389', 'tblTempUsageDetail_20' ) end [2025-02-20 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:36:26] Production.INFO: ==20632== Releasing lock... [2025-02-20 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:36:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:37:05 [end_date_ymd] => 2025-02-20 14:37:05 [RateCDR] => 1 ) [2025-02-20 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:37:05' and `end` < '2025-02-20 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:37:18] Production.INFO: count ==5306 [2025-02-20 14:37:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:37:05 - End Time 2025-02-20 14:37:05 [2025-02-20 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518394', 'tblTempUsageDetail_20' ) start [2025-02-20 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518394', 'tblTempUsageDetail_20' ) end [2025-02-20 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518394', 'tblTempVendorCDR_20' ) start [2025-02-20 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518394', 'tblTempVendorCDR_20' ) end [2025-02-20 14:37:20] Production.INFO: ProcessCDR(1,14518394,1,1,2) [2025-02-20 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518394', 'tblTempUsageDetail_20' ) start [2025-02-20 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518394', 'tblTempUsageDetail_20' ) end [2025-02-20 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:37:26] Production.INFO: ==20702== Releasing lock... [2025-02-20 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:37:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:38:05 [end_date_ymd] => 2025-02-20 14:38:05 [RateCDR] => 1 ) [2025-02-20 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:38:05' and `end` < '2025-02-20 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:38:18] Production.INFO: count ==5303 [2025-02-20 14:38:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:38:05 - End Time 2025-02-20 14:38:05 [2025-02-20 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518399', 'tblTempUsageDetail_20' ) start [2025-02-20 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518399', 'tblTempUsageDetail_20' ) end [2025-02-20 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518399', 'tblTempVendorCDR_20' ) start [2025-02-20 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518399', 'tblTempVendorCDR_20' ) end [2025-02-20 14:38:21] Production.INFO: ProcessCDR(1,14518399,1,1,2) [2025-02-20 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518399', 'tblTempUsageDetail_20' ) start [2025-02-20 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518399', 'tblTempUsageDetail_20' ) end [2025-02-20 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:38:26] Production.INFO: ==20772== Releasing lock... [2025-02-20 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:38:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:39:06 [end_date_ymd] => 2025-02-20 14:39:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:39:06' and `end` < '2025-02-20 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-02-20 14:39:18] Production.INFO: count ==5308 [2025-02-20 14:39:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:39:06 - End Time 2025-02-20 14:39:06 [2025-02-20 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518404', 'tblTempUsageDetail_20' ) start [2025-02-20 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518404', 'tblTempUsageDetail_20' ) end [2025-02-20 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518404', 'tblTempVendorCDR_20' ) start [2025-02-20 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518404', 'tblTempVendorCDR_20' ) end [2025-02-20 14:39:21] Production.INFO: ProcessCDR(1,14518404,1,1,2) [2025-02-20 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518404', 'tblTempUsageDetail_20' ) start [2025-02-20 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518404', 'tblTempUsageDetail_20' ) end [2025-02-20 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:39:25] Production.INFO: ==20847== Releasing lock... [2025-02-20 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:39:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:40:05 [end_date_ymd] => 2025-02-20 14:40:05 [RateCDR] => 1 ) [2025-02-20 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:40:05' and `end` < '2025-02-20 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:40:18] Production.INFO: count ==5324 [2025-02-20 14:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:40:05 - End Time 2025-02-20 14:40:05 [2025-02-20 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518409', 'tblTempUsageDetail_20' ) start [2025-02-20 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518409', 'tblTempUsageDetail_20' ) end [2025-02-20 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518409', 'tblTempVendorCDR_20' ) start [2025-02-20 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518409', 'tblTempVendorCDR_20' ) end [2025-02-20 14:40:21] Production.INFO: ProcessCDR(1,14518409,1,1,2) [2025-02-20 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518409', 'tblTempUsageDetail_20' ) start [2025-02-20 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518409', 'tblTempUsageDetail_20' ) end [2025-02-20 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:40:27] Production.INFO: ==20920== Releasing lock... [2025-02-20 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:40:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:41:06 [end_date_ymd] => 2025-02-20 14:41:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:41:06' and `end` < '2025-02-20 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-02-20 14:41:18] Production.INFO: count ==5318 [2025-02-20 14:41:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:41:06 - End Time 2025-02-20 14:41:06 [2025-02-20 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518415', 'tblTempUsageDetail_20' ) start [2025-02-20 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518415', 'tblTempUsageDetail_20' ) end [2025-02-20 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518415', 'tblTempVendorCDR_20' ) start [2025-02-20 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518415', 'tblTempVendorCDR_20' ) end [2025-02-20 14:41:21] Production.INFO: ProcessCDR(1,14518415,1,1,2) [2025-02-20 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518415', 'tblTempUsageDetail_20' ) start [2025-02-20 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518415', 'tblTempUsageDetail_20' ) end [2025-02-20 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:41:27] Production.INFO: ==20995== Releasing lock... [2025-02-20 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:41:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:42:05 [end_date_ymd] => 2025-02-20 14:42:05 [RateCDR] => 1 ) [2025-02-20 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:42:05' and `end` < '2025-02-20 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:42:18] Production.INFO: count ==5332 [2025-02-20 14:42:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:42:05 - End Time 2025-02-20 14:42:05 [2025-02-20 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518420', 'tblTempUsageDetail_20' ) start [2025-02-20 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518420', 'tblTempUsageDetail_20' ) end [2025-02-20 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518420', 'tblTempVendorCDR_20' ) start [2025-02-20 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518420', 'tblTempVendorCDR_20' ) end [2025-02-20 14:42:21] Production.INFO: ProcessCDR(1,14518420,1,1,2) [2025-02-20 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518420', 'tblTempUsageDetail_20' ) start [2025-02-20 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518420', 'tblTempUsageDetail_20' ) end [2025-02-20 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:42:26] Production.INFO: ==21064== Releasing lock... [2025-02-20 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:42:26] Production.INFO: 68 MB #Memory Used# [2025-02-20 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:43:06 [end_date_ymd] => 2025-02-20 14:43:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:43:06' and `end` < '2025-02-20 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-02-20 14:43:18] Production.INFO: count ==5323 [2025-02-20 14:43:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:43:06 - End Time 2025-02-20 14:43:06 [2025-02-20 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518425', 'tblTempUsageDetail_20' ) start [2025-02-20 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518425', 'tblTempUsageDetail_20' ) end [2025-02-20 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518425', 'tblTempVendorCDR_20' ) start [2025-02-20 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518425', 'tblTempVendorCDR_20' ) end [2025-02-20 14:43:21] Production.INFO: ProcessCDR(1,14518425,1,1,2) [2025-02-20 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518425', 'tblTempUsageDetail_20' ) start [2025-02-20 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518425', 'tblTempUsageDetail_20' ) end [2025-02-20 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:43:26] Production.INFO: ==21134== Releasing lock... [2025-02-20 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:43:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:44:05 [end_date_ymd] => 2025-02-20 14:44:05 [RateCDR] => 1 ) [2025-02-20 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:44:05' and `end` < '2025-02-20 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:44:18] Production.INFO: count ==5304 [2025-02-20 14:44:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:44:05 - End Time 2025-02-20 14:44:05 [2025-02-20 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518430', 'tblTempUsageDetail_20' ) start [2025-02-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518430', 'tblTempUsageDetail_20' ) end [2025-02-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518430', 'tblTempVendorCDR_20' ) start [2025-02-20 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518430', 'tblTempVendorCDR_20' ) end [2025-02-20 14:44:21] Production.INFO: ProcessCDR(1,14518430,1,1,2) [2025-02-20 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518430', 'tblTempUsageDetail_20' ) start [2025-02-20 14:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518430', 'tblTempUsageDetail_20' ) end [2025-02-20 14:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:44:24] Production.INFO: ==21208== Releasing lock... [2025-02-20 14:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:44:24] Production.INFO: 67.75 MB #Memory Used# [2025-02-20 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:45:05 [end_date_ymd] => 2025-02-20 14:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:45:05' and `end` < '2025-02-20 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-02-20 14:45:18] Production.INFO: count ==5272 [2025-02-20 14:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:45:05 - End Time 2025-02-20 14:45:05 [2025-02-20 14:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518435', 'tblTempUsageDetail_20' ) start [2025-02-20 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518435', 'tblTempUsageDetail_20' ) end [2025-02-20 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518435', 'tblTempVendorCDR_20' ) start [2025-02-20 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518435', 'tblTempVendorCDR_20' ) end [2025-02-20 14:45:21] Production.INFO: ProcessCDR(1,14518435,1,1,2) [2025-02-20 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518435', 'tblTempUsageDetail_20' ) start [2025-02-20 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518435', 'tblTempUsageDetail_20' ) end [2025-02-20 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:45:26] Production.INFO: ==21280== Releasing lock... [2025-02-20 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:45:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-20 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:46:06 [end_date_ymd] => 2025-02-20 14:46:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:46:06' and `end` < '2025-02-20 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-02-20 14:46:19] Production.INFO: count ==5254 [2025-02-20 14:46:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:46:06 - End Time 2025-02-20 14:46:06 [2025-02-20 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518440', 'tblTempUsageDetail_20' ) start [2025-02-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518440', 'tblTempUsageDetail_20' ) end [2025-02-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518440', 'tblTempVendorCDR_20' ) start [2025-02-20 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518440', 'tblTempVendorCDR_20' ) end [2025-02-20 14:46:21] Production.INFO: ProcessCDR(1,14518440,1,1,2) [2025-02-20 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518440', 'tblTempUsageDetail_20' ) start [2025-02-20 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518440', 'tblTempUsageDetail_20' ) end [2025-02-20 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:46:27] Production.INFO: ==21351== Releasing lock... [2025-02-20 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:46:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-20 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:47:05 [end_date_ymd] => 2025-02-20 14:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:47:05' and `end` < '2025-02-20 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-02-20 14:47:18] Production.INFO: count ==5241 [2025-02-20 14:47:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:47:05 - End Time 2025-02-20 14:47:05 [2025-02-20 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518445', 'tblTempUsageDetail_20' ) start [2025-02-20 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518445', 'tblTempUsageDetail_20' ) end [2025-02-20 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518445', 'tblTempVendorCDR_20' ) start [2025-02-20 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518445', 'tblTempVendorCDR_20' ) end [2025-02-20 14:47:20] Production.INFO: ProcessCDR(1,14518445,1,1,2) [2025-02-20 14:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518445', 'tblTempUsageDetail_20' ) start [2025-02-20 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518445', 'tblTempUsageDetail_20' ) end [2025-02-20 14:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:47:25] Production.INFO: ==21422== Releasing lock... [2025-02-20 14:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:47:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-20 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:48:06 [end_date_ymd] => 2025-02-20 14:48:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:48:06' and `end` < '2025-02-20 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-02-20 14:48:19] Production.INFO: count ==5250 [2025-02-20 14:48:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:48:06 - End Time 2025-02-20 14:48:06 [2025-02-20 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518450', 'tblTempUsageDetail_20' ) start [2025-02-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518450', 'tblTempUsageDetail_20' ) end [2025-02-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518450', 'tblTempVendorCDR_20' ) start [2025-02-20 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518450', 'tblTempVendorCDR_20' ) end [2025-02-20 14:48:21] Production.INFO: ProcessCDR(1,14518450,1,1,2) [2025-02-20 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518450', 'tblTempUsageDetail_20' ) start [2025-02-20 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518450', 'tblTempUsageDetail_20' ) end [2025-02-20 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:48:27] Production.INFO: ==21493== Releasing lock... [2025-02-20 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:48:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-20 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:49:06 [end_date_ymd] => 2025-02-20 14:49:06 [RateCDR] => 1 ) [2025-02-20 14: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-02-20 11:49:06' and `end` < '2025-02-20 14: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-02-20 14:49:18] Production.INFO: count ==5246 [2025-02-20 14:49:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:49:06 - End Time 2025-02-20 14:49:06 [2025-02-20 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518455', 'tblTempUsageDetail_20' ) start [2025-02-20 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518455', 'tblTempUsageDetail_20' ) end [2025-02-20 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518455', 'tblTempVendorCDR_20' ) start [2025-02-20 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518455', 'tblTempVendorCDR_20' ) end [2025-02-20 14:49:21] Production.INFO: ProcessCDR(1,14518455,1,1,2) [2025-02-20 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518455', 'tblTempUsageDetail_20' ) start [2025-02-20 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518455', 'tblTempUsageDetail_20' ) end [2025-02-20 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:49:26] Production.INFO: ==21565== Releasing lock... [2025-02-20 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:49:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-20 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:50:06 [end_date_ymd] => 2025-02-20 14:50:06 [RateCDR] => 1 ) [2025-02-20 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:50:06' and `end` < '2025-02-20 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:50:19] Production.INFO: count ==5237 [2025-02-20 14:50:22] Production.ERROR: pbx CDR StartTime 2025-02-20 11:50:06 - End Time 2025-02-20 14:50:06 [2025-02-20 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518461', 'tblTempUsageDetail_20' ) start [2025-02-20 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518461', 'tblTempUsageDetail_20' ) end [2025-02-20 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518461', 'tblTempVendorCDR_20' ) start [2025-02-20 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518461', 'tblTempVendorCDR_20' ) end [2025-02-20 14:50:22] Production.INFO: ProcessCDR(1,14518461,1,1,2) [2025-02-20 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518461', 'tblTempUsageDetail_20' ) start [2025-02-20 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518461', 'tblTempUsageDetail_20' ) end [2025-02-20 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:50:27] Production.INFO: ==21676== Releasing lock... [2025-02-20 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:50:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-20 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:51:06 [end_date_ymd] => 2025-02-20 14:51:06 [RateCDR] => 1 ) [2025-02-20 14: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-02-20 11:51:06' and `end` < '2025-02-20 14: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-02-20 14:51:18] Production.INFO: count ==5157 [2025-02-20 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:51:06 - End Time 2025-02-20 14:51:06 [2025-02-20 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518466', 'tblTempUsageDetail_20' ) start [2025-02-20 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518466', 'tblTempUsageDetail_20' ) end [2025-02-20 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518466', 'tblTempVendorCDR_20' ) start [2025-02-20 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518466', 'tblTempVendorCDR_20' ) end [2025-02-20 14:51:21] Production.INFO: ProcessCDR(1,14518466,1,1,2) [2025-02-20 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518466', 'tblTempUsageDetail_20' ) start [2025-02-20 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518466', 'tblTempUsageDetail_20' ) end [2025-02-20 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:51:26] Production.INFO: ==21750== Releasing lock... [2025-02-20 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:51:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:52:05 [end_date_ymd] => 2025-02-20 14:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:52:05' and `end` < '2025-02-20 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-02-20 14:52:18] Production.INFO: count ==5165 [2025-02-20 14:52:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:52:05 - End Time 2025-02-20 14:52:05 [2025-02-20 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518471', 'tblTempUsageDetail_20' ) start [2025-02-20 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518471', 'tblTempUsageDetail_20' ) end [2025-02-20 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518471', 'tblTempVendorCDR_20' ) start [2025-02-20 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518471', 'tblTempVendorCDR_20' ) end [2025-02-20 14:52:20] Production.INFO: ProcessCDR(1,14518471,1,1,2) [2025-02-20 14:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518471', 'tblTempUsageDetail_20' ) start [2025-02-20 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518471', 'tblTempUsageDetail_20' ) end [2025-02-20 14:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:52:25] Production.INFO: ==21827== Releasing lock... [2025-02-20 14:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:52:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:53:05 [end_date_ymd] => 2025-02-20 14:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:53:05' and `end` < '2025-02-20 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-02-20 14:53:18] Production.INFO: count ==5152 [2025-02-20 14:53:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:53:05 - End Time 2025-02-20 14:53:05 [2025-02-20 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518476', 'tblTempUsageDetail_20' ) start [2025-02-20 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518476', 'tblTempUsageDetail_20' ) end [2025-02-20 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518476', 'tblTempVendorCDR_20' ) start [2025-02-20 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518476', 'tblTempVendorCDR_20' ) end [2025-02-20 14:53:20] Production.INFO: ProcessCDR(1,14518476,1,1,2) [2025-02-20 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518476', 'tblTempUsageDetail_20' ) start [2025-02-20 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518476', 'tblTempUsageDetail_20' ) end [2025-02-20 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:53:26] Production.INFO: ==21898== Releasing lock... [2025-02-20 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:53:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:54:04 [end_date_ymd] => 2025-02-20 14:54:04 [RateCDR] => 1 ) [2025-02-20 14:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:54:04' and `end` < '2025-02-20 14:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:54:17] Production.INFO: count ==5143 [2025-02-20 14:54:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:54:04 - End Time 2025-02-20 14:54:04 [2025-02-20 14:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518481', 'tblTempUsageDetail_20' ) start [2025-02-20 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518481', 'tblTempUsageDetail_20' ) end [2025-02-20 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518481', 'tblTempVendorCDR_20' ) start [2025-02-20 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518481', 'tblTempVendorCDR_20' ) end [2025-02-20 14:54:20] Production.INFO: ProcessCDR(1,14518481,1,1,2) [2025-02-20 14:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518481', 'tblTempUsageDetail_20' ) start [2025-02-20 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518481', 'tblTempUsageDetail_20' ) end [2025-02-20 14:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:54:25] Production.INFO: ==21975== Releasing lock... [2025-02-20 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:54:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:55:06 [end_date_ymd] => 2025-02-20 14:55:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:55:06' and `end` < '2025-02-20 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-02-20 14:55:18] Production.INFO: count ==5130 [2025-02-20 14:55:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:55:06 - End Time 2025-02-20 14:55:06 [2025-02-20 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518486', 'tblTempUsageDetail_20' ) start [2025-02-20 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518486', 'tblTempUsageDetail_20' ) end [2025-02-20 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518486', 'tblTempVendorCDR_20' ) start [2025-02-20 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518486', 'tblTempVendorCDR_20' ) end [2025-02-20 14:55:21] Production.INFO: ProcessCDR(1,14518486,1,1,2) [2025-02-20 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518486', 'tblTempUsageDetail_20' ) start [2025-02-20 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518486', 'tblTempUsageDetail_20' ) end [2025-02-20 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:55:26] Production.INFO: ==22050== Releasing lock... [2025-02-20 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:55:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:56:05 [end_date_ymd] => 2025-02-20 14:56:05 [RateCDR] => 1 ) [2025-02-20 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 11:56:05' and `end` < '2025-02-20 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 14:56:18] Production.INFO: count ==5104 [2025-02-20 14:56:20] Production.ERROR: pbx CDR StartTime 2025-02-20 11:56:05 - End Time 2025-02-20 14:56:05 [2025-02-20 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518491', 'tblTempUsageDetail_20' ) start [2025-02-20 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518491', 'tblTempUsageDetail_20' ) end [2025-02-20 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518491', 'tblTempVendorCDR_20' ) start [2025-02-20 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518491', 'tblTempVendorCDR_20' ) end [2025-02-20 14:56:20] Production.INFO: ProcessCDR(1,14518491,1,1,2) [2025-02-20 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518491', 'tblTempUsageDetail_20' ) start [2025-02-20 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518491', 'tblTempUsageDetail_20' ) end [2025-02-20 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:56:26] Production.INFO: ==22146== Releasing lock... [2025-02-20 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:56:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:57:06 [end_date_ymd] => 2025-02-20 14:57:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:57:06' and `end` < '2025-02-20 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-02-20 14:57:19] Production.INFO: count ==5121 [2025-02-20 14:57:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:57:06 - End Time 2025-02-20 14:57:06 [2025-02-20 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518496', 'tblTempUsageDetail_20' ) start [2025-02-20 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518496', 'tblTempUsageDetail_20' ) end [2025-02-20 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518496', 'tblTempVendorCDR_20' ) start [2025-02-20 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518496', 'tblTempVendorCDR_20' ) end [2025-02-20 14:57:21] Production.INFO: ProcessCDR(1,14518496,1,1,2) [2025-02-20 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518496', 'tblTempUsageDetail_20' ) start [2025-02-20 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518496', 'tblTempUsageDetail_20' ) end [2025-02-20 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:57:27] Production.INFO: ==22245== Releasing lock... [2025-02-20 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:57:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:58:06 [end_date_ymd] => 2025-02-20 14:58:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 11:58:06' and `end` < '2025-02-20 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-02-20 14:58:19] Production.INFO: count ==5062 [2025-02-20 14:58:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:58:06 - End Time 2025-02-20 14:58:06 [2025-02-20 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518501', 'tblTempUsageDetail_20' ) start [2025-02-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518501', 'tblTempUsageDetail_20' ) end [2025-02-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518501', 'tblTempVendorCDR_20' ) start [2025-02-20 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518501', 'tblTempVendorCDR_20' ) end [2025-02-20 14:58:21] Production.INFO: ProcessCDR(1,14518501,1,1,2) [2025-02-20 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518501', 'tblTempUsageDetail_20' ) start [2025-02-20 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518501', 'tblTempUsageDetail_20' ) end [2025-02-20 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:58:26] Production.INFO: ==22342== Releasing lock... [2025-02-20 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:58:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 11:59:06 [end_date_ymd] => 2025-02-20 14:59:06 [RateCDR] => 1 ) [2025-02-20 14: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-02-20 11:59:06' and `end` < '2025-02-20 14: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-02-20 14:59:19] Production.INFO: count ==5050 [2025-02-20 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-20 11:59:06 - End Time 2025-02-20 14:59:06 [2025-02-20 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518506', 'tblTempUsageDetail_20' ) start [2025-02-20 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518506', 'tblTempUsageDetail_20' ) end [2025-02-20 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518506', 'tblTempVendorCDR_20' ) start [2025-02-20 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518506', 'tblTempVendorCDR_20' ) end [2025-02-20 14:59:21] Production.INFO: ProcessCDR(1,14518506,1,1,2) [2025-02-20 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518506', 'tblTempUsageDetail_20' ) start [2025-02-20 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518506', 'tblTempUsageDetail_20' ) end [2025-02-20 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 14:59:27] Production.INFO: ==22441== Releasing lock... [2025-02-20 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 14:59:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:00:06 [end_date_ymd] => 2025-02-20 15:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:00:06' and `end` < '2025-02-20 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:00:19] Production.INFO: count ==5037 [2025-02-20 15:00:22] Production.ERROR: pbx CDR StartTime 2025-02-20 12:00:06 - End Time 2025-02-20 15:00:06 [2025-02-20 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518512', 'tblTempUsageDetail_20' ) start [2025-02-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518512', 'tblTempUsageDetail_20' ) end [2025-02-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518512', 'tblTempVendorCDR_20' ) start [2025-02-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518512', 'tblTempVendorCDR_20' ) end [2025-02-20 15:00:22] Production.INFO: ProcessCDR(1,14518512,1,1,2) [2025-02-20 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518512', 'tblTempUsageDetail_20' ) start [2025-02-20 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518512', 'tblTempUsageDetail_20' ) end [2025-02-20 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:00:27] Production.INFO: ==22543== Releasing lock... [2025-02-20 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:01:06 [end_date_ymd] => 2025-02-20 15:01:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:01:06' and `end` < '2025-02-20 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-02-20 15:01:19] Production.INFO: count ==5056 [2025-02-20 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:01:06 - End Time 2025-02-20 15:01:06 [2025-02-20 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518517', 'tblTempUsageDetail_20' ) start [2025-02-20 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518517', 'tblTempUsageDetail_20' ) end [2025-02-20 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518517', 'tblTempVendorCDR_20' ) start [2025-02-20 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518517', 'tblTempVendorCDR_20' ) end [2025-02-20 15:01:21] Production.INFO: ProcessCDR(1,14518517,1,1,2) [2025-02-20 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518517', 'tblTempUsageDetail_20' ) start [2025-02-20 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518517', 'tblTempUsageDetail_20' ) end [2025-02-20 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:01:27] Production.INFO: ==22695== Releasing lock... [2025-02-20 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:01:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:02:06 [end_date_ymd] => 2025-02-20 15:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:02:06' and `end` < '2025-02-20 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-02-20 15:02:19] Production.INFO: count ==5072 [2025-02-20 15:02:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:02:06 - End Time 2025-02-20 15:02:06 [2025-02-20 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518522', 'tblTempUsageDetail_20' ) start [2025-02-20 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518522', 'tblTempUsageDetail_20' ) end [2025-02-20 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518522', 'tblTempVendorCDR_20' ) start [2025-02-20 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518522', 'tblTempVendorCDR_20' ) end [2025-02-20 15:02:21] Production.INFO: ProcessCDR(1,14518522,1,1,2) [2025-02-20 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518522', 'tblTempUsageDetail_20' ) start [2025-02-20 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518522', 'tblTempUsageDetail_20' ) end [2025-02-20 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:02:27] Production.INFO: ==22809== Releasing lock... [2025-02-20 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:02:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:03:05 [end_date_ymd] => 2025-02-20 15:03:05 [RateCDR] => 1 ) [2025-02-20 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:03:05' and `end` < '2025-02-20 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:03:19] Production.INFO: count ==5066 [2025-02-20 15:03:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:03:05 - End Time 2025-02-20 15:03:05 [2025-02-20 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518527', 'tblTempUsageDetail_20' ) start [2025-02-20 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518527', 'tblTempUsageDetail_20' ) end [2025-02-20 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518527', 'tblTempVendorCDR_20' ) start [2025-02-20 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518527', 'tblTempVendorCDR_20' ) end [2025-02-20 15:03:22] Production.INFO: ProcessCDR(1,14518527,1,1,2) [2025-02-20 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518527', 'tblTempUsageDetail_20' ) start [2025-02-20 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518527', 'tblTempUsageDetail_20' ) end [2025-02-20 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:03:27] Production.INFO: ==22880== Releasing lock... [2025-02-20 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:03:27] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:04:05 [end_date_ymd] => 2025-02-20 15:04:05 [RateCDR] => 1 ) [2025-02-20 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:04:05' and `end` < '2025-02-20 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:04:19] Production.INFO: count ==5078 [2025-02-20 15:04:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:04:05 - End Time 2025-02-20 15:04:05 [2025-02-20 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518532', 'tblTempUsageDetail_20' ) start [2025-02-20 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518532', 'tblTempUsageDetail_20' ) end [2025-02-20 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518532', 'tblTempVendorCDR_20' ) start [2025-02-20 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518532', 'tblTempVendorCDR_20' ) end [2025-02-20 15:04:21] Production.INFO: ProcessCDR(1,14518532,1,1,2) [2025-02-20 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518532', 'tblTempUsageDetail_20' ) start [2025-02-20 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518532', 'tblTempUsageDetail_20' ) end [2025-02-20 15:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:04:26] Production.INFO: ==22951== Releasing lock... [2025-02-20 15:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:04:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:05:05 [end_date_ymd] => 2025-02-20 15:05:05 [RateCDR] => 1 ) [2025-02-20 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:05:05' and `end` < '2025-02-20 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-02-20 15:05:18] Production.INFO: count ==5086 [2025-02-20 15:05:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:05:05 - End Time 2025-02-20 15:05:05 [2025-02-20 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518537', 'tblTempUsageDetail_20' ) start [2025-02-20 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518537', 'tblTempUsageDetail_20' ) end [2025-02-20 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518537', 'tblTempVendorCDR_20' ) start [2025-02-20 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518537', 'tblTempVendorCDR_20' ) end [2025-02-20 15:05:20] Production.INFO: ProcessCDR(1,14518537,1,1,2) [2025-02-20 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518537', 'tblTempUsageDetail_20' ) start [2025-02-20 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518537', 'tblTempUsageDetail_20' ) end [2025-02-20 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:05:26] Production.INFO: ==23144== Releasing lock... [2025-02-20 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:05:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:06:05 [end_date_ymd] => 2025-02-20 15:06:05 [RateCDR] => 1 ) [2025-02-20 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:06:05' and `end` < '2025-02-20 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:06:19] Production.INFO: count ==5070 [2025-02-20 15:06:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:06:05 - End Time 2025-02-20 15:06:05 [2025-02-20 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518542', 'tblTempUsageDetail_20' ) start [2025-02-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518542', 'tblTempUsageDetail_20' ) end [2025-02-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518542', 'tblTempVendorCDR_20' ) start [2025-02-20 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518542', 'tblTempVendorCDR_20' ) end [2025-02-20 15:06:21] Production.INFO: ProcessCDR(1,14518542,1,1,2) [2025-02-20 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518542', 'tblTempUsageDetail_20' ) start [2025-02-20 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518542', 'tblTempUsageDetail_20' ) end [2025-02-20 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:06:26] Production.INFO: ==23217== Releasing lock... [2025-02-20 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:06:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:07:05 [end_date_ymd] => 2025-02-20 15:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:07:05' and `end` < '2025-02-20 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-02-20 15:07:18] Production.INFO: count ==5077 [2025-02-20 15:07:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:07:05 - End Time 2025-02-20 15:07:05 [2025-02-20 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518547', 'tblTempUsageDetail_20' ) start [2025-02-20 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518547', 'tblTempUsageDetail_20' ) end [2025-02-20 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518547', 'tblTempVendorCDR_20' ) start [2025-02-20 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518547', 'tblTempVendorCDR_20' ) end [2025-02-20 15:07:21] Production.INFO: ProcessCDR(1,14518547,1,1,2) [2025-02-20 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518547', 'tblTempUsageDetail_20' ) start [2025-02-20 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518547', 'tblTempUsageDetail_20' ) end [2025-02-20 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:07:25] Production.INFO: ==23289== Releasing lock... [2025-02-20 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:07:25] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:08:05 [end_date_ymd] => 2025-02-20 15:08:05 [RateCDR] => 1 ) [2025-02-20 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:08:05' and `end` < '2025-02-20 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:08:19] Production.INFO: count ==5067 [2025-02-20 15:08:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:08:05 - End Time 2025-02-20 15:08:05 [2025-02-20 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518552', 'tblTempUsageDetail_20' ) start [2025-02-20 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518552', 'tblTempUsageDetail_20' ) end [2025-02-20 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518552', 'tblTempVendorCDR_20' ) start [2025-02-20 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518552', 'tblTempVendorCDR_20' ) end [2025-02-20 15:08:21] Production.INFO: ProcessCDR(1,14518552,1,1,2) [2025-02-20 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518552', 'tblTempUsageDetail_20' ) start [2025-02-20 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518552', 'tblTempUsageDetail_20' ) end [2025-02-20 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:08:26] Production.INFO: ==23439== Releasing lock... [2025-02-20 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:08:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:09:05 [end_date_ymd] => 2025-02-20 15:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:09:05' and `end` < '2025-02-20 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-02-20 15:09:18] Production.INFO: count ==5050 [2025-02-20 15:09:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:09:05 - End Time 2025-02-20 15:09:05 [2025-02-20 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518557', 'tblTempUsageDetail_20' ) start [2025-02-20 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518557', 'tblTempUsageDetail_20' ) end [2025-02-20 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518557', 'tblTempVendorCDR_20' ) start [2025-02-20 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518557', 'tblTempVendorCDR_20' ) end [2025-02-20 15:09:21] Production.INFO: ProcessCDR(1,14518557,1,1,2) [2025-02-20 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518557', 'tblTempUsageDetail_20' ) start [2025-02-20 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518557', 'tblTempUsageDetail_20' ) end [2025-02-20 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:09:25] Production.INFO: ==23510== Releasing lock... [2025-02-20 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:09:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:10:06 [end_date_ymd] => 2025-02-20 15:10:06 [RateCDR] => 1 ) [2025-02-20 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:10:06' and `end` < '2025-02-20 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:10:19] Production.INFO: count ==5056 [2025-02-20 15:10:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:10:06 - End Time 2025-02-20 15:10:06 [2025-02-20 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518563', 'tblTempUsageDetail_20' ) start [2025-02-20 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518563', 'tblTempUsageDetail_20' ) end [2025-02-20 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518563', 'tblTempVendorCDR_20' ) start [2025-02-20 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518563', 'tblTempVendorCDR_20' ) end [2025-02-20 15:10:22] Production.INFO: ProcessCDR(1,14518563,1,1,2) [2025-02-20 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518563', 'tblTempUsageDetail_20' ) start [2025-02-20 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518563', 'tblTempUsageDetail_20' ) end [2025-02-20 15:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:10:27] Production.INFO: ==23583== Releasing lock... [2025-02-20 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:10:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:11:05 [end_date_ymd] => 2025-02-20 15:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:11:05' and `end` < '2025-02-20 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-02-20 15:11:18] Production.INFO: count ==5108 [2025-02-20 15:11:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:11:05 - End Time 2025-02-20 15:11:05 [2025-02-20 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518568', 'tblTempUsageDetail_20' ) start [2025-02-20 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518568', 'tblTempUsageDetail_20' ) end [2025-02-20 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518568', 'tblTempVendorCDR_20' ) start [2025-02-20 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518568', 'tblTempVendorCDR_20' ) end [2025-02-20 15:11:20] Production.INFO: ProcessCDR(1,14518568,1,1,2) [2025-02-20 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518568', 'tblTempUsageDetail_20' ) start [2025-02-20 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518568', 'tblTempUsageDetail_20' ) end [2025-02-20 15:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:11:25] Production.INFO: ==23657== Releasing lock... [2025-02-20 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:11:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:12:05 [end_date_ymd] => 2025-02-20 15:12:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:12:05' and `end` < '2025-02-20 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-02-20 15:12:18] Production.INFO: count ==5104 [2025-02-20 15:12:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:12:05 - End Time 2025-02-20 15:12:05 [2025-02-20 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518573', 'tblTempUsageDetail_20' ) start [2025-02-20 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518573', 'tblTempUsageDetail_20' ) end [2025-02-20 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518573', 'tblTempVendorCDR_20' ) start [2025-02-20 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518573', 'tblTempVendorCDR_20' ) end [2025-02-20 15:12:21] Production.INFO: ProcessCDR(1,14518573,1,1,2) [2025-02-20 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518573', 'tblTempUsageDetail_20' ) start [2025-02-20 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518573', 'tblTempUsageDetail_20' ) end [2025-02-20 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:12:26] Production.INFO: ==23806== Releasing lock... [2025-02-20 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:12:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:13:05 [end_date_ymd] => 2025-02-20 15:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:13:05' and `end` < '2025-02-20 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-02-20 15:13:19] Production.INFO: count ==5104 [2025-02-20 15:13:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:13:05 - End Time 2025-02-20 15:13:05 [2025-02-20 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518578', 'tblTempUsageDetail_20' ) start [2025-02-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518578', 'tblTempUsageDetail_20' ) end [2025-02-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518578', 'tblTempVendorCDR_20' ) start [2025-02-20 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518578', 'tblTempVendorCDR_20' ) end [2025-02-20 15:13:21] Production.INFO: ProcessCDR(1,14518578,1,1,2) [2025-02-20 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518578', 'tblTempUsageDetail_20' ) start [2025-02-20 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518578', 'tblTempUsageDetail_20' ) end [2025-02-20 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:13:27] Production.INFO: ==23883== Releasing lock... [2025-02-20 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:14:06 [end_date_ymd] => 2025-02-20 15:14:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:14:06' and `end` < '2025-02-20 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-02-20 15:14:19] Production.INFO: count ==5115 [2025-02-20 15:14:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:14:06 - End Time 2025-02-20 15:14:06 [2025-02-20 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518583', 'tblTempUsageDetail_20' ) start [2025-02-20 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518583', 'tblTempUsageDetail_20' ) end [2025-02-20 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518583', 'tblTempVendorCDR_20' ) start [2025-02-20 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518583', 'tblTempVendorCDR_20' ) end [2025-02-20 15:14:21] Production.INFO: ProcessCDR(1,14518583,1,1,2) [2025-02-20 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518583', 'tblTempUsageDetail_20' ) start [2025-02-20 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518583', 'tblTempUsageDetail_20' ) end [2025-02-20 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:14:26] Production.INFO: ==23954== Releasing lock... [2025-02-20 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:14:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:15:04 [end_date_ymd] => 2025-02-20 15:15:04 [RateCDR] => 1 ) [2025-02-20 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:15:04' and `end` < '2025-02-20 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:15:17] Production.INFO: count ==5103 [2025-02-20 15:15:19] Production.ERROR: pbx CDR StartTime 2025-02-20 12:15:04 - End Time 2025-02-20 15:15:04 [2025-02-20 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518588', 'tblTempUsageDetail_20' ) start [2025-02-20 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518588', 'tblTempUsageDetail_20' ) end [2025-02-20 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518588', 'tblTempVendorCDR_20' ) start [2025-02-20 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518588', 'tblTempVendorCDR_20' ) end [2025-02-20 15:15:19] Production.INFO: ProcessCDR(1,14518588,1,1,2) [2025-02-20 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518588', 'tblTempUsageDetail_20' ) start [2025-02-20 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518588', 'tblTempUsageDetail_20' ) end [2025-02-20 15:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:15:24] Production.INFO: ==24104== Releasing lock... [2025-02-20 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:15:24] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:16:05 [end_date_ymd] => 2025-02-20 15:16:05 [RateCDR] => 1 ) [2025-02-20 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:16:05' and `end` < '2025-02-20 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:16:18] Production.INFO: count ==5121 [2025-02-20 15:16:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:16:05 - End Time 2025-02-20 15:16:05 [2025-02-20 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518593', 'tblTempUsageDetail_20' ) start [2025-02-20 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518593', 'tblTempUsageDetail_20' ) end [2025-02-20 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518593', 'tblTempVendorCDR_20' ) start [2025-02-20 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518593', 'tblTempVendorCDR_20' ) end [2025-02-20 15:16:21] Production.INFO: ProcessCDR(1,14518593,1,1,2) [2025-02-20 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518593', 'tblTempUsageDetail_20' ) start [2025-02-20 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518593', 'tblTempUsageDetail_20' ) end [2025-02-20 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:16:26] Production.INFO: ==24174== Releasing lock... [2025-02-20 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:16:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:17:05 [end_date_ymd] => 2025-02-20 15:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:17:05' and `end` < '2025-02-20 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-02-20 15:17:18] Production.INFO: count ==5120 [2025-02-20 15:17:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:17:05 - End Time 2025-02-20 15:17:05 [2025-02-20 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518598', 'tblTempUsageDetail_20' ) start [2025-02-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518598', 'tblTempUsageDetail_20' ) end [2025-02-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518598', 'tblTempVendorCDR_20' ) start [2025-02-20 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518598', 'tblTempVendorCDR_20' ) end [2025-02-20 15:17:21] Production.INFO: ProcessCDR(1,14518598,1,1,2) [2025-02-20 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518598', 'tblTempUsageDetail_20' ) start [2025-02-20 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518598', 'tblTempUsageDetail_20' ) end [2025-02-20 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:17:26] Production.INFO: ==24243== Releasing lock... [2025-02-20 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:17:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:18:06 [end_date_ymd] => 2025-02-20 15:18:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:18:06' and `end` < '2025-02-20 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-02-20 15:18:18] Production.INFO: count ==5131 [2025-02-20 15:18:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:18:06 - End Time 2025-02-20 15:18:06 [2025-02-20 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518603', 'tblTempUsageDetail_20' ) start [2025-02-20 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518603', 'tblTempUsageDetail_20' ) end [2025-02-20 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518603', 'tblTempVendorCDR_20' ) start [2025-02-20 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518603', 'tblTempVendorCDR_20' ) end [2025-02-20 15:18:21] Production.INFO: ProcessCDR(1,14518603,1,1,2) [2025-02-20 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518603', 'tblTempUsageDetail_20' ) start [2025-02-20 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518603', 'tblTempUsageDetail_20' ) end [2025-02-20 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:18:25] Production.INFO: ==24317== Releasing lock... [2025-02-20 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:18:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:19:05 [end_date_ymd] => 2025-02-20 15:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:19:05' and `end` < '2025-02-20 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-02-20 15:19:18] Production.INFO: count ==5110 [2025-02-20 15:19:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:19:05 - End Time 2025-02-20 15:19:05 [2025-02-20 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518608', 'tblTempUsageDetail_20' ) start [2025-02-20 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518608', 'tblTempUsageDetail_20' ) end [2025-02-20 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518608', 'tblTempVendorCDR_20' ) start [2025-02-20 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518608', 'tblTempVendorCDR_20' ) end [2025-02-20 15:19:20] Production.INFO: ProcessCDR(1,14518608,1,1,2) [2025-02-20 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518608', 'tblTempUsageDetail_20' ) start [2025-02-20 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518608', 'tblTempUsageDetail_20' ) end [2025-02-20 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:19:25] Production.INFO: ==24388== Releasing lock... [2025-02-20 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:19:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:20:06 [end_date_ymd] => 2025-02-20 15:20:06 [RateCDR] => 1 ) [2025-02-20 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:20:06' and `end` < '2025-02-20 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:20:19] Production.INFO: count ==5101 [2025-02-20 15:20:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:20:06 - End Time 2025-02-20 15:20:06 [2025-02-20 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518614', 'tblTempUsageDetail_20' ) start [2025-02-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518614', 'tblTempUsageDetail_20' ) end [2025-02-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518614', 'tblTempVendorCDR_20' ) start [2025-02-20 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518614', 'tblTempVendorCDR_20' ) end [2025-02-20 15:20:21] Production.INFO: ProcessCDR(1,14518614,1,1,2) [2025-02-20 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518614', 'tblTempUsageDetail_20' ) start [2025-02-20 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518614', 'tblTempUsageDetail_20' ) end [2025-02-20 15:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:20:26] Production.INFO: ==24462== Releasing lock... [2025-02-20 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:20:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:21:05 [end_date_ymd] => 2025-02-20 15:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:21:05' and `end` < '2025-02-20 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-02-20 15:21:18] Production.INFO: count ==5120 [2025-02-20 15:21:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:21:05 - End Time 2025-02-20 15:21:05 [2025-02-20 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518619', 'tblTempUsageDetail_20' ) start [2025-02-20 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518619', 'tblTempUsageDetail_20' ) end [2025-02-20 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518619', 'tblTempVendorCDR_20' ) start [2025-02-20 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518619', 'tblTempVendorCDR_20' ) end [2025-02-20 15:21:21] Production.INFO: ProcessCDR(1,14518619,1,1,2) [2025-02-20 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518619', 'tblTempUsageDetail_20' ) start [2025-02-20 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518619', 'tblTempUsageDetail_20' ) end [2025-02-20 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:21:26] Production.INFO: ==24573== Releasing lock... [2025-02-20 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:21:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:22:05 [end_date_ymd] => 2025-02-20 15:22:05 [RateCDR] => 1 ) [2025-02-20 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:22:05' and `end` < '2025-02-20 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:22:18] Production.INFO: count ==5135 [2025-02-20 15:22:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:22:05 - End Time 2025-02-20 15:22:05 [2025-02-20 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518624', 'tblTempUsageDetail_20' ) start [2025-02-20 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518624', 'tblTempUsageDetail_20' ) end [2025-02-20 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518624', 'tblTempVendorCDR_20' ) start [2025-02-20 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518624', 'tblTempVendorCDR_20' ) end [2025-02-20 15:22:21] Production.INFO: ProcessCDR(1,14518624,1,1,2) [2025-02-20 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518624', 'tblTempUsageDetail_20' ) start [2025-02-20 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518624', 'tblTempUsageDetail_20' ) end [2025-02-20 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:22:27] Production.INFO: ==24644== Releasing lock... [2025-02-20 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:22:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:23:06 [end_date_ymd] => 2025-02-20 15:23:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:23:06' and `end` < '2025-02-20 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-02-20 15:23:19] Production.INFO: count ==5131 [2025-02-20 15:23:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:23:06 - End Time 2025-02-20 15:23:06 [2025-02-20 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518629', 'tblTempUsageDetail_20' ) start [2025-02-20 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518629', 'tblTempUsageDetail_20' ) end [2025-02-20 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518629', 'tblTempVendorCDR_20' ) start [2025-02-20 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518629', 'tblTempVendorCDR_20' ) end [2025-02-20 15:23:21] Production.INFO: ProcessCDR(1,14518629,1,1,2) [2025-02-20 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518629', 'tblTempUsageDetail_20' ) start [2025-02-20 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518629', 'tblTempUsageDetail_20' ) end [2025-02-20 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:23:26] Production.INFO: ==24716== Releasing lock... [2025-02-20 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:23:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:24:06 [end_date_ymd] => 2025-02-20 15:24:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:24:06' and `end` < '2025-02-20 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-02-20 15:24:19] Production.INFO: count ==5124 [2025-02-20 15:24:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:24:06 - End Time 2025-02-20 15:24:06 [2025-02-20 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518634', 'tblTempUsageDetail_20' ) start [2025-02-20 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518634', 'tblTempUsageDetail_20' ) end [2025-02-20 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518634', 'tblTempVendorCDR_20' ) start [2025-02-20 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518634', 'tblTempVendorCDR_20' ) end [2025-02-20 15:24:21] Production.INFO: ProcessCDR(1,14518634,1,1,2) [2025-02-20 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518634', 'tblTempUsageDetail_20' ) start [2025-02-20 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518634', 'tblTempUsageDetail_20' ) end [2025-02-20 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:24:27] Production.INFO: ==24785== Releasing lock... [2025-02-20 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:24:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:25:06 [end_date_ymd] => 2025-02-20 15:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:25:06' and `end` < '2025-02-20 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-02-20 15:25:19] Production.INFO: count ==5122 [2025-02-20 15:25:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:25:06 - End Time 2025-02-20 15:25:06 [2025-02-20 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518639', 'tblTempUsageDetail_20' ) start [2025-02-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518639', 'tblTempUsageDetail_20' ) end [2025-02-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518639', 'tblTempVendorCDR_20' ) start [2025-02-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518639', 'tblTempVendorCDR_20' ) end [2025-02-20 15:25:21] Production.INFO: ProcessCDR(1,14518639,1,1,2) [2025-02-20 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518639', 'tblTempUsageDetail_20' ) start [2025-02-20 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518639', 'tblTempUsageDetail_20' ) end [2025-02-20 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:25:27] Production.INFO: ==24857== Releasing lock... [2025-02-20 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:25:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:26:05 [end_date_ymd] => 2025-02-20 15:26:05 [RateCDR] => 1 ) [2025-02-20 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:26:05' and `end` < '2025-02-20 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:26:18] Production.INFO: count ==5126 [2025-02-20 15:26:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:26:05 - End Time 2025-02-20 15:26:05 [2025-02-20 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518644', 'tblTempUsageDetail_20' ) start [2025-02-20 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518644', 'tblTempUsageDetail_20' ) end [2025-02-20 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518644', 'tblTempVendorCDR_20' ) start [2025-02-20 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518644', 'tblTempVendorCDR_20' ) end [2025-02-20 15:26:20] Production.INFO: ProcessCDR(1,14518644,1,1,2) [2025-02-20 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518644', 'tblTempUsageDetail_20' ) start [2025-02-20 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518644', 'tblTempUsageDetail_20' ) end [2025-02-20 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:26:26] Production.INFO: ==24929== Releasing lock... [2025-02-20 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:26:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:27:06 [end_date_ymd] => 2025-02-20 15:27:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:27:06' and `end` < '2025-02-20 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-02-20 15:27:18] Production.INFO: count ==5128 [2025-02-20 15:27:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:27:06 - End Time 2025-02-20 15:27:06 [2025-02-20 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518649', 'tblTempUsageDetail_20' ) start [2025-02-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518649', 'tblTempUsageDetail_20' ) end [2025-02-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518649', 'tblTempVendorCDR_20' ) start [2025-02-20 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518649', 'tblTempVendorCDR_20' ) end [2025-02-20 15:27:21] Production.INFO: ProcessCDR(1,14518649,1,1,2) [2025-02-20 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518649', 'tblTempUsageDetail_20' ) start [2025-02-20 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518649', 'tblTempUsageDetail_20' ) end [2025-02-20 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:27:25] Production.INFO: ==25001== Releasing lock... [2025-02-20 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:27:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:28:05 [end_date_ymd] => 2025-02-20 15:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:28:05' and `end` < '2025-02-20 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-02-20 15:28:18] Production.INFO: count ==5127 [2025-02-20 15:28:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:28:05 - End Time 2025-02-20 15:28:05 [2025-02-20 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518654', 'tblTempUsageDetail_20' ) start [2025-02-20 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518654', 'tblTempUsageDetail_20' ) end [2025-02-20 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518654', 'tblTempVendorCDR_20' ) start [2025-02-20 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518654', 'tblTempVendorCDR_20' ) end [2025-02-20 15:28:20] Production.INFO: ProcessCDR(1,14518654,1,1,2) [2025-02-20 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518654', 'tblTempUsageDetail_20' ) start [2025-02-20 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518654', 'tblTempUsageDetail_20' ) end [2025-02-20 15:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:28:25] Production.INFO: ==25073== Releasing lock... [2025-02-20 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:28:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:29:05 [end_date_ymd] => 2025-02-20 15:29:05 [RateCDR] => 1 ) [2025-02-20 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:29:05' and `end` < '2025-02-20 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:29:18] Production.INFO: count ==5131 [2025-02-20 15:29:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:29:05 - End Time 2025-02-20 15:29:05 [2025-02-20 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518659', 'tblTempUsageDetail_20' ) start [2025-02-20 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518659', 'tblTempUsageDetail_20' ) end [2025-02-20 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518659', 'tblTempVendorCDR_20' ) start [2025-02-20 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518659', 'tblTempVendorCDR_20' ) end [2025-02-20 15:29:20] Production.INFO: ProcessCDR(1,14518659,1,1,2) [2025-02-20 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518659', 'tblTempUsageDetail_20' ) start [2025-02-20 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518659', 'tblTempUsageDetail_20' ) end [2025-02-20 15:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:29:25] Production.INFO: ==25144== Releasing lock... [2025-02-20 15:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:29:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:30:05 [end_date_ymd] => 2025-02-20 15:30:05 [RateCDR] => 1 ) [2025-02-20 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:30:05' and `end` < '2025-02-20 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:30:18] Production.INFO: count ==5134 [2025-02-20 15:30:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:30:05 - End Time 2025-02-20 15:30:05 [2025-02-20 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518665', 'tblTempUsageDetail_20' ) start [2025-02-20 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518665', 'tblTempUsageDetail_20' ) end [2025-02-20 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518665', 'tblTempVendorCDR_20' ) start [2025-02-20 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518665', 'tblTempVendorCDR_20' ) end [2025-02-20 15:30:21] Production.INFO: ProcessCDR(1,14518665,1,1,2) [2025-02-20 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518665', 'tblTempUsageDetail_20' ) start [2025-02-20 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518665', 'tblTempUsageDetail_20' ) end [2025-02-20 15:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:30:26] Production.INFO: ==25217== Releasing lock... [2025-02-20 15:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:30:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:31:06 [end_date_ymd] => 2025-02-20 15:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:31:06' and `end` < '2025-02-20 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-02-20 15:31:19] Production.INFO: count ==5164 [2025-02-20 15:31:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:31:06 - End Time 2025-02-20 15:31:06 [2025-02-20 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518670', 'tblTempUsageDetail_20' ) start [2025-02-20 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518670', 'tblTempUsageDetail_20' ) end [2025-02-20 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518670', 'tblTempVendorCDR_20' ) start [2025-02-20 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518670', 'tblTempVendorCDR_20' ) end [2025-02-20 15:31:21] Production.INFO: ProcessCDR(1,14518670,1,1,2) [2025-02-20 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518670', 'tblTempUsageDetail_20' ) start [2025-02-20 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518670', 'tblTempUsageDetail_20' ) end [2025-02-20 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:31:27] Production.INFO: ==25293== Releasing lock... [2025-02-20 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:31:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:32:05 [end_date_ymd] => 2025-02-20 15:32:05 [RateCDR] => 1 ) [2025-02-20 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:32:05' and `end` < '2025-02-20 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:32:18] Production.INFO: count ==5172 [2025-02-20 15:32:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:32:05 - End Time 2025-02-20 15:32:05 [2025-02-20 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518675', 'tblTempUsageDetail_20' ) start [2025-02-20 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518675', 'tblTempUsageDetail_20' ) end [2025-02-20 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518675', 'tblTempVendorCDR_20' ) start [2025-02-20 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518675', 'tblTempVendorCDR_20' ) end [2025-02-20 15:32:21] Production.INFO: ProcessCDR(1,14518675,1,1,2) [2025-02-20 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518675', 'tblTempUsageDetail_20' ) start [2025-02-20 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518675', 'tblTempUsageDetail_20' ) end [2025-02-20 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:32:26] Production.INFO: ==25375== Releasing lock... [2025-02-20 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:32:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:33:06 [end_date_ymd] => 2025-02-20 15:33:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:33:06' and `end` < '2025-02-20 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-02-20 15:33:19] Production.INFO: count ==5172 [2025-02-20 15:33:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:33:06 - End Time 2025-02-20 15:33:06 [2025-02-20 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518680', 'tblTempUsageDetail_20' ) start [2025-02-20 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518680', 'tblTempUsageDetail_20' ) end [2025-02-20 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518680', 'tblTempVendorCDR_20' ) start [2025-02-20 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518680', 'tblTempVendorCDR_20' ) end [2025-02-20 15:33:21] Production.INFO: ProcessCDR(1,14518680,1,1,2) [2025-02-20 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518680', 'tblTempUsageDetail_20' ) start [2025-02-20 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518680', 'tblTempUsageDetail_20' ) end [2025-02-20 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:33:26] Production.INFO: ==25445== Releasing lock... [2025-02-20 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:33:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:34:05 [end_date_ymd] => 2025-02-20 15:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:34:05' and `end` < '2025-02-20 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-02-20 15:34:18] Production.INFO: count ==5180 [2025-02-20 15:34:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:34:05 - End Time 2025-02-20 15:34:05 [2025-02-20 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518685', 'tblTempUsageDetail_20' ) start [2025-02-20 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518685', 'tblTempUsageDetail_20' ) end [2025-02-20 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518685', 'tblTempVendorCDR_20' ) start [2025-02-20 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518685', 'tblTempVendorCDR_20' ) end [2025-02-20 15:34:20] Production.INFO: ProcessCDR(1,14518685,1,1,2) [2025-02-20 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518685', 'tblTempUsageDetail_20' ) start [2025-02-20 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518685', 'tblTempUsageDetail_20' ) end [2025-02-20 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:34:25] Production.INFO: ==25516== Releasing lock... [2025-02-20 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:34:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:35:06 [end_date_ymd] => 2025-02-20 15:35:06 [RateCDR] => 1 ) [2025-02-20 15: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-02-20 12:35:06' and `end` < '2025-02-20 15: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-02-20 15:35:18] Production.INFO: count ==5167 [2025-02-20 15:35:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:35:06 - End Time 2025-02-20 15:35:06 [2025-02-20 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518690', 'tblTempUsageDetail_20' ) start [2025-02-20 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518690', 'tblTempUsageDetail_20' ) end [2025-02-20 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518690', 'tblTempVendorCDR_20' ) start [2025-02-20 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518690', 'tblTempVendorCDR_20' ) end [2025-02-20 15:35:21] Production.INFO: ProcessCDR(1,14518690,1,1,2) [2025-02-20 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518690', 'tblTempUsageDetail_20' ) start [2025-02-20 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518690', 'tblTempUsageDetail_20' ) end [2025-02-20 15:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:35:24] Production.INFO: ==25586== Releasing lock... [2025-02-20 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:35:24] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:36:05 [end_date_ymd] => 2025-02-20 15:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:36:05' and `end` < '2025-02-20 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-02-20 15:36:18] Production.INFO: count ==5151 [2025-02-20 15:36:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:36:05 - End Time 2025-02-20 15:36:05 [2025-02-20 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518695', 'tblTempUsageDetail_20' ) start [2025-02-20 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518695', 'tblTempUsageDetail_20' ) end [2025-02-20 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518695', 'tblTempVendorCDR_20' ) start [2025-02-20 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518695', 'tblTempVendorCDR_20' ) end [2025-02-20 15:36:21] Production.INFO: ProcessCDR(1,14518695,1,1,2) [2025-02-20 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518695', 'tblTempUsageDetail_20' ) start [2025-02-20 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518695', 'tblTempUsageDetail_20' ) end [2025-02-20 15:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:36:26] Production.INFO: ==25696== Releasing lock... [2025-02-20 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:36:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:37:06 [end_date_ymd] => 2025-02-20 15:37:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:37:06' and `end` < '2025-02-20 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-02-20 15:37:19] Production.INFO: count ==5138 [2025-02-20 15:37:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:37:06 - End Time 2025-02-20 15:37:06 [2025-02-20 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518700', 'tblTempUsageDetail_20' ) start [2025-02-20 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518700', 'tblTempUsageDetail_20' ) end [2025-02-20 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518700', 'tblTempVendorCDR_20' ) start [2025-02-20 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518700', 'tblTempVendorCDR_20' ) end [2025-02-20 15:37:21] Production.INFO: ProcessCDR(1,14518700,1,1,2) [2025-02-20 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518700', 'tblTempUsageDetail_20' ) start [2025-02-20 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518700', 'tblTempUsageDetail_20' ) end [2025-02-20 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:37:26] Production.INFO: ==25768== Releasing lock... [2025-02-20 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:37:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:38:05 [end_date_ymd] => 2025-02-20 15:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:38:05' and `end` < '2025-02-20 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-02-20 15:38:18] Production.INFO: count ==5150 [2025-02-20 15:38:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:38:05 - End Time 2025-02-20 15:38:05 [2025-02-20 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518705', 'tblTempUsageDetail_20' ) start [2025-02-20 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518705', 'tblTempUsageDetail_20' ) end [2025-02-20 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518705', 'tblTempVendorCDR_20' ) start [2025-02-20 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518705', 'tblTempVendorCDR_20' ) end [2025-02-20 15:38:20] Production.INFO: ProcessCDR(1,14518705,1,1,2) [2025-02-20 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518705', 'tblTempUsageDetail_20' ) start [2025-02-20 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518705', 'tblTempUsageDetail_20' ) end [2025-02-20 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:38:26] Production.INFO: ==25840== Releasing lock... [2025-02-20 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:38:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:39:05 [end_date_ymd] => 2025-02-20 15:39:05 [RateCDR] => 1 ) [2025-02-20 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:39:05' and `end` < '2025-02-20 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:39:18] Production.INFO: count ==5135 [2025-02-20 15:39:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:39:05 - End Time 2025-02-20 15:39:05 [2025-02-20 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518710', 'tblTempUsageDetail_20' ) start [2025-02-20 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518710', 'tblTempUsageDetail_20' ) end [2025-02-20 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518710', 'tblTempVendorCDR_20' ) start [2025-02-20 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518710', 'tblTempVendorCDR_20' ) end [2025-02-20 15:39:20] Production.INFO: ProcessCDR(1,14518710,1,1,2) [2025-02-20 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518710', 'tblTempUsageDetail_20' ) start [2025-02-20 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518710', 'tblTempUsageDetail_20' ) end [2025-02-20 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:39:25] Production.INFO: ==25912== Releasing lock... [2025-02-20 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:39:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:40:06 [end_date_ymd] => 2025-02-20 15:40:06 [RateCDR] => 1 ) [2025-02-20 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:40:06' and `end` < '2025-02-20 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:40:19] Production.INFO: count ==5141 [2025-02-20 15:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:40:06 - End Time 2025-02-20 15:40:06 [2025-02-20 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518716', 'tblTempUsageDetail_20' ) start [2025-02-20 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518716', 'tblTempUsageDetail_20' ) end [2025-02-20 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518716', 'tblTempVendorCDR_20' ) start [2025-02-20 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518716', 'tblTempVendorCDR_20' ) end [2025-02-20 15:40:21] Production.INFO: ProcessCDR(1,14518716,1,1,2) [2025-02-20 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518716', 'tblTempUsageDetail_20' ) start [2025-02-20 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518716', 'tblTempUsageDetail_20' ) end [2025-02-20 15:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:40:25] Production.INFO: ==25985== Releasing lock... [2025-02-20 15:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:40:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:41:06 [end_date_ymd] => 2025-02-20 15:41:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:41:06' and `end` < '2025-02-20 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-02-20 15:41:19] Production.INFO: count ==5161 [2025-02-20 15:41:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:41:06 - End Time 2025-02-20 15:41:06 [2025-02-20 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518721', 'tblTempUsageDetail_20' ) start [2025-02-20 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518721', 'tblTempUsageDetail_20' ) end [2025-02-20 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518721', 'tblTempVendorCDR_20' ) start [2025-02-20 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518721', 'tblTempVendorCDR_20' ) end [2025-02-20 15:41:21] Production.INFO: ProcessCDR(1,14518721,1,1,2) [2025-02-20 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518721', 'tblTempUsageDetail_20' ) start [2025-02-20 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518721', 'tblTempUsageDetail_20' ) end [2025-02-20 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:41:26] Production.INFO: ==26091== Releasing lock... [2025-02-20 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:41:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:42:05 [end_date_ymd] => 2025-02-20 15:42:05 [RateCDR] => 1 ) [2025-02-20 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:42:05' and `end` < '2025-02-20 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:42:18] Production.INFO: count ==5174 [2025-02-20 15:42:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:42:05 - End Time 2025-02-20 15:42:05 [2025-02-20 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518726', 'tblTempUsageDetail_20' ) start [2025-02-20 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518726', 'tblTempUsageDetail_20' ) end [2025-02-20 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518726', 'tblTempVendorCDR_20' ) start [2025-02-20 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518726', 'tblTempVendorCDR_20' ) end [2025-02-20 15:42:20] Production.INFO: ProcessCDR(1,14518726,1,1,2) [2025-02-20 15:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518726', 'tblTempUsageDetail_20' ) start [2025-02-20 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518726', 'tblTempUsageDetail_20' ) end [2025-02-20 15:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:42:26] Production.INFO: ==26219== Releasing lock... [2025-02-20 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:42:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:43:06 [end_date_ymd] => 2025-02-20 15:43:06 [RateCDR] => 1 ) [2025-02-20 15: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-02-20 12:43:06' and `end` < '2025-02-20 15: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-02-20 15:43:19] Production.INFO: count ==5173 [2025-02-20 15:43:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:43:06 - End Time 2025-02-20 15:43:06 [2025-02-20 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518731', 'tblTempUsageDetail_20' ) start [2025-02-20 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518731', 'tblTempUsageDetail_20' ) end [2025-02-20 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518731', 'tblTempVendorCDR_20' ) start [2025-02-20 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518731', 'tblTempVendorCDR_20' ) end [2025-02-20 15:43:21] Production.INFO: ProcessCDR(1,14518731,1,1,2) [2025-02-20 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518731', 'tblTempUsageDetail_20' ) start [2025-02-20 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518731', 'tblTempUsageDetail_20' ) end [2025-02-20 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:43:26] Production.INFO: ==26352== Releasing lock... [2025-02-20 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:43:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:44:06 [end_date_ymd] => 2025-02-20 15:44:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:44:06' and `end` < '2025-02-20 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-02-20 15:44:18] Production.INFO: count ==5193 [2025-02-20 15:44:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:44:06 - End Time 2025-02-20 15:44:06 [2025-02-20 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518736', 'tblTempUsageDetail_20' ) start [2025-02-20 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518736', 'tblTempUsageDetail_20' ) end [2025-02-20 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518736', 'tblTempVendorCDR_20' ) start [2025-02-20 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518736', 'tblTempVendorCDR_20' ) end [2025-02-20 15:44:21] Production.INFO: ProcessCDR(1,14518736,1,1,2) [2025-02-20 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518736', 'tblTempUsageDetail_20' ) start [2025-02-20 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518736', 'tblTempUsageDetail_20' ) end [2025-02-20 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:44:25] Production.INFO: ==26487== Releasing lock... [2025-02-20 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:44:25] Production.INFO: 67 MB #Memory Used# [2025-02-20 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:45:05 [end_date_ymd] => 2025-02-20 15:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:45:05' and `end` < '2025-02-20 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-02-20 15:45:18] Production.INFO: count ==5184 [2025-02-20 15:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:45:05 - End Time 2025-02-20 15:45:05 [2025-02-20 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518741', 'tblTempUsageDetail_20' ) start [2025-02-20 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518741', 'tblTempUsageDetail_20' ) end [2025-02-20 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518741', 'tblTempVendorCDR_20' ) start [2025-02-20 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518741', 'tblTempVendorCDR_20' ) end [2025-02-20 15:45:20] Production.INFO: ProcessCDR(1,14518741,1,1,2) [2025-02-20 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518741', 'tblTempUsageDetail_20' ) start [2025-02-20 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518741', 'tblTempUsageDetail_20' ) end [2025-02-20 15:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:45:25] Production.INFO: ==26623== Releasing lock... [2025-02-20 15:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:45:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:46:06 [end_date_ymd] => 2025-02-20 15:46:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:46:06' and `end` < '2025-02-20 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-02-20 15:46:18] Production.INFO: count ==5179 [2025-02-20 15:46:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:46:06 - End Time 2025-02-20 15:46:06 [2025-02-20 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518746', 'tblTempUsageDetail_20' ) start [2025-02-20 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518746', 'tblTempUsageDetail_20' ) end [2025-02-20 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518746', 'tblTempVendorCDR_20' ) start [2025-02-20 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518746', 'tblTempVendorCDR_20' ) end [2025-02-20 15:46:21] Production.INFO: ProcessCDR(1,14518746,1,1,2) [2025-02-20 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518746', 'tblTempUsageDetail_20' ) start [2025-02-20 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518746', 'tblTempUsageDetail_20' ) end [2025-02-20 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:46:26] Production.INFO: ==26750== Releasing lock... [2025-02-20 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:46:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:47:04 [end_date_ymd] => 2025-02-20 15:47:04 [RateCDR] => 1 ) [2025-02-20 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:47:04' and `end` < '2025-02-20 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:47:17] Production.INFO: count ==5170 [2025-02-20 15:47:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:47:04 - End Time 2025-02-20 15:47:04 [2025-02-20 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518751', 'tblTempUsageDetail_20' ) start [2025-02-20 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518751', 'tblTempUsageDetail_20' ) end [2025-02-20 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518751', 'tblTempVendorCDR_20' ) start [2025-02-20 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518751', 'tblTempVendorCDR_20' ) end [2025-02-20 15:47:20] Production.INFO: ProcessCDR(1,14518751,1,1,2) [2025-02-20 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518751', 'tblTempUsageDetail_20' ) start [2025-02-20 15:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518751', 'tblTempUsageDetail_20' ) end [2025-02-20 15:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:47:25] Production.INFO: ==26871== Releasing lock... [2025-02-20 15:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:47:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:48:05 [end_date_ymd] => 2025-02-20 15:48:05 [RateCDR] => 1 ) [2025-02-20 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:48:05' and `end` < '2025-02-20 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:48:18] Production.INFO: count ==5164 [2025-02-20 15:48:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:48:05 - End Time 2025-02-20 15:48:05 [2025-02-20 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518756', 'tblTempUsageDetail_20' ) start [2025-02-20 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518756', 'tblTempUsageDetail_20' ) end [2025-02-20 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518756', 'tblTempVendorCDR_20' ) start [2025-02-20 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518756', 'tblTempVendorCDR_20' ) end [2025-02-20 15:48:21] Production.INFO: ProcessCDR(1,14518756,1,1,2) [2025-02-20 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518756', 'tblTempUsageDetail_20' ) start [2025-02-20 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518756', 'tblTempUsageDetail_20' ) end [2025-02-20 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:48:26] Production.INFO: ==26994== Releasing lock... [2025-02-20 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:48:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:49:06 [end_date_ymd] => 2025-02-20 15:49:06 [RateCDR] => 1 ) [2025-02-20 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:49:06' and `end` < '2025-02-20 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:49:19] Production.INFO: count ==5173 [2025-02-20 15:49:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:49:06 - End Time 2025-02-20 15:49:06 [2025-02-20 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518761', 'tblTempUsageDetail_20' ) start [2025-02-20 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518761', 'tblTempUsageDetail_20' ) end [2025-02-20 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518761', 'tblTempVendorCDR_20' ) start [2025-02-20 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518761', 'tblTempVendorCDR_20' ) end [2025-02-20 15:49:22] Production.INFO: ProcessCDR(1,14518761,1,1,2) [2025-02-20 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518761', 'tblTempUsageDetail_20' ) start [2025-02-20 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518761', 'tblTempUsageDetail_20' ) end [2025-02-20 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:49:27] Production.INFO: ==27124== Releasing lock... [2025-02-20 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:49:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:50:06 [end_date_ymd] => 2025-02-20 15:50:06 [RateCDR] => 1 ) [2025-02-20 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:50:06' and `end` < '2025-02-20 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:50:19] Production.INFO: count ==5164 [2025-02-20 15:50:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:50:06 - End Time 2025-02-20 15:50:06 [2025-02-20 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518767', 'tblTempUsageDetail_20' ) start [2025-02-20 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518767', 'tblTempUsageDetail_20' ) end [2025-02-20 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518767', 'tblTempVendorCDR_20' ) start [2025-02-20 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518767', 'tblTempVendorCDR_20' ) end [2025-02-20 15:50:21] Production.INFO: ProcessCDR(1,14518767,1,1,2) [2025-02-20 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518767', 'tblTempUsageDetail_20' ) start [2025-02-20 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518767', 'tblTempUsageDetail_20' ) end [2025-02-20 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:50:25] Production.INFO: ==27260== Releasing lock... [2025-02-20 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:50:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:51:06 [end_date_ymd] => 2025-02-20 15:51:06 [RateCDR] => 1 ) [2025-02-20 15: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-02-20 12:51:06' and `end` < '2025-02-20 15: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-02-20 15:51:19] Production.INFO: count ==5184 [2025-02-20 15:51:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:51:06 - End Time 2025-02-20 15:51:06 [2025-02-20 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518772', 'tblTempUsageDetail_20' ) start [2025-02-20 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518772', 'tblTempUsageDetail_20' ) end [2025-02-20 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518772', 'tblTempVendorCDR_20' ) start [2025-02-20 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518772', 'tblTempVendorCDR_20' ) end [2025-02-20 15:51:21] Production.INFO: ProcessCDR(1,14518772,1,1,2) [2025-02-20 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518772', 'tblTempUsageDetail_20' ) start [2025-02-20 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518772', 'tblTempUsageDetail_20' ) end [2025-02-20 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:51:26] Production.INFO: ==27395== Releasing lock... [2025-02-20 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:51:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:52:06 [end_date_ymd] => 2025-02-20 15:52:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:52:06' and `end` < '2025-02-20 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-02-20 15:52:18] Production.INFO: count ==5171 [2025-02-20 15:52:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:52:06 - End Time 2025-02-20 15:52:06 [2025-02-20 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518777', 'tblTempUsageDetail_20' ) start [2025-02-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518777', 'tblTempUsageDetail_20' ) end [2025-02-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518777', 'tblTempVendorCDR_20' ) start [2025-02-20 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518777', 'tblTempVendorCDR_20' ) end [2025-02-20 15:52:21] Production.INFO: ProcessCDR(1,14518777,1,1,2) [2025-02-20 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518777', 'tblTempUsageDetail_20' ) start [2025-02-20 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518777', 'tblTempUsageDetail_20' ) end [2025-02-20 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:52:25] Production.INFO: ==27571== Releasing lock... [2025-02-20 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:52:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:53:05 [end_date_ymd] => 2025-02-20 15:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:53:05' and `end` < '2025-02-20 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-02-20 15:53:18] Production.INFO: count ==5149 [2025-02-20 15:53:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:53:05 - End Time 2025-02-20 15:53:05 [2025-02-20 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518782', 'tblTempUsageDetail_20' ) start [2025-02-20 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518782', 'tblTempUsageDetail_20' ) end [2025-02-20 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518782', 'tblTempVendorCDR_20' ) start [2025-02-20 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518782', 'tblTempVendorCDR_20' ) end [2025-02-20 15:53:20] Production.INFO: ProcessCDR(1,14518782,1,1,2) [2025-02-20 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518782', 'tblTempUsageDetail_20' ) start [2025-02-20 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518782', 'tblTempUsageDetail_20' ) end [2025-02-20 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:53:25] Production.INFO: ==27703== Releasing lock... [2025-02-20 15:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:53:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:54:05 [end_date_ymd] => 2025-02-20 15:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 12:54:05' and `end` < '2025-02-20 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-02-20 15:54:18] Production.INFO: count ==5122 [2025-02-20 15:54:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:54:05 - End Time 2025-02-20 15:54:05 [2025-02-20 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518787', 'tblTempUsageDetail_20' ) start [2025-02-20 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518787', 'tblTempUsageDetail_20' ) end [2025-02-20 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518787', 'tblTempVendorCDR_20' ) start [2025-02-20 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518787', 'tblTempVendorCDR_20' ) end [2025-02-20 15:54:20] Production.INFO: ProcessCDR(1,14518787,1,1,2) [2025-02-20 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518787', 'tblTempUsageDetail_20' ) start [2025-02-20 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518787', 'tblTempUsageDetail_20' ) end [2025-02-20 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:54:26] Production.INFO: ==27831== Releasing lock... [2025-02-20 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:54:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:55:06 [end_date_ymd] => 2025-02-20 15:55:06 [RateCDR] => 1 ) [2025-02-20 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:55:06' and `end` < '2025-02-20 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:55:19] Production.INFO: count ==5105 [2025-02-20 15:55:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:55:06 - End Time 2025-02-20 15:55:06 [2025-02-20 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518792', 'tblTempUsageDetail_20' ) start [2025-02-20 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518792', 'tblTempUsageDetail_20' ) end [2025-02-20 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518792', 'tblTempVendorCDR_20' ) start [2025-02-20 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518792', 'tblTempVendorCDR_20' ) end [2025-02-20 15:55:21] Production.INFO: ProcessCDR(1,14518792,1,1,2) [2025-02-20 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518792', 'tblTempUsageDetail_20' ) start [2025-02-20 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518792', 'tblTempUsageDetail_20' ) end [2025-02-20 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:55:26] Production.INFO: ==27952== Releasing lock... [2025-02-20 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:55:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:56:05 [end_date_ymd] => 2025-02-20 15:56:05 [RateCDR] => 1 ) [2025-02-20 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:56:05' and `end` < '2025-02-20 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:56:18] Production.INFO: count ==5116 [2025-02-20 15:56:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:56:05 - End Time 2025-02-20 15:56:05 [2025-02-20 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518797', 'tblTempUsageDetail_20' ) start [2025-02-20 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518797', 'tblTempUsageDetail_20' ) end [2025-02-20 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518797', 'tblTempVendorCDR_20' ) start [2025-02-20 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518797', 'tblTempVendorCDR_20' ) end [2025-02-20 15:56:21] Production.INFO: ProcessCDR(1,14518797,1,1,2) [2025-02-20 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518797', 'tblTempUsageDetail_20' ) start [2025-02-20 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518797', 'tblTempUsageDetail_20' ) end [2025-02-20 15:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:56:25] Production.INFO: ==28022== Releasing lock... [2025-02-20 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:56:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:57:06 [end_date_ymd] => 2025-02-20 15:57:06 [RateCDR] => 1 ) [2025-02-20 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:57:06' and `end` < '2025-02-20 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:57:19] Production.INFO: count ==5122 [2025-02-20 15:57:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:57:06 - End Time 2025-02-20 15:57:06 [2025-02-20 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518802', 'tblTempUsageDetail_20' ) start [2025-02-20 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518802', 'tblTempUsageDetail_20' ) end [2025-02-20 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518802', 'tblTempVendorCDR_20' ) start [2025-02-20 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518802', 'tblTempVendorCDR_20' ) end [2025-02-20 15:57:21] Production.INFO: ProcessCDR(1,14518802,1,1,2) [2025-02-20 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518802', 'tblTempUsageDetail_20' ) start [2025-02-20 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518802', 'tblTempUsageDetail_20' ) end [2025-02-20 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:57:26] Production.INFO: ==28096== Releasing lock... [2025-02-20 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:57:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:58:04 [end_date_ymd] => 2025-02-20 15:58:04 [RateCDR] => 1 ) [2025-02-20 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:58:04' and `end` < '2025-02-20 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:58:17] Production.INFO: count ==5135 [2025-02-20 15:58:20] Production.ERROR: pbx CDR StartTime 2025-02-20 12:58:04 - End Time 2025-02-20 15:58:04 [2025-02-20 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518807', 'tblTempUsageDetail_20' ) start [2025-02-20 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518807', 'tblTempUsageDetail_20' ) end [2025-02-20 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518807', 'tblTempVendorCDR_20' ) start [2025-02-20 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518807', 'tblTempVendorCDR_20' ) end [2025-02-20 15:58:20] Production.INFO: ProcessCDR(1,14518807,1,1,2) [2025-02-20 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518807', 'tblTempUsageDetail_20' ) start [2025-02-20 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518807', 'tblTempUsageDetail_20' ) end [2025-02-20 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:58:25] Production.INFO: ==28170== Releasing lock... [2025-02-20 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:58:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 12:59:06 [end_date_ymd] => 2025-02-20 15:59:06 [RateCDR] => 1 ) [2025-02-20 15:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 12:59:06' and `end` < '2025-02-20 15:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 15:59:18] Production.INFO: count ==5138 [2025-02-20 15:59:21] Production.ERROR: pbx CDR StartTime 2025-02-20 12:59:06 - End Time 2025-02-20 15:59:06 [2025-02-20 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518812', 'tblTempUsageDetail_20' ) start [2025-02-20 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518812', 'tblTempUsageDetail_20' ) end [2025-02-20 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518812', 'tblTempVendorCDR_20' ) start [2025-02-20 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518812', 'tblTempVendorCDR_20' ) end [2025-02-20 15:59:21] Production.INFO: ProcessCDR(1,14518812,1,1,2) [2025-02-20 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518812', 'tblTempUsageDetail_20' ) start [2025-02-20 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518812', 'tblTempUsageDetail_20' ) end [2025-02-20 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 15:59:26] Production.INFO: ==28241== Releasing lock... [2025-02-20 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 15:59:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:00:06 [end_date_ymd] => 2025-02-20 16:00:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:00:06' and `end` < '2025-02-20 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-02-20 16:00:20] Production.INFO: count ==5132 [2025-02-20 16:00:22] Production.ERROR: pbx CDR StartTime 2025-02-20 13:00:06 - End Time 2025-02-20 16:00:06 [2025-02-20 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518818', 'tblTempUsageDetail_20' ) start [2025-02-20 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518818', 'tblTempUsageDetail_20' ) end [2025-02-20 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518818', 'tblTempVendorCDR_20' ) start [2025-02-20 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518818', 'tblTempVendorCDR_20' ) end [2025-02-20 16:00:22] Production.INFO: ProcessCDR(1,14518818,1,1,2) [2025-02-20 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518818', 'tblTempUsageDetail_20' ) start [2025-02-20 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518818', 'tblTempUsageDetail_20' ) end [2025-02-20 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:00:26] Production.INFO: ==28315== Releasing lock... [2025-02-20 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:00:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:01:06 [end_date_ymd] => 2025-02-20 16:01:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:01:06' and `end` < '2025-02-20 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-02-20 16:01:19] Production.INFO: count ==5164 [2025-02-20 16:01:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:01:06 - End Time 2025-02-20 16:01:06 [2025-02-20 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518823', 'tblTempUsageDetail_20' ) start [2025-02-20 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518823', 'tblTempUsageDetail_20' ) end [2025-02-20 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518823', 'tblTempVendorCDR_20' ) start [2025-02-20 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518823', 'tblTempVendorCDR_20' ) end [2025-02-20 16:01:21] Production.INFO: ProcessCDR(1,14518823,1,1,2) [2025-02-20 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518823', 'tblTempUsageDetail_20' ) start [2025-02-20 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518823', 'tblTempUsageDetail_20' ) end [2025-02-20 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:01:26] Production.INFO: ==28399== Releasing lock... [2025-02-20 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:01:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:02:05 [end_date_ymd] => 2025-02-20 16:02:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:02:05' and `end` < '2025-02-20 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-02-20 16:02:18] Production.INFO: count ==5164 [2025-02-20 16:02:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:02:05 - End Time 2025-02-20 16:02:05 [2025-02-20 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518828', 'tblTempUsageDetail_20' ) start [2025-02-20 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518828', 'tblTempUsageDetail_20' ) end [2025-02-20 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518828', 'tblTempVendorCDR_20' ) start [2025-02-20 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518828', 'tblTempVendorCDR_20' ) end [2025-02-20 16:02:20] Production.INFO: ProcessCDR(1,14518828,1,1,2) [2025-02-20 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518828', 'tblTempUsageDetail_20' ) start [2025-02-20 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518828', 'tblTempUsageDetail_20' ) end [2025-02-20 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:02:25] Production.INFO: ==28469== Releasing lock... [2025-02-20 16:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:02:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:03:05 [end_date_ymd] => 2025-02-20 16:03:05 [RateCDR] => 1 ) [2025-02-20 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:03:05' and `end` < '2025-02-20 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:03:18] Production.INFO: count ==5158 [2025-02-20 16:03:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:03:05 - End Time 2025-02-20 16:03:05 [2025-02-20 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518833', 'tblTempUsageDetail_20' ) start [2025-02-20 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518833', 'tblTempUsageDetail_20' ) end [2025-02-20 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518833', 'tblTempVendorCDR_20' ) start [2025-02-20 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518833', 'tblTempVendorCDR_20' ) end [2025-02-20 16:03:21] Production.INFO: ProcessCDR(1,14518833,1,1,2) [2025-02-20 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518833', 'tblTempUsageDetail_20' ) start [2025-02-20 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518833', 'tblTempUsageDetail_20' ) end [2025-02-20 16:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:03:24] Production.INFO: ==28542== Releasing lock... [2025-02-20 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:03:24] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:04:05 [end_date_ymd] => 2025-02-20 16:04:05 [RateCDR] => 1 ) [2025-02-20 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:04:05' and `end` < '2025-02-20 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:04:19] Production.INFO: count ==5147 [2025-02-20 16:04:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:04:05 - End Time 2025-02-20 16:04:05 [2025-02-20 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518838', 'tblTempUsageDetail_20' ) start [2025-02-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518838', 'tblTempUsageDetail_20' ) end [2025-02-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518838', 'tblTempVendorCDR_20' ) start [2025-02-20 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518838', 'tblTempVendorCDR_20' ) end [2025-02-20 16:04:21] Production.INFO: ProcessCDR(1,14518838,1,1,2) [2025-02-20 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518838', 'tblTempUsageDetail_20' ) start [2025-02-20 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518838', 'tblTempUsageDetail_20' ) end [2025-02-20 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:04:26] Production.INFO: ==28614== Releasing lock... [2025-02-20 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:04:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:05:06 [end_date_ymd] => 2025-02-20 16:05:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:05:06' and `end` < '2025-02-20 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-02-20 16:05:19] Production.INFO: count ==5158 [2025-02-20 16:05:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:05:06 - End Time 2025-02-20 16:05:06 [2025-02-20 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518843', 'tblTempUsageDetail_20' ) start [2025-02-20 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518843', 'tblTempUsageDetail_20' ) end [2025-02-20 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518843', 'tblTempVendorCDR_20' ) start [2025-02-20 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518843', 'tblTempVendorCDR_20' ) end [2025-02-20 16:05:21] Production.INFO: ProcessCDR(1,14518843,1,1,2) [2025-02-20 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518843', 'tblTempUsageDetail_20' ) start [2025-02-20 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518843', 'tblTempUsageDetail_20' ) end [2025-02-20 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:05:26] Production.INFO: ==28685== Releasing lock... [2025-02-20 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:05:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:06:05 [end_date_ymd] => 2025-02-20 16:06:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:06:05' and `end` < '2025-02-20 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-02-20 16:06:18] Production.INFO: count ==5158 [2025-02-20 16:06:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:06:05 - End Time 2025-02-20 16:06:05 [2025-02-20 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518848', 'tblTempUsageDetail_20' ) start [2025-02-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518848', 'tblTempUsageDetail_20' ) end [2025-02-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518848', 'tblTempVendorCDR_20' ) start [2025-02-20 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518848', 'tblTempVendorCDR_20' ) end [2025-02-20 16:06:21] Production.INFO: ProcessCDR(1,14518848,1,1,2) [2025-02-20 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518848', 'tblTempUsageDetail_20' ) start [2025-02-20 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518848', 'tblTempUsageDetail_20' ) end [2025-02-20 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:06:25] Production.INFO: ==28755== Releasing lock... [2025-02-20 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:06:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:07:06 [end_date_ymd] => 2025-02-20 16:07:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:07:06' and `end` < '2025-02-20 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-02-20 16:07:19] Production.INFO: count ==5147 [2025-02-20 16:07:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:07:06 - End Time 2025-02-20 16:07:06 [2025-02-20 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518853', 'tblTempUsageDetail_20' ) start [2025-02-20 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518853', 'tblTempUsageDetail_20' ) end [2025-02-20 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518853', 'tblTempVendorCDR_20' ) start [2025-02-20 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518853', 'tblTempVendorCDR_20' ) end [2025-02-20 16:07:21] Production.INFO: ProcessCDR(1,14518853,1,1,2) [2025-02-20 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518853', 'tblTempUsageDetail_20' ) start [2025-02-20 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518853', 'tblTempUsageDetail_20' ) end [2025-02-20 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:07:26] Production.INFO: ==28865== Releasing lock... [2025-02-20 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:07:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:08:05 [end_date_ymd] => 2025-02-20 16:08:05 [RateCDR] => 1 ) [2025-02-20 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:08:05' and `end` < '2025-02-20 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:08:18] Production.INFO: count ==5122 [2025-02-20 16:08:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:08:05 - End Time 2025-02-20 16:08:05 [2025-02-20 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518858', 'tblTempUsageDetail_20' ) start [2025-02-20 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518858', 'tblTempUsageDetail_20' ) end [2025-02-20 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518858', 'tblTempVendorCDR_20' ) start [2025-02-20 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518858', 'tblTempVendorCDR_20' ) end [2025-02-20 16:08:20] Production.INFO: ProcessCDR(1,14518858,1,1,2) [2025-02-20 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518858', 'tblTempUsageDetail_20' ) start [2025-02-20 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518858', 'tblTempUsageDetail_20' ) end [2025-02-20 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:08:26] Production.INFO: ==28939== Releasing lock... [2025-02-20 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:08:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:09:06 [end_date_ymd] => 2025-02-20 16:09:06 [RateCDR] => 1 ) [2025-02-20 16: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-02-20 13:09:06' and `end` < '2025-02-20 16: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-02-20 16:09:18] Production.INFO: count ==5121 [2025-02-20 16:09:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:09:06 - End Time 2025-02-20 16:09:06 [2025-02-20 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518863', 'tblTempUsageDetail_20' ) start [2025-02-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518863', 'tblTempUsageDetail_20' ) end [2025-02-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518863', 'tblTempVendorCDR_20' ) start [2025-02-20 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518863', 'tblTempVendorCDR_20' ) end [2025-02-20 16:09:21] Production.INFO: ProcessCDR(1,14518863,1,1,2) [2025-02-20 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518863', 'tblTempUsageDetail_20' ) start [2025-02-20 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518863', 'tblTempUsageDetail_20' ) end [2025-02-20 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:09:27] Production.INFO: ==29010== Releasing lock... [2025-02-20 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:09:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:10:06 [end_date_ymd] => 2025-02-20 16:10:06 [RateCDR] => 1 ) [2025-02-20 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:10:06' and `end` < '2025-02-20 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:10:19] Production.INFO: count ==5112 [2025-02-20 16:10:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:10:06 - End Time 2025-02-20 16:10:06 [2025-02-20 16:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518869', 'tblTempUsageDetail_20' ) start [2025-02-20 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518869', 'tblTempUsageDetail_20' ) end [2025-02-20 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518869', 'tblTempVendorCDR_20' ) start [2025-02-20 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518869', 'tblTempVendorCDR_20' ) end [2025-02-20 16:10:21] Production.INFO: ProcessCDR(1,14518869,1,1,2) [2025-02-20 16:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518869', 'tblTempUsageDetail_20' ) start [2025-02-20 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518869', 'tblTempUsageDetail_20' ) end [2025-02-20 16:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:10:27] Production.INFO: ==29083== Releasing lock... [2025-02-20 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:10:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:11:06 [end_date_ymd] => 2025-02-20 16:11:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:11:06' and `end` < '2025-02-20 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-02-20 16:11:19] Production.INFO: count ==5142 [2025-02-20 16:11:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:11:06 - End Time 2025-02-20 16:11:06 [2025-02-20 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518874', 'tblTempUsageDetail_20' ) start [2025-02-20 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518874', 'tblTempUsageDetail_20' ) end [2025-02-20 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518874', 'tblTempVendorCDR_20' ) start [2025-02-20 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518874', 'tblTempVendorCDR_20' ) end [2025-02-20 16:11:21] Production.INFO: ProcessCDR(1,14518874,1,1,2) [2025-02-20 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518874', 'tblTempUsageDetail_20' ) start [2025-02-20 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518874', 'tblTempUsageDetail_20' ) end [2025-02-20 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:11:27] Production.INFO: ==29166== Releasing lock... [2025-02-20 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:11:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:12:06 [end_date_ymd] => 2025-02-20 16:12:06 [RateCDR] => 1 ) [2025-02-20 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:12:06' and `end` < '2025-02-20 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:12:19] Production.INFO: count ==5127 [2025-02-20 16:12:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:12:06 - End Time 2025-02-20 16:12:06 [2025-02-20 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518879', 'tblTempUsageDetail_20' ) start [2025-02-20 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518879', 'tblTempUsageDetail_20' ) end [2025-02-20 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518879', 'tblTempVendorCDR_20' ) start [2025-02-20 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518879', 'tblTempVendorCDR_20' ) end [2025-02-20 16:12:21] Production.INFO: ProcessCDR(1,14518879,1,1,2) [2025-02-20 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518879', 'tblTempUsageDetail_20' ) start [2025-02-20 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518879', 'tblTempUsageDetail_20' ) end [2025-02-20 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:12:26] Production.INFO: ==29236== Releasing lock... [2025-02-20 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:13:06 [end_date_ymd] => 2025-02-20 16:13:06 [RateCDR] => 1 ) [2025-02-20 16: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-02-20 13:13:06' and `end` < '2025-02-20 16: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-02-20 16:13:19] Production.INFO: count ==5126 [2025-02-20 16:13:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:13:06 - End Time 2025-02-20 16:13:06 [2025-02-20 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518884', 'tblTempUsageDetail_20' ) start [2025-02-20 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518884', 'tblTempUsageDetail_20' ) end [2025-02-20 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518884', 'tblTempVendorCDR_20' ) start [2025-02-20 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518884', 'tblTempVendorCDR_20' ) end [2025-02-20 16:13:21] Production.INFO: ProcessCDR(1,14518884,1,1,2) [2025-02-20 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518884', 'tblTempUsageDetail_20' ) start [2025-02-20 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518884', 'tblTempUsageDetail_20' ) end [2025-02-20 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:13:27] Production.INFO: ==29307== Releasing lock... [2025-02-20 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:14:05 [end_date_ymd] => 2025-02-20 16:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:14:05' and `end` < '2025-02-20 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-02-20 16:14:18] Production.INFO: count ==5156 [2025-02-20 16:14:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:14:05 - End Time 2025-02-20 16:14:05 [2025-02-20 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518889', 'tblTempUsageDetail_20' ) start [2025-02-20 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518889', 'tblTempUsageDetail_20' ) end [2025-02-20 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518889', 'tblTempVendorCDR_20' ) start [2025-02-20 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518889', 'tblTempVendorCDR_20' ) end [2025-02-20 16:14:21] Production.INFO: ProcessCDR(1,14518889,1,1,2) [2025-02-20 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518889', 'tblTempUsageDetail_20' ) start [2025-02-20 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518889', 'tblTempUsageDetail_20' ) end [2025-02-20 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:14:26] Production.INFO: ==29377== Releasing lock... [2025-02-20 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:14:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:15:06 [end_date_ymd] => 2025-02-20 16:15:06 [RateCDR] => 1 ) [2025-02-20 16: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-02-20 13:15:06' and `end` < '2025-02-20 16: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-02-20 16:15:19] Production.INFO: count ==5164 [2025-02-20 16:15:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:15:06 - End Time 2025-02-20 16:15:06 [2025-02-20 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518894', 'tblTempUsageDetail_20' ) start [2025-02-20 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518894', 'tblTempUsageDetail_20' ) end [2025-02-20 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518894', 'tblTempVendorCDR_20' ) start [2025-02-20 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518894', 'tblTempVendorCDR_20' ) end [2025-02-20 16:15:21] Production.INFO: ProcessCDR(1,14518894,1,1,2) [2025-02-20 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518894', 'tblTempUsageDetail_20' ) start [2025-02-20 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518894', 'tblTempUsageDetail_20' ) end [2025-02-20 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:15:26] Production.INFO: ==29452== Releasing lock... [2025-02-20 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:15:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:16:05 [end_date_ymd] => 2025-02-20 16:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:16:05' and `end` < '2025-02-20 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-02-20 16:16:18] Production.INFO: count ==5148 [2025-02-20 16:16:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:16:05 - End Time 2025-02-20 16:16:05 [2025-02-20 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518899', 'tblTempUsageDetail_20' ) start [2025-02-20 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518899', 'tblTempUsageDetail_20' ) end [2025-02-20 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518899', 'tblTempVendorCDR_20' ) start [2025-02-20 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518899', 'tblTempVendorCDR_20' ) end [2025-02-20 16:16:21] Production.INFO: ProcessCDR(1,14518899,1,1,2) [2025-02-20 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518899', 'tblTempUsageDetail_20' ) start [2025-02-20 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518899', 'tblTempUsageDetail_20' ) end [2025-02-20 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:16:26] Production.INFO: ==29525== Releasing lock... [2025-02-20 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:16:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:17:06 [end_date_ymd] => 2025-02-20 16:17:06 [RateCDR] => 1 ) [2025-02-20 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:17:06' and `end` < '2025-02-20 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:17:19] Production.INFO: count ==5160 [2025-02-20 16:17:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:17:06 - End Time 2025-02-20 16:17:06 [2025-02-20 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518904', 'tblTempUsageDetail_20' ) start [2025-02-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518904', 'tblTempUsageDetail_20' ) end [2025-02-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518904', 'tblTempVendorCDR_20' ) start [2025-02-20 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518904', 'tblTempVendorCDR_20' ) end [2025-02-20 16:17:21] Production.INFO: ProcessCDR(1,14518904,1,1,2) [2025-02-20 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518904', 'tblTempUsageDetail_20' ) start [2025-02-20 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518904', 'tblTempUsageDetail_20' ) end [2025-02-20 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:17:27] Production.INFO: ==29595== Releasing lock... [2025-02-20 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:17:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:18:06 [end_date_ymd] => 2025-02-20 16:18:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:18:06' and `end` < '2025-02-20 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-02-20 16:18:19] Production.INFO: count ==5147 [2025-02-20 16:18:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:18:06 - End Time 2025-02-20 16:18:06 [2025-02-20 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518909', 'tblTempUsageDetail_20' ) start [2025-02-20 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518909', 'tblTempUsageDetail_20' ) end [2025-02-20 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518909', 'tblTempVendorCDR_20' ) start [2025-02-20 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518909', 'tblTempVendorCDR_20' ) end [2025-02-20 16:18:21] Production.INFO: ProcessCDR(1,14518909,1,1,2) [2025-02-20 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518909', 'tblTempUsageDetail_20' ) start [2025-02-20 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518909', 'tblTempUsageDetail_20' ) end [2025-02-20 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:18:27] Production.INFO: ==29686== Releasing lock... [2025-02-20 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:18:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:19:06 [end_date_ymd] => 2025-02-20 16:19:06 [RateCDR] => 1 ) [2025-02-20 16: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-02-20 13:19:06' and `end` < '2025-02-20 16: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-02-20 16:19:19] Production.INFO: count ==5133 [2025-02-20 16:19:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:19:06 - End Time 2025-02-20 16:19:06 [2025-02-20 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518914', 'tblTempUsageDetail_20' ) start [2025-02-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518914', 'tblTempUsageDetail_20' ) end [2025-02-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518914', 'tblTempVendorCDR_20' ) start [2025-02-20 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518914', 'tblTempVendorCDR_20' ) end [2025-02-20 16:19:22] Production.INFO: ProcessCDR(1,14518914,1,1,2) [2025-02-20 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518914', 'tblTempUsageDetail_20' ) start [2025-02-20 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518914', 'tblTempUsageDetail_20' ) end [2025-02-20 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:19:27] Production.INFO: ==29764== Releasing lock... [2025-02-20 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:19:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:20:06 [end_date_ymd] => 2025-02-20 16:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:20:06' and `end` < '2025-02-20 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-02-20 16:20:19] Production.INFO: count ==5139 [2025-02-20 16:20:22] Production.ERROR: pbx CDR StartTime 2025-02-20 13:20:06 - End Time 2025-02-20 16:20:06 [2025-02-20 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518920', 'tblTempUsageDetail_20' ) start [2025-02-20 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518920', 'tblTempUsageDetail_20' ) end [2025-02-20 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518920', 'tblTempVendorCDR_20' ) start [2025-02-20 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518920', 'tblTempVendorCDR_20' ) end [2025-02-20 16:20:22] Production.INFO: ProcessCDR(1,14518920,1,1,2) [2025-02-20 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518920', 'tblTempUsageDetail_20' ) start [2025-02-20 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518920', 'tblTempUsageDetail_20' ) end [2025-02-20 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:20:27] Production.INFO: ==29857== Releasing lock... [2025-02-20 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:20:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:21:05 [end_date_ymd] => 2025-02-20 16:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:21:05' and `end` < '2025-02-20 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-02-20 16:21:18] Production.INFO: count ==5113 [2025-02-20 16:21:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:21:05 - End Time 2025-02-20 16:21:05 [2025-02-20 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518925', 'tblTempUsageDetail_20' ) start [2025-02-20 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518925', 'tblTempUsageDetail_20' ) end [2025-02-20 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518925', 'tblTempVendorCDR_20' ) start [2025-02-20 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518925', 'tblTempVendorCDR_20' ) end [2025-02-20 16:21:20] Production.INFO: ProcessCDR(1,14518925,1,1,2) [2025-02-20 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518925', 'tblTempUsageDetail_20' ) start [2025-02-20 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518925', 'tblTempUsageDetail_20' ) end [2025-02-20 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:21:26] Production.INFO: ==29970== Releasing lock... [2025-02-20 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:21:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:22:06 [end_date_ymd] => 2025-02-20 16:22:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:22:06' and `end` < '2025-02-20 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-02-20 16:22:19] Production.INFO: count ==5111 [2025-02-20 16:22:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:22:06 - End Time 2025-02-20 16:22:06 [2025-02-20 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518930', 'tblTempUsageDetail_20' ) start [2025-02-20 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518930', 'tblTempUsageDetail_20' ) end [2025-02-20 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518930', 'tblTempVendorCDR_20' ) start [2025-02-20 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518930', 'tblTempVendorCDR_20' ) end [2025-02-20 16:22:21] Production.INFO: ProcessCDR(1,14518930,1,1,2) [2025-02-20 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518930', 'tblTempUsageDetail_20' ) start [2025-02-20 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518930', 'tblTempUsageDetail_20' ) end [2025-02-20 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:22:27] Production.INFO: ==30120== Releasing lock... [2025-02-20 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:23:05 [end_date_ymd] => 2025-02-20 16:23:05 [RateCDR] => 1 ) [2025-02-20 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:23:05' and `end` < '2025-02-20 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:23:18] Production.INFO: count ==5109 [2025-02-20 16:23:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:23:05 - End Time 2025-02-20 16:23:05 [2025-02-20 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518935', 'tblTempUsageDetail_20' ) start [2025-02-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518935', 'tblTempUsageDetail_20' ) end [2025-02-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518935', 'tblTempVendorCDR_20' ) start [2025-02-20 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518935', 'tblTempVendorCDR_20' ) end [2025-02-20 16:23:20] Production.INFO: ProcessCDR(1,14518935,1,1,2) [2025-02-20 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518935', 'tblTempUsageDetail_20' ) start [2025-02-20 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518935', 'tblTempUsageDetail_20' ) end [2025-02-20 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:23:25] Production.INFO: ==30216== Releasing lock... [2025-02-20 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:23:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:24:05 [end_date_ymd] => 2025-02-20 16:24:05 [RateCDR] => 1 ) [2025-02-20 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:24:05' and `end` < '2025-02-20 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:24:18] Production.INFO: count ==5092 [2025-02-20 16:24:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:24:05 - End Time 2025-02-20 16:24:05 [2025-02-20 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518940', 'tblTempUsageDetail_20' ) start [2025-02-20 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518940', 'tblTempUsageDetail_20' ) end [2025-02-20 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518940', 'tblTempVendorCDR_20' ) start [2025-02-20 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518940', 'tblTempVendorCDR_20' ) end [2025-02-20 16:24:20] Production.INFO: ProcessCDR(1,14518940,1,1,2) [2025-02-20 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518940', 'tblTempUsageDetail_20' ) start [2025-02-20 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518940', 'tblTempUsageDetail_20' ) end [2025-02-20 16:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:24:25] Production.INFO: ==30306== Releasing lock... [2025-02-20 16:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:24:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:25:05 [end_date_ymd] => 2025-02-20 16:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:25:05' and `end` < '2025-02-20 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-02-20 16:25:18] Production.INFO: count ==5079 [2025-02-20 16:25:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:25:05 - End Time 2025-02-20 16:25:05 [2025-02-20 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518945', 'tblTempUsageDetail_20' ) start [2025-02-20 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518945', 'tblTempUsageDetail_20' ) end [2025-02-20 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518945', 'tblTempVendorCDR_20' ) start [2025-02-20 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518945', 'tblTempVendorCDR_20' ) end [2025-02-20 16:25:20] Production.INFO: ProcessCDR(1,14518945,1,1,2) [2025-02-20 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518945', 'tblTempUsageDetail_20' ) start [2025-02-20 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518945', 'tblTempUsageDetail_20' ) end [2025-02-20 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:25:24] Production.INFO: ==30394== Releasing lock... [2025-02-20 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:25:24] Production.INFO: 66 MB #Memory Used# [2025-02-20 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:26:05 [end_date_ymd] => 2025-02-20 16:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:26:05' and `end` < '2025-02-20 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-02-20 16:26:18] Production.INFO: count ==5087 [2025-02-20 16:26:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:26:05 - End Time 2025-02-20 16:26:05 [2025-02-20 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518950', 'tblTempUsageDetail_20' ) start [2025-02-20 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518950', 'tblTempUsageDetail_20' ) end [2025-02-20 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518950', 'tblTempVendorCDR_20' ) start [2025-02-20 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518950', 'tblTempVendorCDR_20' ) end [2025-02-20 16:26:20] Production.INFO: ProcessCDR(1,14518950,1,1,2) [2025-02-20 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518950', 'tblTempUsageDetail_20' ) start [2025-02-20 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518950', 'tblTempUsageDetail_20' ) end [2025-02-20 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:26:25] Production.INFO: ==30482== Releasing lock... [2025-02-20 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:26:25] Production.INFO: 66 MB #Memory Used# [2025-02-20 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:27:06 [end_date_ymd] => 2025-02-20 16:27:06 [RateCDR] => 1 ) [2025-02-20 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:27:06' and `end` < '2025-02-20 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:27:19] Production.INFO: count ==5087 [2025-02-20 16:27:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:27:06 - End Time 2025-02-20 16:27:06 [2025-02-20 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518955', 'tblTempUsageDetail_20' ) start [2025-02-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518955', 'tblTempUsageDetail_20' ) end [2025-02-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518955', 'tblTempVendorCDR_20' ) start [2025-02-20 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518955', 'tblTempVendorCDR_20' ) end [2025-02-20 16:27:21] Production.INFO: ProcessCDR(1,14518955,1,1,2) [2025-02-20 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518955', 'tblTempUsageDetail_20' ) start [2025-02-20 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518955', 'tblTempUsageDetail_20' ) end [2025-02-20 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:27:26] Production.INFO: ==30569== Releasing lock... [2025-02-20 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:27:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:28:05 [end_date_ymd] => 2025-02-20 16:28:05 [RateCDR] => 1 ) [2025-02-20 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:28:05' and `end` < '2025-02-20 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:28:18] Production.INFO: count ==5069 [2025-02-20 16:28:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:28:05 - End Time 2025-02-20 16:28:05 [2025-02-20 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518960', 'tblTempUsageDetail_20' ) start [2025-02-20 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518960', 'tblTempUsageDetail_20' ) end [2025-02-20 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518960', 'tblTempVendorCDR_20' ) start [2025-02-20 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518960', 'tblTempVendorCDR_20' ) end [2025-02-20 16:28:20] Production.INFO: ProcessCDR(1,14518960,1,1,2) [2025-02-20 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518960', 'tblTempUsageDetail_20' ) start [2025-02-20 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518960', 'tblTempUsageDetail_20' ) end [2025-02-20 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:28:26] Production.INFO: ==30657== Releasing lock... [2025-02-20 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:28:26] Production.INFO: 66 MB #Memory Used# [2025-02-20 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:29:04 [end_date_ymd] => 2025-02-20 16:29:04 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:29:04' and `end` < '2025-02-20 16:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:29:17] Production.INFO: count ==5118 [2025-02-20 16:29:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:29:04 - End Time 2025-02-20 16:29:04 [2025-02-20 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518965', 'tblTempUsageDetail_20' ) start [2025-02-20 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518965', 'tblTempUsageDetail_20' ) end [2025-02-20 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518965', 'tblTempVendorCDR_20' ) start [2025-02-20 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518965', 'tblTempVendorCDR_20' ) end [2025-02-20 16:29:20] Production.INFO: ProcessCDR(1,14518965,1,1,2) [2025-02-20 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518965', 'tblTempUsageDetail_20' ) start [2025-02-20 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518965', 'tblTempUsageDetail_20' ) end [2025-02-20 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:29:25] Production.INFO: ==30744== Releasing lock... [2025-02-20 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:29:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:30:06 [end_date_ymd] => 2025-02-20 16:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:30:06' and `end` < '2025-02-20 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-02-20 16:30:19] Production.INFO: count ==5121 [2025-02-20 16:30:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:30:06 - End Time 2025-02-20 16:30:06 [2025-02-20 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518971', 'tblTempUsageDetail_20' ) start [2025-02-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518971', 'tblTempUsageDetail_20' ) end [2025-02-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518971', 'tblTempVendorCDR_20' ) start [2025-02-20 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518971', 'tblTempVendorCDR_20' ) end [2025-02-20 16:30:21] Production.INFO: ProcessCDR(1,14518971,1,1,2) [2025-02-20 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518971', 'tblTempUsageDetail_20' ) start [2025-02-20 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518971', 'tblTempUsageDetail_20' ) end [2025-02-20 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:30:27] Production.INFO: ==30842== Releasing lock... [2025-02-20 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:30:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:31:06 [end_date_ymd] => 2025-02-20 16:31:06 [RateCDR] => 1 ) [2025-02-20 16: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-02-20 13:31:06' and `end` < '2025-02-20 16: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-02-20 16:31:19] Production.INFO: count ==5170 [2025-02-20 16:31:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:31:06 - End Time 2025-02-20 16:31:06 [2025-02-20 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518976', 'tblTempUsageDetail_20' ) start [2025-02-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518976', 'tblTempUsageDetail_20' ) end [2025-02-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518976', 'tblTempVendorCDR_20' ) start [2025-02-20 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518976', 'tblTempVendorCDR_20' ) end [2025-02-20 16:31:21] Production.INFO: ProcessCDR(1,14518976,1,1,2) [2025-02-20 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518976', 'tblTempUsageDetail_20' ) start [2025-02-20 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518976', 'tblTempUsageDetail_20' ) end [2025-02-20 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:31:26] Production.INFO: ==30932== Releasing lock... [2025-02-20 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:31:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:32:05 [end_date_ymd] => 2025-02-20 16:32:05 [RateCDR] => 1 ) [2025-02-20 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:32:05' and `end` < '2025-02-20 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:32:18] Production.INFO: count ==5181 [2025-02-20 16:32:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:32:05 - End Time 2025-02-20 16:32:05 [2025-02-20 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518981', 'tblTempUsageDetail_20' ) start [2025-02-20 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518981', 'tblTempUsageDetail_20' ) end [2025-02-20 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518981', 'tblTempVendorCDR_20' ) start [2025-02-20 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518981', 'tblTempVendorCDR_20' ) end [2025-02-20 16:32:20] Production.INFO: ProcessCDR(1,14518981,1,1,2) [2025-02-20 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518981', 'tblTempUsageDetail_20' ) start [2025-02-20 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518981', 'tblTempUsageDetail_20' ) end [2025-02-20 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:32:25] Production.INFO: ==31013== Releasing lock... [2025-02-20 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:32:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:33:05 [end_date_ymd] => 2025-02-20 16:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:33:05' and `end` < '2025-02-20 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-02-20 16:33:18] Production.INFO: count ==5180 [2025-02-20 16:33:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:33:05 - End Time 2025-02-20 16:33:05 [2025-02-20 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518986', 'tblTempUsageDetail_20' ) start [2025-02-20 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518986', 'tblTempUsageDetail_20' ) end [2025-02-20 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518986', 'tblTempVendorCDR_20' ) start [2025-02-20 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518986', 'tblTempVendorCDR_20' ) end [2025-02-20 16:33:21] Production.INFO: ProcessCDR(1,14518986,1,1,2) [2025-02-20 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518986', 'tblTempUsageDetail_20' ) start [2025-02-20 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518986', 'tblTempUsageDetail_20' ) end [2025-02-20 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:33:25] Production.INFO: ==31106== Releasing lock... [2025-02-20 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:33:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:34:05 [end_date_ymd] => 2025-02-20 16:34:05 [RateCDR] => 1 ) [2025-02-20 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:34:05' and `end` < '2025-02-20 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:34:18] Production.INFO: count ==5173 [2025-02-20 16:34:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:34:05 - End Time 2025-02-20 16:34:05 [2025-02-20 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518991', 'tblTempUsageDetail_20' ) start [2025-02-20 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518991', 'tblTempUsageDetail_20' ) end [2025-02-20 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518991', 'tblTempVendorCDR_20' ) start [2025-02-20 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518991', 'tblTempVendorCDR_20' ) end [2025-02-20 16:34:20] Production.INFO: ProcessCDR(1,14518991,1,1,2) [2025-02-20 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518991', 'tblTempUsageDetail_20' ) start [2025-02-20 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518991', 'tblTempUsageDetail_20' ) end [2025-02-20 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:34:25] Production.INFO: ==31192== Releasing lock... [2025-02-20 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:34:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:35:06 [end_date_ymd] => 2025-02-20 16:35:06 [RateCDR] => 1 ) [2025-02-20 16: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-02-20 13:35:06' and `end` < '2025-02-20 16: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-02-20 16:35:18] Production.INFO: count ==5174 [2025-02-20 16:35:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:35:06 - End Time 2025-02-20 16:35:06 [2025-02-20 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518996', 'tblTempUsageDetail_20' ) start [2025-02-20 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14518996', 'tblTempUsageDetail_20' ) end [2025-02-20 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518996', 'tblTempVendorCDR_20' ) start [2025-02-20 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14518996', 'tblTempVendorCDR_20' ) end [2025-02-20 16:35:21] Production.INFO: ProcessCDR(1,14518996,1,1,2) [2025-02-20 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14518996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14518996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14518996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14518996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518996', 'tblTempUsageDetail_20' ) start [2025-02-20 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14518996', 'tblTempUsageDetail_20' ) end [2025-02-20 16:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:35:25] Production.INFO: ==31286== Releasing lock... [2025-02-20 16:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:35:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:36:05 [end_date_ymd] => 2025-02-20 16:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:36:05' and `end` < '2025-02-20 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-02-20 16:36:18] Production.INFO: count ==5173 [2025-02-20 16:36:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:36:05 - End Time 2025-02-20 16:36:05 [2025-02-20 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519001', 'tblTempUsageDetail_20' ) start [2025-02-20 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519001', 'tblTempUsageDetail_20' ) end [2025-02-20 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519001', 'tblTempVendorCDR_20' ) start [2025-02-20 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519001', 'tblTempVendorCDR_20' ) end [2025-02-20 16:36:20] Production.INFO: ProcessCDR(1,14519001,1,1,2) [2025-02-20 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519001', 'tblTempUsageDetail_20' ) start [2025-02-20 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519001', 'tblTempUsageDetail_20' ) end [2025-02-20 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:36:25] Production.INFO: ==31368== Releasing lock... [2025-02-20 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:36:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:37:05 [end_date_ymd] => 2025-02-20 16:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:37:05' and `end` < '2025-02-20 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-02-20 16:37:18] Production.INFO: count ==5178 [2025-02-20 16:37:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:37:05 - End Time 2025-02-20 16:37:05 [2025-02-20 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519006', 'tblTempUsageDetail_20' ) start [2025-02-20 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519006', 'tblTempUsageDetail_20' ) end [2025-02-20 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519006', 'tblTempVendorCDR_20' ) start [2025-02-20 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519006', 'tblTempVendorCDR_20' ) end [2025-02-20 16:37:21] Production.INFO: ProcessCDR(1,14519006,1,1,2) [2025-02-20 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519006', 'tblTempUsageDetail_20' ) start [2025-02-20 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519006', 'tblTempUsageDetail_20' ) end [2025-02-20 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:37:25] Production.INFO: ==31463== Releasing lock... [2025-02-20 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:37:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:38:05 [end_date_ymd] => 2025-02-20 16:38:05 [RateCDR] => 1 ) [2025-02-20 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:38:05' and `end` < '2025-02-20 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-02-20 16:38:18] Production.INFO: count ==5159 [2025-02-20 16:38:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:38:05 - End Time 2025-02-20 16:38:05 [2025-02-20 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519011', 'tblTempUsageDetail_20' ) start [2025-02-20 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519011', 'tblTempUsageDetail_20' ) end [2025-02-20 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519011', 'tblTempVendorCDR_20' ) start [2025-02-20 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519011', 'tblTempVendorCDR_20' ) end [2025-02-20 16:38:20] Production.INFO: ProcessCDR(1,14519011,1,1,2) [2025-02-20 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519011', 'tblTempUsageDetail_20' ) start [2025-02-20 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519011', 'tblTempUsageDetail_20' ) end [2025-02-20 16:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:38:25] Production.INFO: ==31591== Releasing lock... [2025-02-20 16:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:38:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:39:05 [end_date_ymd] => 2025-02-20 16:39:05 [RateCDR] => 1 ) [2025-02-20 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:39:05' and `end` < '2025-02-20 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:39:18] Production.INFO: count ==5152 [2025-02-20 16:39:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:39:05 - End Time 2025-02-20 16:39:05 [2025-02-20 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519016', 'tblTempUsageDetail_20' ) start [2025-02-20 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519016', 'tblTempUsageDetail_20' ) end [2025-02-20 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519016', 'tblTempVendorCDR_20' ) start [2025-02-20 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519016', 'tblTempVendorCDR_20' ) end [2025-02-20 16:39:21] Production.INFO: ProcessCDR(1,14519016,1,1,2) [2025-02-20 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519016', 'tblTempUsageDetail_20' ) start [2025-02-20 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519016', 'tblTempUsageDetail_20' ) end [2025-02-20 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:39:25] Production.INFO: ==31680== Releasing lock... [2025-02-20 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:39:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:40:05 [end_date_ymd] => 2025-02-20 16:40:05 [RateCDR] => 1 ) [2025-02-20 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:40:05' and `end` < '2025-02-20 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:40:18] Production.INFO: count ==5165 [2025-02-20 16:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:40:05 - End Time 2025-02-20 16:40:05 [2025-02-20 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519022', 'tblTempUsageDetail_20' ) start [2025-02-20 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519022', 'tblTempUsageDetail_20' ) end [2025-02-20 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519022', 'tblTempVendorCDR_20' ) start [2025-02-20 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519022', 'tblTempVendorCDR_20' ) end [2025-02-20 16:40:21] Production.INFO: ProcessCDR(1,14519022,1,1,2) [2025-02-20 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519022', 'tblTempUsageDetail_20' ) start [2025-02-20 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519022', 'tblTempUsageDetail_20' ) end [2025-02-20 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:40:26] Production.INFO: ==31771== Releasing lock... [2025-02-20 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:40:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:41:05 [end_date_ymd] => 2025-02-20 16:41:05 [RateCDR] => 1 ) [2025-02-20 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:41:05' and `end` < '2025-02-20 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:41:18] Production.INFO: count ==5183 [2025-02-20 16:41:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:41:05 - End Time 2025-02-20 16:41:05 [2025-02-20 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519027', 'tblTempUsageDetail_20' ) start [2025-02-20 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519027', 'tblTempUsageDetail_20' ) end [2025-02-20 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519027', 'tblTempVendorCDR_20' ) start [2025-02-20 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519027', 'tblTempVendorCDR_20' ) end [2025-02-20 16:41:20] Production.INFO: ProcessCDR(1,14519027,1,1,2) [2025-02-20 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519027', 'tblTempUsageDetail_20' ) start [2025-02-20 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519027', 'tblTempUsageDetail_20' ) end [2025-02-20 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:41:25] Production.INFO: ==31867== Releasing lock... [2025-02-20 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:41:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:42:05 [end_date_ymd] => 2025-02-20 16:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:42:05' and `end` < '2025-02-20 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-02-20 16:42:18] Production.INFO: count ==5188 [2025-02-20 16:42:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:42:05 - End Time 2025-02-20 16:42:05 [2025-02-20 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519032', 'tblTempUsageDetail_20' ) start [2025-02-20 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519032', 'tblTempUsageDetail_20' ) end [2025-02-20 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519032', 'tblTempVendorCDR_20' ) start [2025-02-20 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519032', 'tblTempVendorCDR_20' ) end [2025-02-20 16:42:20] Production.INFO: ProcessCDR(1,14519032,1,1,2) [2025-02-20 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519032', 'tblTempUsageDetail_20' ) start [2025-02-20 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519032', 'tblTempUsageDetail_20' ) end [2025-02-20 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:42:25] Production.INFO: ==31955== Releasing lock... [2025-02-20 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:42:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:43:05 [end_date_ymd] => 2025-02-20 16:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:43:05' and `end` < '2025-02-20 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-02-20 16:43:18] Production.INFO: count ==5173 [2025-02-20 16:43:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:43:05 - End Time 2025-02-20 16:43:05 [2025-02-20 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519037', 'tblTempUsageDetail_20' ) start [2025-02-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519037', 'tblTempUsageDetail_20' ) end [2025-02-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519037', 'tblTempVendorCDR_20' ) start [2025-02-20 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519037', 'tblTempVendorCDR_20' ) end [2025-02-20 16:43:21] Production.INFO: ProcessCDR(1,14519037,1,1,2) [2025-02-20 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519037', 'tblTempUsageDetail_20' ) start [2025-02-20 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519037', 'tblTempUsageDetail_20' ) end [2025-02-20 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:43:26] Production.INFO: ==32036== Releasing lock... [2025-02-20 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:43:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:44:05 [end_date_ymd] => 2025-02-20 16:44:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:44:05' and `end` < '2025-02-20 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-02-20 16:44:18] Production.INFO: count ==5163 [2025-02-20 16:44:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:44:05 - End Time 2025-02-20 16:44:05 [2025-02-20 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519042', 'tblTempUsageDetail_20' ) start [2025-02-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519042', 'tblTempUsageDetail_20' ) end [2025-02-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519042', 'tblTempVendorCDR_20' ) start [2025-02-20 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519042', 'tblTempVendorCDR_20' ) end [2025-02-20 16:44:20] Production.INFO: ProcessCDR(1,14519042,1,1,2) [2025-02-20 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519042', 'tblTempUsageDetail_20' ) start [2025-02-20 16:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519042', 'tblTempUsageDetail_20' ) end [2025-02-20 16:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:44:25] Production.INFO: ==32129== Releasing lock... [2025-02-20 16:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:44:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:45:05 [end_date_ymd] => 2025-02-20 16:45:05 [RateCDR] => 1 ) [2025-02-20 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:45:05' and `end` < '2025-02-20 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:45:18] Production.INFO: count ==5159 [2025-02-20 16:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:45:05 - End Time 2025-02-20 16:45:05 [2025-02-20 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519047', 'tblTempUsageDetail_20' ) start [2025-02-20 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519047', 'tblTempUsageDetail_20' ) end [2025-02-20 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519047', 'tblTempVendorCDR_20' ) start [2025-02-20 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519047', 'tblTempVendorCDR_20' ) end [2025-02-20 16:45:20] Production.INFO: ProcessCDR(1,14519047,1,1,2) [2025-02-20 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519047', 'tblTempUsageDetail_20' ) start [2025-02-20 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519047', 'tblTempUsageDetail_20' ) end [2025-02-20 16:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:45:25] Production.INFO: ==32231== Releasing lock... [2025-02-20 16:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:45:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-20 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:46:05 [end_date_ymd] => 2025-02-20 16:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:46:05' and `end` < '2025-02-20 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-02-20 16:46:18] Production.INFO: count ==5150 [2025-02-20 16:46:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:46:05 - End Time 2025-02-20 16:46:05 [2025-02-20 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519052', 'tblTempUsageDetail_20' ) start [2025-02-20 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519052', 'tblTempUsageDetail_20' ) end [2025-02-20 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519052', 'tblTempVendorCDR_20' ) start [2025-02-20 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519052', 'tblTempVendorCDR_20' ) end [2025-02-20 16:46:20] Production.INFO: ProcessCDR(1,14519052,1,1,2) [2025-02-20 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519052', 'tblTempUsageDetail_20' ) start [2025-02-20 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519052', 'tblTempUsageDetail_20' ) end [2025-02-20 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:46:25] Production.INFO: ==32350== Releasing lock... [2025-02-20 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:46:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:47:05 [end_date_ymd] => 2025-02-20 16:47:05 [RateCDR] => 1 ) [2025-02-20 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:47:05' and `end` < '2025-02-20 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:47:18] Production.INFO: count ==5150 [2025-02-20 16:47:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:47:05 - End Time 2025-02-20 16:47:05 [2025-02-20 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519057', 'tblTempUsageDetail_20' ) start [2025-02-20 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519057', 'tblTempUsageDetail_20' ) end [2025-02-20 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519057', 'tblTempVendorCDR_20' ) start [2025-02-20 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519057', 'tblTempVendorCDR_20' ) end [2025-02-20 16:47:20] Production.INFO: ProcessCDR(1,14519057,1,1,2) [2025-02-20 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519057', 'tblTempUsageDetail_20' ) start [2025-02-20 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519057', 'tblTempUsageDetail_20' ) end [2025-02-20 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:47:25] Production.INFO: ==32470== Releasing lock... [2025-02-20 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:47:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:48:05 [end_date_ymd] => 2025-02-20 16:48:05 [RateCDR] => 1 ) [2025-02-20 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:48:05' and `end` < '2025-02-20 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:48:18] Production.INFO: count ==5147 [2025-02-20 16:48:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:48:05 - End Time 2025-02-20 16:48:05 [2025-02-20 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519062', 'tblTempUsageDetail_20' ) start [2025-02-20 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519062', 'tblTempUsageDetail_20' ) end [2025-02-20 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519062', 'tblTempVendorCDR_20' ) start [2025-02-20 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519062', 'tblTempVendorCDR_20' ) end [2025-02-20 16:48:20] Production.INFO: ProcessCDR(1,14519062,1,1,2) [2025-02-20 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519062', 'tblTempUsageDetail_20' ) start [2025-02-20 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519062', 'tblTempUsageDetail_20' ) end [2025-02-20 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:48:25] Production.INFO: ==32594== Releasing lock... [2025-02-20 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:48:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-20 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:49:05 [end_date_ymd] => 2025-02-20 16:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:49:05' and `end` < '2025-02-20 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-02-20 16:49:18] Production.INFO: count ==5124 [2025-02-20 16:49:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:49:05 - End Time 2025-02-20 16:49:05 [2025-02-20 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519067', 'tblTempUsageDetail_20' ) start [2025-02-20 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519067', 'tblTempUsageDetail_20' ) end [2025-02-20 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519067', 'tblTempVendorCDR_20' ) start [2025-02-20 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519067', 'tblTempVendorCDR_20' ) end [2025-02-20 16:49:20] Production.INFO: ProcessCDR(1,14519067,1,1,2) [2025-02-20 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519067', 'tblTempUsageDetail_20' ) start [2025-02-20 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519067', 'tblTempUsageDetail_20' ) end [2025-02-20 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:49:23] Production.INFO: ==32717== Releasing lock... [2025-02-20 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:49:23] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:50:06 [end_date_ymd] => 2025-02-20 16:50:06 [RateCDR] => 1 ) [2025-02-20 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:50:06' and `end` < '2025-02-20 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:50:19] Production.INFO: count ==5107 [2025-02-20 16:50:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:50:06 - End Time 2025-02-20 16:50:06 [2025-02-20 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519073', 'tblTempUsageDetail_20' ) start [2025-02-20 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519073', 'tblTempUsageDetail_20' ) end [2025-02-20 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519073', 'tblTempVendorCDR_20' ) start [2025-02-20 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519073', 'tblTempVendorCDR_20' ) end [2025-02-20 16:50:21] Production.INFO: ProcessCDR(1,14519073,1,1,2) [2025-02-20 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519073', 'tblTempUsageDetail_20' ) start [2025-02-20 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519073', 'tblTempUsageDetail_20' ) end [2025-02-20 16:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:50:26] Production.INFO: ==400== Releasing lock... [2025-02-20 16:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:50:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:51:05 [end_date_ymd] => 2025-02-20 16:51:05 [RateCDR] => 1 ) [2025-02-20 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:51:05' and `end` < '2025-02-20 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:51:18] Production.INFO: count ==5113 [2025-02-20 16:51:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:51:05 - End Time 2025-02-20 16:51:05 [2025-02-20 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519078', 'tblTempUsageDetail_20' ) start [2025-02-20 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519078', 'tblTempUsageDetail_20' ) end [2025-02-20 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519078', 'tblTempVendorCDR_20' ) start [2025-02-20 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519078', 'tblTempVendorCDR_20' ) end [2025-02-20 16:51:20] Production.INFO: ProcessCDR(1,14519078,1,1,2) [2025-02-20 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519078', 'tblTempUsageDetail_20' ) start [2025-02-20 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519078', 'tblTempUsageDetail_20' ) end [2025-02-20 16:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:51:25] Production.INFO: ==520== Releasing lock... [2025-02-20 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:51:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-20 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:52:05 [end_date_ymd] => 2025-02-20 16:52:05 [RateCDR] => 1 ) [2025-02-20 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:52:05' and `end` < '2025-02-20 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:52:18] Production.INFO: count ==5090 [2025-02-20 16:52:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:52:05 - End Time 2025-02-20 16:52:05 [2025-02-20 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519083', 'tblTempUsageDetail_20' ) start [2025-02-20 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519083', 'tblTempUsageDetail_20' ) end [2025-02-20 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519083', 'tblTempVendorCDR_20' ) start [2025-02-20 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519083', 'tblTempVendorCDR_20' ) end [2025-02-20 16:52:20] Production.INFO: ProcessCDR(1,14519083,1,1,2) [2025-02-20 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519083', 'tblTempUsageDetail_20' ) start [2025-02-20 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519083', 'tblTempUsageDetail_20' ) end [2025-02-20 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:52:25] Production.INFO: ==653== Releasing lock... [2025-02-20 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:52:25] Production.INFO: 66 MB #Memory Used# [2025-02-20 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:53:05 [end_date_ymd] => 2025-02-20 16:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:53:05' and `end` < '2025-02-20 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-02-20 16:53:18] Production.INFO: count ==5074 [2025-02-20 16:53:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:53:05 - End Time 2025-02-20 16:53:05 [2025-02-20 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519088', 'tblTempUsageDetail_20' ) start [2025-02-20 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519088', 'tblTempUsageDetail_20' ) end [2025-02-20 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519088', 'tblTempVendorCDR_20' ) start [2025-02-20 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519088', 'tblTempVendorCDR_20' ) end [2025-02-20 16:53:20] Production.INFO: ProcessCDR(1,14519088,1,1,2) [2025-02-20 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519088', 'tblTempUsageDetail_20' ) start [2025-02-20 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519088', 'tblTempUsageDetail_20' ) end [2025-02-20 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:53:25] Production.INFO: ==835== Releasing lock... [2025-02-20 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:53:25] Production.INFO: 66 MB #Memory Used# [2025-02-20 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:54:05 [end_date_ymd] => 2025-02-20 16:54:05 [RateCDR] => 1 ) [2025-02-20 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:54:05' and `end` < '2025-02-20 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:54:18] Production.INFO: count ==5052 [2025-02-20 16:54:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:54:05 - End Time 2025-02-20 16:54:05 [2025-02-20 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519093', 'tblTempUsageDetail_20' ) start [2025-02-20 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519093', 'tblTempUsageDetail_20' ) end [2025-02-20 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519093', 'tblTempVendorCDR_20' ) start [2025-02-20 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519093', 'tblTempVendorCDR_20' ) end [2025-02-20 16:54:20] Production.INFO: ProcessCDR(1,14519093,1,1,2) [2025-02-20 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519093', 'tblTempUsageDetail_20' ) start [2025-02-20 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519093', 'tblTempUsageDetail_20' ) end [2025-02-20 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:54:25] Production.INFO: ==958== Releasing lock... [2025-02-20 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:54:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:55:05 [end_date_ymd] => 2025-02-20 16:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:55:05' and `end` < '2025-02-20 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-02-20 16:55:18] Production.INFO: count ==5027 [2025-02-20 16:55:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:55:05 - End Time 2025-02-20 16:55:05 [2025-02-20 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519098', 'tblTempUsageDetail_20' ) start [2025-02-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519098', 'tblTempUsageDetail_20' ) end [2025-02-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519098', 'tblTempVendorCDR_20' ) start [2025-02-20 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519098', 'tblTempVendorCDR_20' ) end [2025-02-20 16:55:20] Production.INFO: ProcessCDR(1,14519098,1,1,2) [2025-02-20 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519098', 'tblTempUsageDetail_20' ) start [2025-02-20 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519098', 'tblTempUsageDetail_20' ) end [2025-02-20 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:55:25] Production.INFO: ==1078== Releasing lock... [2025-02-20 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:55:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:56:06 [end_date_ymd] => 2025-02-20 16:56:06 [RateCDR] => 1 ) [2025-02-20 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:56:06' and `end` < '2025-02-20 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:56:19] Production.INFO: count ==5016 [2025-02-20 16:56:21] Production.ERROR: pbx CDR StartTime 2025-02-20 13:56:06 - End Time 2025-02-20 16:56:06 [2025-02-20 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519103', 'tblTempUsageDetail_20' ) start [2025-02-20 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519103', 'tblTempUsageDetail_20' ) end [2025-02-20 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519103', 'tblTempVendorCDR_20' ) start [2025-02-20 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519103', 'tblTempVendorCDR_20' ) end [2025-02-20 16:56:21] Production.INFO: ProcessCDR(1,14519103,1,1,2) [2025-02-20 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519103', 'tblTempUsageDetail_20' ) start [2025-02-20 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519103', 'tblTempUsageDetail_20' ) end [2025-02-20 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:56:26] Production.INFO: ==1201== Releasing lock... [2025-02-20 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:56:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:57:04 [end_date_ymd] => 2025-02-20 16:57:04 [RateCDR] => 1 ) [2025-02-20 16:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:57:04' and `end` < '2025-02-20 16:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:57:18] Production.INFO: count ==5022 [2025-02-20 16:57:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:57:04 - End Time 2025-02-20 16:57:04 [2025-02-20 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519108', 'tblTempUsageDetail_20' ) start [2025-02-20 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519108', 'tblTempUsageDetail_20' ) end [2025-02-20 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519108', 'tblTempVendorCDR_20' ) start [2025-02-20 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519108', 'tblTempVendorCDR_20' ) end [2025-02-20 16:57:20] Production.INFO: ProcessCDR(1,14519108,1,1,2) [2025-02-20 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519108', 'tblTempUsageDetail_20' ) start [2025-02-20 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519108', 'tblTempUsageDetail_20' ) end [2025-02-20 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:57:25] Production.INFO: ==1335== Releasing lock... [2025-02-20 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:57:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:58:05 [end_date_ymd] => 2025-02-20 16:58:05 [RateCDR] => 1 ) [2025-02-20 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 13:58:05' and `end` < '2025-02-20 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 16:58:18] Production.INFO: count ==5016 [2025-02-20 16:58:20] Production.ERROR: pbx CDR StartTime 2025-02-20 13:58:05 - End Time 2025-02-20 16:58:05 [2025-02-20 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519113', 'tblTempUsageDetail_20' ) start [2025-02-20 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519113', 'tblTempUsageDetail_20' ) end [2025-02-20 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519113', 'tblTempVendorCDR_20' ) start [2025-02-20 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519113', 'tblTempVendorCDR_20' ) end [2025-02-20 16:58:20] Production.INFO: ProcessCDR(1,14519113,1,1,2) [2025-02-20 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519113', 'tblTempUsageDetail_20' ) start [2025-02-20 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519113', 'tblTempUsageDetail_20' ) end [2025-02-20 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:58:25] Production.INFO: ==1453== Releasing lock... [2025-02-20 16:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:58:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 13:59:05 [end_date_ymd] => 2025-02-20 16:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 13:59:05' and `end` < '2025-02-20 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-02-20 16:59:17] Production.INFO: count ==5022 [2025-02-20 16:59:19] Production.ERROR: pbx CDR StartTime 2025-02-20 13:59:05 - End Time 2025-02-20 16:59:05 [2025-02-20 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519118', 'tblTempUsageDetail_20' ) start [2025-02-20 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519118', 'tblTempUsageDetail_20' ) end [2025-02-20 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519118', 'tblTempVendorCDR_20' ) start [2025-02-20 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519118', 'tblTempVendorCDR_20' ) end [2025-02-20 16:59:20] Production.INFO: ProcessCDR(1,14519118,1,1,2) [2025-02-20 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 16:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519118', 'tblTempUsageDetail_20' ) start [2025-02-20 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519118', 'tblTempUsageDetail_20' ) end [2025-02-20 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 16:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 16:59:25] Production.INFO: ==1613== Releasing lock... [2025-02-20 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 16:59:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-20 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:00:07 [end_date_ymd] => 2025-02-20 17:00:07 [RateCDR] => 1 ) [2025-02-20 17: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-02-20 14:00:07' and `end` < '2025-02-20 17: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-02-20 17:00:20] Production.INFO: count ==5027 [2025-02-20 17:00:22] Production.ERROR: pbx CDR StartTime 2025-02-20 14:00:07 - End Time 2025-02-20 17:00:07 [2025-02-20 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519124', 'tblTempUsageDetail_20' ) start [2025-02-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519124', 'tblTempUsageDetail_20' ) end [2025-02-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519124', 'tblTempVendorCDR_20' ) start [2025-02-20 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519124', 'tblTempVendorCDR_20' ) end [2025-02-20 17:00:22] Production.INFO: ProcessCDR(1,14519124,1,1,2) [2025-02-20 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519124', 'tblTempUsageDetail_20' ) start [2025-02-20 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519124', 'tblTempUsageDetail_20' ) end [2025-02-20 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:00:27] Production.INFO: ==1732== Releasing lock... [2025-02-20 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-20 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:01:05 [end_date_ymd] => 2025-02-20 17:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:01:05' and `end` < '2025-02-20 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-02-20 17:01:18] Production.INFO: count ==4966 [2025-02-20 17:01:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:01:05 - End Time 2025-02-20 17:01:05 [2025-02-20 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519129', 'tblTempUsageDetail_20' ) start [2025-02-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519129', 'tblTempUsageDetail_20' ) end [2025-02-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519129', 'tblTempVendorCDR_20' ) start [2025-02-20 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519129', 'tblTempVendorCDR_20' ) end [2025-02-20 17:01:21] Production.INFO: ProcessCDR(1,14519129,1,1,2) [2025-02-20 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519129', 'tblTempUsageDetail_20' ) start [2025-02-20 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519129', 'tblTempUsageDetail_20' ) end [2025-02-20 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:01:26] Production.INFO: ==1872== Releasing lock... [2025-02-20 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:01:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-20 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:02:05 [end_date_ymd] => 2025-02-20 17:02:05 [RateCDR] => 1 ) [2025-02-20 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:02:05' and `end` < '2025-02-20 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:02:18] Production.INFO: count ==4935 [2025-02-20 17:02:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:02:05 - End Time 2025-02-20 17:02:05 [2025-02-20 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519134', 'tblTempUsageDetail_20' ) start [2025-02-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519134', 'tblTempUsageDetail_20' ) end [2025-02-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519134', 'tblTempVendorCDR_20' ) start [2025-02-20 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519134', 'tblTempVendorCDR_20' ) end [2025-02-20 17:02:20] Production.INFO: ProcessCDR(1,14519134,1,1,2) [2025-02-20 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519134', 'tblTempUsageDetail_20' ) start [2025-02-20 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519134', 'tblTempUsageDetail_20' ) end [2025-02-20 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:02:25] Production.INFO: ==1991== Releasing lock... [2025-02-20 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:02:25] Production.INFO: 65 MB #Memory Used# [2025-02-20 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:03:05 [end_date_ymd] => 2025-02-20 17:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:03:05' and `end` < '2025-02-20 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-02-20 17:03:18] Production.INFO: count ==4907 [2025-02-20 17:03:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:03:05 - End Time 2025-02-20 17:03:05 [2025-02-20 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519139', 'tblTempUsageDetail_20' ) start [2025-02-20 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519139', 'tblTempUsageDetail_20' ) end [2025-02-20 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519139', 'tblTempVendorCDR_20' ) start [2025-02-20 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519139', 'tblTempVendorCDR_20' ) end [2025-02-20 17:03:20] Production.INFO: ProcessCDR(1,14519139,1,1,2) [2025-02-20 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519139', 'tblTempUsageDetail_20' ) start [2025-02-20 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519139', 'tblTempUsageDetail_20' ) end [2025-02-20 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:03:25] Production.INFO: ==2094== Releasing lock... [2025-02-20 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:03:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:04:06 [end_date_ymd] => 2025-02-20 17:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:04:06' and `end` < '2025-02-20 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-02-20 17:04:18] Production.INFO: count ==4916 [2025-02-20 17:04:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:04:06 - End Time 2025-02-20 17:04:06 [2025-02-20 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519144', 'tblTempUsageDetail_20' ) start [2025-02-20 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519144', 'tblTempUsageDetail_20' ) end [2025-02-20 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519144', 'tblTempVendorCDR_20' ) start [2025-02-20 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519144', 'tblTempVendorCDR_20' ) end [2025-02-20 17:04:21] Production.INFO: ProcessCDR(1,14519144,1,1,2) [2025-02-20 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519144', 'tblTempUsageDetail_20' ) start [2025-02-20 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519144', 'tblTempUsageDetail_20' ) end [2025-02-20 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:04:25] Production.INFO: ==2182== Releasing lock... [2025-02-20 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:04:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:05:05 [end_date_ymd] => 2025-02-20 17:05:05 [RateCDR] => 1 ) [2025-02-20 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:05:05' and `end` < '2025-02-20 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:05:18] Production.INFO: count ==4912 [2025-02-20 17:05:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:05:05 - End Time 2025-02-20 17:05:05 [2025-02-20 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519149', 'tblTempUsageDetail_20' ) start [2025-02-20 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519149', 'tblTempUsageDetail_20' ) end [2025-02-20 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519149', 'tblTempVendorCDR_20' ) start [2025-02-20 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519149', 'tblTempVendorCDR_20' ) end [2025-02-20 17:05:20] Production.INFO: ProcessCDR(1,14519149,1,1,2) [2025-02-20 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519149', 'tblTempUsageDetail_20' ) start [2025-02-20 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519149', 'tblTempUsageDetail_20' ) end [2025-02-20 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:05:25] Production.INFO: ==2264== Releasing lock... [2025-02-20 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:05:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:06:05 [end_date_ymd] => 2025-02-20 17:06:05 [RateCDR] => 1 ) [2025-02-20 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:06:05' and `end` < '2025-02-20 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:06:18] Production.INFO: count ==4909 [2025-02-20 17:06:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:06:05 - End Time 2025-02-20 17:06:05 [2025-02-20 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519154', 'tblTempUsageDetail_20' ) start [2025-02-20 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519154', 'tblTempUsageDetail_20' ) end [2025-02-20 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519154', 'tblTempVendorCDR_20' ) start [2025-02-20 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519154', 'tblTempVendorCDR_20' ) end [2025-02-20 17:06:20] Production.INFO: ProcessCDR(1,14519154,1,1,2) [2025-02-20 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519154', 'tblTempUsageDetail_20' ) start [2025-02-20 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519154', 'tblTempUsageDetail_20' ) end [2025-02-20 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:06:25] Production.INFO: ==2347== Releasing lock... [2025-02-20 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:06:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-20 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:07:06 [end_date_ymd] => 2025-02-20 17:07:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:07:06' and `end` < '2025-02-20 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-02-20 17:07:19] Production.INFO: count ==4866 [2025-02-20 17:07:21] Production.ERROR: pbx CDR StartTime 2025-02-20 14:07:06 - End Time 2025-02-20 17:07:06 [2025-02-20 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519159', 'tblTempUsageDetail_20' ) start [2025-02-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519159', 'tblTempUsageDetail_20' ) end [2025-02-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519159', 'tblTempVendorCDR_20' ) start [2025-02-20 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519159', 'tblTempVendorCDR_20' ) end [2025-02-20 17:07:21] Production.INFO: ProcessCDR(1,14519159,1,1,2) [2025-02-20 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519159', 'tblTempUsageDetail_20' ) start [2025-02-20 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519159', 'tblTempUsageDetail_20' ) end [2025-02-20 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:07:26] Production.INFO: ==2429== Releasing lock... [2025-02-20 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:07:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-20 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:08:04 [end_date_ymd] => 2025-02-20 17:08:04 [RateCDR] => 1 ) [2025-02-20 17:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:08:04' and `end` < '2025-02-20 17:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:08:17] Production.INFO: count ==4880 [2025-02-20 17:08:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:08:04 - End Time 2025-02-20 17:08:04 [2025-02-20 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519164', 'tblTempUsageDetail_20' ) start [2025-02-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519164', 'tblTempUsageDetail_20' ) end [2025-02-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519164', 'tblTempVendorCDR_20' ) start [2025-02-20 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519164', 'tblTempVendorCDR_20' ) end [2025-02-20 17:08:19] Production.INFO: ProcessCDR(1,14519164,1,1,2) [2025-02-20 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519164', 'tblTempUsageDetail_20' ) start [2025-02-20 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519164', 'tblTempUsageDetail_20' ) end [2025-02-20 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:08:24] Production.INFO: ==2513== Releasing lock... [2025-02-20 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:08:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-20 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:09:05 [end_date_ymd] => 2025-02-20 17:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:09:05' and `end` < '2025-02-20 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-02-20 17:09:19] Production.INFO: count ==4864 [2025-02-20 17:09:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:09:05 - End Time 2025-02-20 17:09:05 [2025-02-20 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519169', 'tblTempUsageDetail_20' ) start [2025-02-20 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519169', 'tblTempUsageDetail_20' ) end [2025-02-20 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519169', 'tblTempVendorCDR_20' ) start [2025-02-20 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519169', 'tblTempVendorCDR_20' ) end [2025-02-20 17:09:21] Production.INFO: ProcessCDR(1,14519169,1,1,2) [2025-02-20 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519169', 'tblTempUsageDetail_20' ) start [2025-02-20 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519169', 'tblTempUsageDetail_20' ) end [2025-02-20 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:09:25] Production.INFO: ==2632== Releasing lock... [2025-02-20 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:09:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-20 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:10:06 [end_date_ymd] => 2025-02-20 17:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:10:06' and `end` < '2025-02-20 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-02-20 17:10:19] Production.INFO: count ==4817 [2025-02-20 17:10:21] Production.ERROR: pbx CDR StartTime 2025-02-20 14:10:06 - End Time 2025-02-20 17:10:06 [2025-02-20 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519175', 'tblTempUsageDetail_20' ) start [2025-02-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519175', 'tblTempUsageDetail_20' ) end [2025-02-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519175', 'tblTempVendorCDR_20' ) start [2025-02-20 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519175', 'tblTempVendorCDR_20' ) end [2025-02-20 17:10:22] Production.INFO: ProcessCDR(1,14519175,1,1,2) [2025-02-20 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519175', 'tblTempUsageDetail_20' ) start [2025-02-20 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519175', 'tblTempUsageDetail_20' ) end [2025-02-20 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:10:26] Production.INFO: ==2712== Releasing lock... [2025-02-20 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:10:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:11:06 [end_date_ymd] => 2025-02-20 17:11:06 [RateCDR] => 1 ) [2025-02-20 17: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-02-20 14:11:06' and `end` < '2025-02-20 17: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-02-20 17:11:19] Production.INFO: count ==4814 [2025-02-20 17:11:21] Production.ERROR: pbx CDR StartTime 2025-02-20 14:11:06 - End Time 2025-02-20 17:11:06 [2025-02-20 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519180', 'tblTempUsageDetail_20' ) start [2025-02-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519180', 'tblTempUsageDetail_20' ) end [2025-02-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519180', 'tblTempVendorCDR_20' ) start [2025-02-20 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519180', 'tblTempVendorCDR_20' ) end [2025-02-20 17:11:21] Production.INFO: ProcessCDR(1,14519180,1,1,2) [2025-02-20 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519180', 'tblTempUsageDetail_20' ) start [2025-02-20 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519180', 'tblTempUsageDetail_20' ) end [2025-02-20 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:11:26] Production.INFO: ==2795== Releasing lock... [2025-02-20 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:11:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:12:06 [end_date_ymd] => 2025-02-20 17:12:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:12:06' and `end` < '2025-02-20 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-02-20 17:12:19] Production.INFO: count ==4810 [2025-02-20 17:12:21] Production.ERROR: pbx CDR StartTime 2025-02-20 14:12:06 - End Time 2025-02-20 17:12:06 [2025-02-20 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519185', 'tblTempUsageDetail_20' ) start [2025-02-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519185', 'tblTempUsageDetail_20' ) end [2025-02-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519185', 'tblTempVendorCDR_20' ) start [2025-02-20 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519185', 'tblTempVendorCDR_20' ) end [2025-02-20 17:12:21] Production.INFO: ProcessCDR(1,14519185,1,1,2) [2025-02-20 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519185', 'tblTempUsageDetail_20' ) start [2025-02-20 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519185', 'tblTempUsageDetail_20' ) end [2025-02-20 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:12:26] Production.INFO: ==2873== Releasing lock... [2025-02-20 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:12:26] Production.INFO: 64 MB #Memory Used# [2025-02-20 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:13:05 [end_date_ymd] => 2025-02-20 17:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:13:05' and `end` < '2025-02-20 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-02-20 17:13:18] Production.INFO: count ==4774 [2025-02-20 17:13:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:13:05 - End Time 2025-02-20 17:13:05 [2025-02-20 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519190', 'tblTempUsageDetail_20' ) start [2025-02-20 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519190', 'tblTempUsageDetail_20' ) end [2025-02-20 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519190', 'tblTempVendorCDR_20' ) start [2025-02-20 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519190', 'tblTempVendorCDR_20' ) end [2025-02-20 17:13:20] Production.INFO: ProcessCDR(1,14519190,1,1,2) [2025-02-20 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519190', 'tblTempUsageDetail_20' ) start [2025-02-20 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519190', 'tblTempUsageDetail_20' ) end [2025-02-20 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:13:25] Production.INFO: ==2952== Releasing lock... [2025-02-20 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:13:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:14:05 [end_date_ymd] => 2025-02-20 17:14:05 [RateCDR] => 1 ) [2025-02-20 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:14:05' and `end` < '2025-02-20 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:14:18] Production.INFO: count ==4765 [2025-02-20 17:14:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:14:05 - End Time 2025-02-20 17:14:05 [2025-02-20 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519195', 'tblTempUsageDetail_20' ) start [2025-02-20 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519195', 'tblTempUsageDetail_20' ) end [2025-02-20 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519195', 'tblTempVendorCDR_20' ) start [2025-02-20 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519195', 'tblTempVendorCDR_20' ) end [2025-02-20 17:14:20] Production.INFO: ProcessCDR(1,14519195,1,1,2) [2025-02-20 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519195', 'tblTempUsageDetail_20' ) start [2025-02-20 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519195', 'tblTempUsageDetail_20' ) end [2025-02-20 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:14:24] Production.INFO: ==3028== Releasing lock... [2025-02-20 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:14:24] Production.INFO: 63.75 MB #Memory Used# [2025-02-20 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:15:06 [end_date_ymd] => 2025-02-20 17:15:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:15:06' and `end` < '2025-02-20 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-02-20 17:15:18] Production.INFO: count ==4759 [2025-02-20 17:15:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:15:06 - End Time 2025-02-20 17:15:06 [2025-02-20 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519200', 'tblTempUsageDetail_20' ) start [2025-02-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519200', 'tblTempUsageDetail_20' ) end [2025-02-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519200', 'tblTempVendorCDR_20' ) start [2025-02-20 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519200', 'tblTempVendorCDR_20' ) end [2025-02-20 17:15:20] Production.INFO: ProcessCDR(1,14519200,1,1,2) [2025-02-20 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519200', 'tblTempUsageDetail_20' ) start [2025-02-20 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519200', 'tblTempUsageDetail_20' ) end [2025-02-20 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:15:25] Production.INFO: ==3109== Releasing lock... [2025-02-20 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:15:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-20 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:16:05 [end_date_ymd] => 2025-02-20 17:16:05 [RateCDR] => 1 ) [2025-02-20 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:16:05' and `end` < '2025-02-20 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:16:18] Production.INFO: count ==4732 [2025-02-20 17:16:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:16:05 - End Time 2025-02-20 17:16:05 [2025-02-20 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519205', 'tblTempUsageDetail_20' ) start [2025-02-20 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519205', 'tblTempUsageDetail_20' ) end [2025-02-20 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519205', 'tblTempVendorCDR_20' ) start [2025-02-20 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519205', 'tblTempVendorCDR_20' ) end [2025-02-20 17:16:20] Production.INFO: ProcessCDR(1,14519205,1,1,2) [2025-02-20 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519205', 'tblTempUsageDetail_20' ) start [2025-02-20 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519205', 'tblTempUsageDetail_20' ) end [2025-02-20 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:16:23] Production.INFO: ==3185== Releasing lock... [2025-02-20 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:16:23] Production.INFO: 63.5 MB #Memory Used# [2025-02-20 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:17:05 [end_date_ymd] => 2025-02-20 17:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:17:05' and `end` < '2025-02-20 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-02-20 17:17:18] Production.INFO: count ==4720 [2025-02-20 17:17:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:17:05 - End Time 2025-02-20 17:17:05 [2025-02-20 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519210', 'tblTempUsageDetail_20' ) start [2025-02-20 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519210', 'tblTempUsageDetail_20' ) end [2025-02-20 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519210', 'tblTempVendorCDR_20' ) start [2025-02-20 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519210', 'tblTempVendorCDR_20' ) end [2025-02-20 17:17:20] Production.INFO: ProcessCDR(1,14519210,1,1,2) [2025-02-20 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519210', 'tblTempUsageDetail_20' ) start [2025-02-20 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519210', 'tblTempUsageDetail_20' ) end [2025-02-20 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:17:25] Production.INFO: ==3266== Releasing lock... [2025-02-20 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:17:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-20 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:18:05 [end_date_ymd] => 2025-02-20 17:18:05 [RateCDR] => 1 ) [2025-02-20 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:18:05' and `end` < '2025-02-20 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:18:18] Production.INFO: count ==4692 [2025-02-20 17:18:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:18:05 - End Time 2025-02-20 17:18:05 [2025-02-20 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519215', 'tblTempUsageDetail_20' ) start [2025-02-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519215', 'tblTempUsageDetail_20' ) end [2025-02-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519215', 'tblTempVendorCDR_20' ) start [2025-02-20 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519215', 'tblTempVendorCDR_20' ) end [2025-02-20 17:18:20] Production.INFO: ProcessCDR(1,14519215,1,1,2) [2025-02-20 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519215', 'tblTempUsageDetail_20' ) start [2025-02-20 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519215', 'tblTempUsageDetail_20' ) end [2025-02-20 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:18:25] Production.INFO: ==3370== Releasing lock... [2025-02-20 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:18:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-20 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:19:05 [end_date_ymd] => 2025-02-20 17:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:19:05' and `end` < '2025-02-20 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-02-20 17:19:18] Production.INFO: count ==4687 [2025-02-20 17:19:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:19:05 - End Time 2025-02-20 17:19:05 [2025-02-20 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519220', 'tblTempUsageDetail_20' ) start [2025-02-20 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519220', 'tblTempUsageDetail_20' ) end [2025-02-20 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519220', 'tblTempVendorCDR_20' ) start [2025-02-20 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519220', 'tblTempVendorCDR_20' ) end [2025-02-20 17:19:20] Production.INFO: ProcessCDR(1,14519220,1,1,2) [2025-02-20 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519220', 'tblTempUsageDetail_20' ) start [2025-02-20 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519220', 'tblTempUsageDetail_20' ) end [2025-02-20 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:19:25] Production.INFO: ==3482== Releasing lock... [2025-02-20 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:19:25] Production.INFO: 63 MB #Memory Used# [2025-02-20 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:20:06 [end_date_ymd] => 2025-02-20 17:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:20:06' and `end` < '2025-02-20 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-02-20 17:20:19] Production.INFO: count ==4618 [2025-02-20 17:20:21] Production.ERROR: pbx CDR StartTime 2025-02-20 14:20:06 - End Time 2025-02-20 17:20:06 [2025-02-20 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519226', 'tblTempUsageDetail_20' ) start [2025-02-20 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519226', 'tblTempUsageDetail_20' ) end [2025-02-20 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519226', 'tblTempVendorCDR_20' ) start [2025-02-20 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519226', 'tblTempVendorCDR_20' ) end [2025-02-20 17:20:21] Production.INFO: ProcessCDR(1,14519226,1,1,2) [2025-02-20 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519226', 'tblTempUsageDetail_20' ) start [2025-02-20 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519226', 'tblTempUsageDetail_20' ) end [2025-02-20 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:20:26] Production.INFO: ==3591== Releasing lock... [2025-02-20 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:20:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-20 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:21:05 [end_date_ymd] => 2025-02-20 17:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:21:05' and `end` < '2025-02-20 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-02-20 17:21:18] Production.INFO: count ==4529 [2025-02-20 17:21:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:21:05 - End Time 2025-02-20 17:21:05 [2025-02-20 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519231', 'tblTempUsageDetail_20' ) start [2025-02-20 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519231', 'tblTempUsageDetail_20' ) end [2025-02-20 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519231', 'tblTempVendorCDR_20' ) start [2025-02-20 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519231', 'tblTempVendorCDR_20' ) end [2025-02-20 17:21:20] Production.INFO: ProcessCDR(1,14519231,1,1,2) [2025-02-20 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519231', 'tblTempUsageDetail_20' ) start [2025-02-20 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519231', 'tblTempUsageDetail_20' ) end [2025-02-20 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:21:23] Production.INFO: ==3703== Releasing lock... [2025-02-20 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:21:23] Production.INFO: 62 MB #Memory Used# [2025-02-20 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:22:05 [end_date_ymd] => 2025-02-20 17:22:05 [RateCDR] => 1 ) [2025-02-20 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:22:05' and `end` < '2025-02-20 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:22:18] Production.INFO: count ==4479 [2025-02-20 17:22:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:22:05 - End Time 2025-02-20 17:22:05 [2025-02-20 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519236', 'tblTempUsageDetail_20' ) start [2025-02-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519236', 'tblTempUsageDetail_20' ) end [2025-02-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519236', 'tblTempVendorCDR_20' ) start [2025-02-20 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519236', 'tblTempVendorCDR_20' ) end [2025-02-20 17:22:19] Production.INFO: ProcessCDR(1,14519236,1,1,2) [2025-02-20 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519236', 'tblTempUsageDetail_20' ) start [2025-02-20 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519236', 'tblTempUsageDetail_20' ) end [2025-02-20 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:22:24] Production.INFO: ==3810== Releasing lock... [2025-02-20 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:22:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-20 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:23:05 [end_date_ymd] => 2025-02-20 17:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:23:05' and `end` < '2025-02-20 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-02-20 17:23:18] Production.INFO: count ==4438 [2025-02-20 17:23:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:23:05 - End Time 2025-02-20 17:23:05 [2025-02-20 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519241', 'tblTempUsageDetail_20' ) start [2025-02-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519241', 'tblTempUsageDetail_20' ) end [2025-02-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519241', 'tblTempVendorCDR_20' ) start [2025-02-20 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519241', 'tblTempVendorCDR_20' ) end [2025-02-20 17:23:19] Production.INFO: ProcessCDR(1,14519241,1,1,2) [2025-02-20 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519241', 'tblTempUsageDetail_20' ) start [2025-02-20 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519241', 'tblTempUsageDetail_20' ) end [2025-02-20 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:23:23] Production.INFO: ==3926== Releasing lock... [2025-02-20 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:23:23] Production.INFO: 61.25 MB #Memory Used# [2025-02-20 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:24:05 [end_date_ymd] => 2025-02-20 17:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:24:05' and `end` < '2025-02-20 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-02-20 17:24:18] Production.INFO: count ==4417 [2025-02-20 17:24:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:24:05 - End Time 2025-02-20 17:24:05 [2025-02-20 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519246', 'tblTempUsageDetail_20' ) start [2025-02-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519246', 'tblTempUsageDetail_20' ) end [2025-02-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519246', 'tblTempVendorCDR_20' ) start [2025-02-20 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519246', 'tblTempVendorCDR_20' ) end [2025-02-20 17:24:20] Production.INFO: ProcessCDR(1,14519246,1,1,2) [2025-02-20 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519246', 'tblTempUsageDetail_20' ) start [2025-02-20 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519246', 'tblTempUsageDetail_20' ) end [2025-02-20 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:24:24] Production.INFO: ==4106== Releasing lock... [2025-02-20 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:24:24] Production.INFO: 61 MB #Memory Used# [2025-02-20 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:25:05 [end_date_ymd] => 2025-02-20 17:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:25:05' and `end` < '2025-02-20 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-02-20 17:25:19] Production.INFO: count ==4394 [2025-02-20 17:25:57] Production.ERROR: pbx CDR StartTime 2025-02-20 14:25:05 - End Time 2025-02-20 17:25:05 [2025-02-20 17:25:57] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:25:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519251', 'tblTempUsageDetail_20' ) start [2025-02-20 17:25:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519251', 'tblTempUsageDetail_20' ) end [2025-02-20 17:25:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519251', 'tblTempVendorCDR_20' ) start [2025-02-20 17:25:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519251', 'tblTempVendorCDR_20' ) end [2025-02-20 17:25:57] Production.INFO: ProcessCDR(1,14519251,1,1,2) [2025-02-20 17:25:57] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:26:03] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:26:03] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519251', 'tblTempUsageDetail_20' ) start [2025-02-20 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519251', 'tblTempUsageDetail_20' ) end [2025-02-20 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:26:33] Production.INFO: ==4236== Releasing lock... [2025-02-20 17:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:26:33] Production.INFO: 61 MB #Memory Used# [2025-02-20 17:27:32] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:27:32 [end_date_ymd] => 2025-02-20 17:27:32 [RateCDR] => 1 ) [2025-02-20 17:27:32] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:27:32' and `end` < '2025-02-20 17:27:32' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:27:44] Production.INFO: count ==4366 [2025-02-20 17:28:12] Production.ERROR: pbx CDR StartTime 2025-02-20 14:27:32 - End Time 2025-02-20 17:27:32 [2025-02-20 17:28:12] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:28:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519259', 'tblTempUsageDetail_20' ) start [2025-02-20 17:28:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519259', 'tblTempUsageDetail_20' ) end [2025-02-20 17:28:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519259', 'tblTempVendorCDR_20' ) start [2025-02-20 17:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519259', 'tblTempVendorCDR_20' ) end [2025-02-20 17:28:16] Production.INFO: ProcessCDR(1,14519259,1,1,2) [2025-02-20 17:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:28:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:28:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519259', 'tblTempUsageDetail_20' ) start [2025-02-20 17:28:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519259', 'tblTempUsageDetail_20' ) end [2025-02-20 17:28:39] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:28:39] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:28:41] Production.INFO: ==4484== Releasing lock... [2025-02-20 17:28:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:28:41] Production.INFO: 60.75 MB #Memory Used# [2025-02-20 17:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:29:18 [end_date_ymd] => 2025-02-20 17:29:18 [RateCDR] => 1 ) [2025-02-20 17:29:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:29:18' and `end` < '2025-02-20 17:29:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:29:30] Production.INFO: count ==4358 [2025-02-20 17:30:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:29:18 - End Time 2025-02-20 17:29:18 [2025-02-20 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519267', 'tblTempUsageDetail_20' ) start [2025-02-20 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519267', 'tblTempUsageDetail_20' ) end [2025-02-20 17:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519267', 'tblTempVendorCDR_20' ) start [2025-02-20 17:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519267', 'tblTempVendorCDR_20' ) end [2025-02-20 17:30:25] Production.INFO: ProcessCDR(1,14519267,1,1,2) [2025-02-20 17:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:30:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:30:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519267', 'tblTempUsageDetail_20' ) start [2025-02-20 17:30:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519267', 'tblTempUsageDetail_20' ) end [2025-02-20 17:30:54] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:30:54] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:30:58] Production.INFO: ==4768== Releasing lock... [2025-02-20 17:30:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:30:58] Production.INFO: 60.75 MB #Memory Used# [2025-02-20 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:31:05 [end_date_ymd] => 2025-02-20 17:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:31:05' and `end` < '2025-02-20 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-02-20 17:31:18] Production.INFO: count ==4287 [2025-02-20 17:31:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:31:05 - End Time 2025-02-20 17:31:05 [2025-02-20 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519276', 'tblTempUsageDetail_20' ) start [2025-02-20 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519276', 'tblTempUsageDetail_20' ) end [2025-02-20 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519276', 'tblTempVendorCDR_20' ) start [2025-02-20 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519276', 'tblTempVendorCDR_20' ) end [2025-02-20 17:31:20] Production.INFO: ProcessCDR(1,14519276,1,1,2) [2025-02-20 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519276', 'tblTempUsageDetail_20' ) start [2025-02-20 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519276', 'tblTempUsageDetail_20' ) end [2025-02-20 17:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:31:25] Production.INFO: ==5011== Releasing lock... [2025-02-20 17:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:31:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-20 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:32:05 [end_date_ymd] => 2025-02-20 17:32:05 [RateCDR] => 1 ) [2025-02-20 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:32:05' and `end` < '2025-02-20 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:32:18] Production.INFO: count ==4290 [2025-02-20 17:32:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:32:05 - End Time 2025-02-20 17:32:05 [2025-02-20 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519281', 'tblTempUsageDetail_20' ) start [2025-02-20 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519281', 'tblTempUsageDetail_20' ) end [2025-02-20 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519281', 'tblTempVendorCDR_20' ) start [2025-02-20 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519281', 'tblTempVendorCDR_20' ) end [2025-02-20 17:32:20] Production.INFO: ProcessCDR(1,14519281,1,1,2) [2025-02-20 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519281', 'tblTempUsageDetail_20' ) start [2025-02-20 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519281', 'tblTempUsageDetail_20' ) end [2025-02-20 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:32:25] Production.INFO: ==5131== Releasing lock... [2025-02-20 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:32:25] Production.INFO: 60 MB #Memory Used# [2025-02-20 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:33:05 [end_date_ymd] => 2025-02-20 17:33:05 [RateCDR] => 1 ) [2025-02-20 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:33:05' and `end` < '2025-02-20 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:33:18] Production.INFO: count ==4283 [2025-02-20 17:33:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:33:05 - End Time 2025-02-20 17:33:05 [2025-02-20 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519286', 'tblTempUsageDetail_20' ) start [2025-02-20 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519286', 'tblTempUsageDetail_20' ) end [2025-02-20 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519286', 'tblTempVendorCDR_20' ) start [2025-02-20 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519286', 'tblTempVendorCDR_20' ) end [2025-02-20 17:33:19] Production.INFO: ProcessCDR(1,14519286,1,1,2) [2025-02-20 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519286', 'tblTempUsageDetail_20' ) start [2025-02-20 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519286', 'tblTempUsageDetail_20' ) end [2025-02-20 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:33:24] Production.INFO: ==5246== Releasing lock... [2025-02-20 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:33:24] Production.INFO: 60 MB #Memory Used# [2025-02-20 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:34:06 [end_date_ymd] => 2025-02-20 17:34:06 [RateCDR] => 1 ) [2025-02-20 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:34:06' and `end` < '2025-02-20 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:34:18] Production.INFO: count ==4270 [2025-02-20 17:34:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:34:06 - End Time 2025-02-20 17:34:06 [2025-02-20 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519291', 'tblTempUsageDetail_20' ) start [2025-02-20 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519291', 'tblTempUsageDetail_20' ) end [2025-02-20 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519291', 'tblTempVendorCDR_20' ) start [2025-02-20 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519291', 'tblTempVendorCDR_20' ) end [2025-02-20 17:34:20] Production.INFO: ProcessCDR(1,14519291,1,1,2) [2025-02-20 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519291', 'tblTempUsageDetail_20' ) start [2025-02-20 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519291', 'tblTempUsageDetail_20' ) end [2025-02-20 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:34:23] Production.INFO: ==5368== Releasing lock... [2025-02-20 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:34:23] Production.INFO: 60 MB #Memory Used# [2025-02-20 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:35:05 [end_date_ymd] => 2025-02-20 17:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:35:05' and `end` < '2025-02-20 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-02-20 17:35:18] Production.INFO: count ==4233 [2025-02-20 17:35:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:35:05 - End Time 2025-02-20 17:35:05 [2025-02-20 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519296', 'tblTempUsageDetail_20' ) start [2025-02-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519296', 'tblTempUsageDetail_20' ) end [2025-02-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519296', 'tblTempVendorCDR_20' ) start [2025-02-20 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519296', 'tblTempVendorCDR_20' ) end [2025-02-20 17:35:20] Production.INFO: ProcessCDR(1,14519296,1,1,2) [2025-02-20 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519296', 'tblTempUsageDetail_20' ) start [2025-02-20 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519296', 'tblTempUsageDetail_20' ) end [2025-02-20 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:35:25] Production.INFO: ==5504== Releasing lock... [2025-02-20 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:35:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-20 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:36:05 [end_date_ymd] => 2025-02-20 17:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:36:05' and `end` < '2025-02-20 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-02-20 17:36:17] Production.INFO: count ==4217 [2025-02-20 17:36:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:36:05 - End Time 2025-02-20 17:36:05 [2025-02-20 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519301', 'tblTempUsageDetail_20' ) start [2025-02-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519301', 'tblTempUsageDetail_20' ) end [2025-02-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519301', 'tblTempVendorCDR_20' ) start [2025-02-20 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519301', 'tblTempVendorCDR_20' ) end [2025-02-20 17:36:19] Production.INFO: ProcessCDR(1,14519301,1,1,2) [2025-02-20 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519301', 'tblTempUsageDetail_20' ) start [2025-02-20 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519301', 'tblTempUsageDetail_20' ) end [2025-02-20 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:36:24] Production.INFO: ==5629== Releasing lock... [2025-02-20 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:36:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-20 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:37:06 [end_date_ymd] => 2025-02-20 17:37:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:37:06' and `end` < '2025-02-20 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-02-20 17:37:18] Production.INFO: count ==4212 [2025-02-20 17:37:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:37:06 - End Time 2025-02-20 17:37:06 [2025-02-20 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519306', 'tblTempUsageDetail_20' ) start [2025-02-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519306', 'tblTempUsageDetail_20' ) end [2025-02-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519306', 'tblTempVendorCDR_20' ) start [2025-02-20 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519306', 'tblTempVendorCDR_20' ) end [2025-02-20 17:37:20] Production.INFO: ProcessCDR(1,14519306,1,1,2) [2025-02-20 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519306', 'tblTempUsageDetail_20' ) start [2025-02-20 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519306', 'tblTempUsageDetail_20' ) end [2025-02-20 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:37:25] Production.INFO: ==5763== Releasing lock... [2025-02-20 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:37:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-20 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:38:05 [end_date_ymd] => 2025-02-20 17:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:38:05' and `end` < '2025-02-20 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-02-20 17:38:18] Production.INFO: count ==4207 [2025-02-20 17:38:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:38:05 - End Time 2025-02-20 17:38:05 [2025-02-20 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519311', 'tblTempUsageDetail_20' ) start [2025-02-20 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519311', 'tblTempUsageDetail_20' ) end [2025-02-20 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519311', 'tblTempVendorCDR_20' ) start [2025-02-20 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519311', 'tblTempVendorCDR_20' ) end [2025-02-20 17:38:20] Production.INFO: ProcessCDR(1,14519311,1,1,2) [2025-02-20 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519311', 'tblTempUsageDetail_20' ) start [2025-02-20 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519311', 'tblTempUsageDetail_20' ) end [2025-02-20 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:38:24] Production.INFO: ==5900== Releasing lock... [2025-02-20 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:38:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-20 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:39:05 [end_date_ymd] => 2025-02-20 17:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:39:05' and `end` < '2025-02-20 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-02-20 17:39:18] Production.INFO: count ==4188 [2025-02-20 17:39:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:39:05 - End Time 2025-02-20 17:39:05 [2025-02-20 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519316', 'tblTempUsageDetail_20' ) start [2025-02-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519316', 'tblTempUsageDetail_20' ) end [2025-02-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519316', 'tblTempVendorCDR_20' ) start [2025-02-20 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519316', 'tblTempVendorCDR_20' ) end [2025-02-20 17:39:20] Production.INFO: ProcessCDR(1,14519316,1,1,2) [2025-02-20 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519316', 'tblTempUsageDetail_20' ) start [2025-02-20 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519316', 'tblTempUsageDetail_20' ) end [2025-02-20 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:39:24] Production.INFO: ==6031== Releasing lock... [2025-02-20 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:39:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-20 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:40:06 [end_date_ymd] => 2025-02-20 17:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:40:06' and `end` < '2025-02-20 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-02-20 17:40:19] Production.INFO: count ==4187 [2025-02-20 17:40:21] Production.ERROR: pbx CDR StartTime 2025-02-20 14:40:06 - End Time 2025-02-20 17:40:06 [2025-02-20 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519322', 'tblTempUsageDetail_20' ) start [2025-02-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519322', 'tblTempUsageDetail_20' ) end [2025-02-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519322', 'tblTempVendorCDR_20' ) start [2025-02-20 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519322', 'tblTempVendorCDR_20' ) end [2025-02-20 17:40:21] Production.INFO: ProcessCDR(1,14519322,1,1,2) [2025-02-20 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519322', 'tblTempUsageDetail_20' ) start [2025-02-20 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519322', 'tblTempUsageDetail_20' ) end [2025-02-20 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:40:26] Production.INFO: ==6201== Releasing lock... [2025-02-20 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:40:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-20 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:41:06 [end_date_ymd] => 2025-02-20 17:41:06 [RateCDR] => 1 ) [2025-02-20 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:41:06' and `end` < '2025-02-20 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:41:18] Production.INFO: count ==4139 [2025-02-20 17:41:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:41:06 - End Time 2025-02-20 17:41:06 [2025-02-20 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519327', 'tblTempUsageDetail_20' ) start [2025-02-20 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519327', 'tblTempUsageDetail_20' ) end [2025-02-20 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519327', 'tblTempVendorCDR_20' ) start [2025-02-20 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519327', 'tblTempVendorCDR_20' ) end [2025-02-20 17:41:20] Production.INFO: ProcessCDR(1,14519327,1,1,2) [2025-02-20 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519327', 'tblTempUsageDetail_20' ) start [2025-02-20 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519327', 'tblTempUsageDetail_20' ) end [2025-02-20 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:41:25] Production.INFO: ==6339== Releasing lock... [2025-02-20 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:41:25] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:42:05 [end_date_ymd] => 2025-02-20 17:42:05 [RateCDR] => 1 ) [2025-02-20 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:42:05' and `end` < '2025-02-20 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:42:18] Production.INFO: count ==4135 [2025-02-20 17:42:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:42:05 - End Time 2025-02-20 17:42:05 [2025-02-20 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519332', 'tblTempUsageDetail_20' ) start [2025-02-20 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519332', 'tblTempUsageDetail_20' ) end [2025-02-20 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519332', 'tblTempVendorCDR_20' ) start [2025-02-20 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519332', 'tblTempVendorCDR_20' ) end [2025-02-20 17:42:20] Production.INFO: ProcessCDR(1,14519332,1,1,2) [2025-02-20 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519332', 'tblTempUsageDetail_20' ) start [2025-02-20 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519332', 'tblTempUsageDetail_20' ) end [2025-02-20 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:42:25] Production.INFO: ==6478== Releasing lock... [2025-02-20 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:42:25] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:43:06 [end_date_ymd] => 2025-02-20 17:43:06 [RateCDR] => 1 ) [2025-02-20 17: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-02-20 14:43:06' and `end` < '2025-02-20 17: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-02-20 17:43:18] Production.INFO: count ==4126 [2025-02-20 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:43:06 - End Time 2025-02-20 17:43:06 [2025-02-20 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519337', 'tblTempUsageDetail_20' ) start [2025-02-20 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519337', 'tblTempUsageDetail_20' ) end [2025-02-20 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519337', 'tblTempVendorCDR_20' ) start [2025-02-20 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519337', 'tblTempVendorCDR_20' ) end [2025-02-20 17:43:20] Production.INFO: ProcessCDR(1,14519337,1,1,2) [2025-02-20 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519337', 'tblTempUsageDetail_20' ) start [2025-02-20 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519337', 'tblTempUsageDetail_20' ) end [2025-02-20 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:43:25] Production.INFO: ==6610== Releasing lock... [2025-02-20 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:43:25] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:44:05 [end_date_ymd] => 2025-02-20 17:44:05 [RateCDR] => 1 ) [2025-02-20 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:44:05' and `end` < '2025-02-20 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:44:17] Production.INFO: count ==4124 [2025-02-20 17:44:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:44:05 - End Time 2025-02-20 17:44:05 [2025-02-20 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519342', 'tblTempUsageDetail_20' ) start [2025-02-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519342', 'tblTempUsageDetail_20' ) end [2025-02-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519342', 'tblTempVendorCDR_20' ) start [2025-02-20 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519342', 'tblTempVendorCDR_20' ) end [2025-02-20 17:44:19] Production.INFO: ProcessCDR(1,14519342,1,1,2) [2025-02-20 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519342', 'tblTempUsageDetail_20' ) start [2025-02-20 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519342', 'tblTempUsageDetail_20' ) end [2025-02-20 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:44:22] Production.INFO: ==6742== Releasing lock... [2025-02-20 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:44:22] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:45:05 [end_date_ymd] => 2025-02-20 17:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:45:05' and `end` < '2025-02-20 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-02-20 17:45:18] Production.INFO: count ==4125 [2025-02-20 17:45:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:45:05 - End Time 2025-02-20 17:45:05 [2025-02-20 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519347', 'tblTempUsageDetail_20' ) start [2025-02-20 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519347', 'tblTempUsageDetail_20' ) end [2025-02-20 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519347', 'tblTempVendorCDR_20' ) start [2025-02-20 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519347', 'tblTempVendorCDR_20' ) end [2025-02-20 17:45:20] Production.INFO: ProcessCDR(1,14519347,1,1,2) [2025-02-20 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519347', 'tblTempUsageDetail_20' ) start [2025-02-20 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519347', 'tblTempUsageDetail_20' ) end [2025-02-20 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:45:25] Production.INFO: ==6855== Releasing lock... [2025-02-20 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:45:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:46:05 [end_date_ymd] => 2025-02-20 17:46:05 [RateCDR] => 1 ) [2025-02-20 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:46:05' and `end` < '2025-02-20 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:46:17] Production.INFO: count ==4114 [2025-02-20 17:46:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:46:05 - End Time 2025-02-20 17:46:05 [2025-02-20 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519352', 'tblTempUsageDetail_20' ) start [2025-02-20 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519352', 'tblTempUsageDetail_20' ) end [2025-02-20 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519352', 'tblTempVendorCDR_20' ) start [2025-02-20 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519352', 'tblTempVendorCDR_20' ) end [2025-02-20 17:46:19] Production.INFO: ProcessCDR(1,14519352,1,1,2) [2025-02-20 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519352', 'tblTempUsageDetail_20' ) start [2025-02-20 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519352', 'tblTempUsageDetail_20' ) end [2025-02-20 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:46:23] Production.INFO: ==6932== Releasing lock... [2025-02-20 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:46:23] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:47:05 [end_date_ymd] => 2025-02-20 17:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:47:05' and `end` < '2025-02-20 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-02-20 17:47:18] Production.INFO: count ==4123 [2025-02-20 17:47:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:47:05 - End Time 2025-02-20 17:47:05 [2025-02-20 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519357', 'tblTempUsageDetail_20' ) start [2025-02-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519357', 'tblTempUsageDetail_20' ) end [2025-02-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519357', 'tblTempVendorCDR_20' ) start [2025-02-20 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519357', 'tblTempVendorCDR_20' ) end [2025-02-20 17:47:19] Production.INFO: ProcessCDR(1,14519357,1,1,2) [2025-02-20 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519357', 'tblTempUsageDetail_20' ) start [2025-02-20 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519357', 'tblTempUsageDetail_20' ) end [2025-02-20 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:47:23] Production.INFO: ==7010== Releasing lock... [2025-02-20 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:47:23] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:48:05 [end_date_ymd] => 2025-02-20 17:48:05 [RateCDR] => 1 ) [2025-02-20 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:48:05' and `end` < '2025-02-20 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-02-20 17:48:18] Production.INFO: count ==4115 [2025-02-20 17:48:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:48:05 - End Time 2025-02-20 17:48:05 [2025-02-20 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519362', 'tblTempUsageDetail_20' ) start [2025-02-20 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519362', 'tblTempUsageDetail_20' ) end [2025-02-20 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519362', 'tblTempVendorCDR_20' ) start [2025-02-20 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519362', 'tblTempVendorCDR_20' ) end [2025-02-20 17:48:19] Production.INFO: ProcessCDR(1,14519362,1,1,2) [2025-02-20 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519362', 'tblTempUsageDetail_20' ) start [2025-02-20 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519362', 'tblTempUsageDetail_20' ) end [2025-02-20 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:48:24] Production.INFO: ==7096== Releasing lock... [2025-02-20 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:48:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:49:05 [end_date_ymd] => 2025-02-20 17:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:49:05' and `end` < '2025-02-20 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-02-20 17:49:18] Production.INFO: count ==4118 [2025-02-20 17:49:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:49:05 - End Time 2025-02-20 17:49:05 [2025-02-20 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519367', 'tblTempUsageDetail_20' ) start [2025-02-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519367', 'tblTempUsageDetail_20' ) end [2025-02-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519367', 'tblTempVendorCDR_20' ) start [2025-02-20 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519367', 'tblTempVendorCDR_20' ) end [2025-02-20 17:49:19] Production.INFO: ProcessCDR(1,14519367,1,1,2) [2025-02-20 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519367', 'tblTempUsageDetail_20' ) start [2025-02-20 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519367', 'tblTempUsageDetail_20' ) end [2025-02-20 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:49:24] Production.INFO: ==7173== Releasing lock... [2025-02-20 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:49:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:50:06 [end_date_ymd] => 2025-02-20 17:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:50:06' and `end` < '2025-02-20 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-02-20 17:50:18] Production.INFO: count ==4113 [2025-02-20 17:50:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:50:06 - End Time 2025-02-20 17:50:06 [2025-02-20 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519373', 'tblTempUsageDetail_20' ) start [2025-02-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519373', 'tblTempUsageDetail_20' ) end [2025-02-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519373', 'tblTempVendorCDR_20' ) start [2025-02-20 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519373', 'tblTempVendorCDR_20' ) end [2025-02-20 17:50:20] Production.INFO: ProcessCDR(1,14519373,1,1,2) [2025-02-20 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519373', 'tblTempUsageDetail_20' ) start [2025-02-20 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519373', 'tblTempUsageDetail_20' ) end [2025-02-20 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:50:25] Production.INFO: ==7255== Releasing lock... [2025-02-20 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:50:25] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:51:05 [end_date_ymd] => 2025-02-20 17:51:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:51:05' and `end` < '2025-02-20 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-02-20 17:51:18] Production.INFO: count ==4135 [2025-02-20 17:51:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:51:05 - End Time 2025-02-20 17:51:05 [2025-02-20 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519378', 'tblTempUsageDetail_20' ) start [2025-02-20 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519378', 'tblTempUsageDetail_20' ) end [2025-02-20 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519378', 'tblTempVendorCDR_20' ) start [2025-02-20 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519378', 'tblTempVendorCDR_20' ) end [2025-02-20 17:51:20] Production.INFO: ProcessCDR(1,14519378,1,1,2) [2025-02-20 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519378', 'tblTempUsageDetail_20' ) start [2025-02-20 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519378', 'tblTempUsageDetail_20' ) end [2025-02-20 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:51:24] Production.INFO: ==7339== Releasing lock... [2025-02-20 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:51:24] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:52:05 [end_date_ymd] => 2025-02-20 17:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:52:05' and `end` < '2025-02-20 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-02-20 17:52:18] Production.INFO: count ==4135 [2025-02-20 17:52:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:52:05 - End Time 2025-02-20 17:52:05 [2025-02-20 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519383', 'tblTempUsageDetail_20' ) start [2025-02-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519383', 'tblTempUsageDetail_20' ) end [2025-02-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519383', 'tblTempVendorCDR_20' ) start [2025-02-20 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519383', 'tblTempVendorCDR_20' ) end [2025-02-20 17:52:19] Production.INFO: ProcessCDR(1,14519383,1,1,2) [2025-02-20 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519383', 'tblTempUsageDetail_20' ) start [2025-02-20 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519383', 'tblTempUsageDetail_20' ) end [2025-02-20 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:52:24] Production.INFO: ==7415== Releasing lock... [2025-02-20 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:52:24] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:53:05 [end_date_ymd] => 2025-02-20 17:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:53:05' and `end` < '2025-02-20 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-02-20 17:53:18] Production.INFO: count ==4130 [2025-02-20 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:53:05 - End Time 2025-02-20 17:53:05 [2025-02-20 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519388', 'tblTempUsageDetail_20' ) start [2025-02-20 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519388', 'tblTempUsageDetail_20' ) end [2025-02-20 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519388', 'tblTempVendorCDR_20' ) start [2025-02-20 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519388', 'tblTempVendorCDR_20' ) end [2025-02-20 17:53:20] Production.INFO: ProcessCDR(1,14519388,1,1,2) [2025-02-20 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519388', 'tblTempUsageDetail_20' ) start [2025-02-20 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519388', 'tblTempUsageDetail_20' ) end [2025-02-20 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:53:24] Production.INFO: ==7494== Releasing lock... [2025-02-20 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:53:24] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:54:05 [end_date_ymd] => 2025-02-20 17:54:05 [RateCDR] => 1 ) [2025-02-20 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 14:54:05' and `end` < '2025-02-20 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 17:54:17] Production.INFO: count ==4127 [2025-02-20 17:54:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:54:05 - End Time 2025-02-20 17:54:05 [2025-02-20 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519393', 'tblTempUsageDetail_20' ) start [2025-02-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519393', 'tblTempUsageDetail_20' ) end [2025-02-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519393', 'tblTempVendorCDR_20' ) start [2025-02-20 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519393', 'tblTempVendorCDR_20' ) end [2025-02-20 17:54:19] Production.INFO: ProcessCDR(1,14519393,1,1,2) [2025-02-20 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519393', 'tblTempUsageDetail_20' ) start [2025-02-20 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519393', 'tblTempUsageDetail_20' ) end [2025-02-20 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:54:24] Production.INFO: ==7573== Releasing lock... [2025-02-20 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:54:24] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:55:05 [end_date_ymd] => 2025-02-20 17:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:55:05' and `end` < '2025-02-20 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-02-20 17:55:17] Production.INFO: count ==4130 [2025-02-20 17:55:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:55:05 - End Time 2025-02-20 17:55:05 [2025-02-20 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519398', 'tblTempUsageDetail_20' ) start [2025-02-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519398', 'tblTempUsageDetail_20' ) end [2025-02-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519398', 'tblTempVendorCDR_20' ) start [2025-02-20 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519398', 'tblTempVendorCDR_20' ) end [2025-02-20 17:55:19] Production.INFO: ProcessCDR(1,14519398,1,1,2) [2025-02-20 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519398', 'tblTempUsageDetail_20' ) start [2025-02-20 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519398', 'tblTempUsageDetail_20' ) end [2025-02-20 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:55:24] Production.INFO: ==7694== Releasing lock... [2025-02-20 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:55:24] Production.INFO: 59 MB #Memory Used# [2025-02-20 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:56:05 [end_date_ymd] => 2025-02-20 17:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:56:05' and `end` < '2025-02-20 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-02-20 17:56:18] Production.INFO: count ==4105 [2025-02-20 17:56:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:56:05 - End Time 2025-02-20 17:56:05 [2025-02-20 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519403', 'tblTempUsageDetail_20' ) start [2025-02-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519403', 'tblTempUsageDetail_20' ) end [2025-02-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519403', 'tblTempVendorCDR_20' ) start [2025-02-20 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519403', 'tblTempVendorCDR_20' ) end [2025-02-20 17:56:20] Production.INFO: ProcessCDR(1,14519403,1,1,2) [2025-02-20 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519403', 'tblTempUsageDetail_20' ) start [2025-02-20 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519403', 'tblTempUsageDetail_20' ) end [2025-02-20 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:56:24] Production.INFO: ==7775== Releasing lock... [2025-02-20 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:56:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-20 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:57:05 [end_date_ymd] => 2025-02-20 17:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:57:05' and `end` < '2025-02-20 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-02-20 17:57:17] Production.INFO: count ==4068 [2025-02-20 17:57:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:57:05 - End Time 2025-02-20 17:57:05 [2025-02-20 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519408', 'tblTempUsageDetail_20' ) start [2025-02-20 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519408', 'tblTempUsageDetail_20' ) end [2025-02-20 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519408', 'tblTempVendorCDR_20' ) start [2025-02-20 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519408', 'tblTempVendorCDR_20' ) end [2025-02-20 17:57:19] Production.INFO: ProcessCDR(1,14519408,1,1,2) [2025-02-20 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519408', 'tblTempUsageDetail_20' ) start [2025-02-20 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519408', 'tblTempUsageDetail_20' ) end [2025-02-20 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:57:24] Production.INFO: ==7857== Releasing lock... [2025-02-20 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:57:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-20 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:58:06 [end_date_ymd] => 2025-02-20 17:58:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:58:06' and `end` < '2025-02-20 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-02-20 17:58:18] Production.INFO: count ==4072 [2025-02-20 17:58:20] Production.ERROR: pbx CDR StartTime 2025-02-20 14:58:06 - End Time 2025-02-20 17:58:06 [2025-02-20 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519413', 'tblTempUsageDetail_20' ) start [2025-02-20 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519413', 'tblTempUsageDetail_20' ) end [2025-02-20 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519413', 'tblTempVendorCDR_20' ) start [2025-02-20 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519413', 'tblTempVendorCDR_20' ) end [2025-02-20 17:58:20] Production.INFO: ProcessCDR(1,14519413,1,1,2) [2025-02-20 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519413', 'tblTempUsageDetail_20' ) start [2025-02-20 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519413', 'tblTempUsageDetail_20' ) end [2025-02-20 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:58:25] Production.INFO: ==7931== Releasing lock... [2025-02-20 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:58:25] Production.INFO: 58.5 MB #Memory Used# [2025-02-20 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 14:59:05 [end_date_ymd] => 2025-02-20 17:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 14:59:05' and `end` < '2025-02-20 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-02-20 17:59:18] Production.INFO: count ==4083 [2025-02-20 17:59:19] Production.ERROR: pbx CDR StartTime 2025-02-20 14:59:05 - End Time 2025-02-20 17:59:05 [2025-02-20 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519418', 'tblTempUsageDetail_20' ) start [2025-02-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519418', 'tblTempUsageDetail_20' ) end [2025-02-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519418', 'tblTempVendorCDR_20' ) start [2025-02-20 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519418', 'tblTempVendorCDR_20' ) end [2025-02-20 17:59:19] Production.INFO: ProcessCDR(1,14519418,1,1,2) [2025-02-20 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519418', 'tblTempUsageDetail_20' ) start [2025-02-20 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519418', 'tblTempUsageDetail_20' ) end [2025-02-20 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 17:59:24] Production.INFO: ==8015== Releasing lock... [2025-02-20 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 17:59:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-20 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:00:07 [end_date_ymd] => 2025-02-20 18:00:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:00:07' and `end` < '2025-02-20 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-02-20 18:00:20] Production.INFO: count ==4075 [2025-02-20 18:00:22] Production.ERROR: pbx CDR StartTime 2025-02-20 15:00:07 - End Time 2025-02-20 18:00:07 [2025-02-20 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519424', 'tblTempUsageDetail_20' ) start [2025-02-20 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519424', 'tblTempUsageDetail_20' ) end [2025-02-20 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519424', 'tblTempVendorCDR_20' ) start [2025-02-20 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519424', 'tblTempVendorCDR_20' ) end [2025-02-20 18:00:22] Production.INFO: ProcessCDR(1,14519424,1,1,2) [2025-02-20 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519424', 'tblTempUsageDetail_20' ) start [2025-02-20 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519424', 'tblTempUsageDetail_20' ) end [2025-02-20 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:00:27] Production.INFO: ==8100== Releasing lock... [2025-02-20 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:00:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-20 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:01:05 [end_date_ymd] => 2025-02-20 18:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:01:05' and `end` < '2025-02-20 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-02-20 18:01:18] Production.INFO: count ==4060 [2025-02-20 18:01:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:01:05 - End Time 2025-02-20 18:01:05 [2025-02-20 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519429', 'tblTempUsageDetail_20' ) start [2025-02-20 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519429', 'tblTempUsageDetail_20' ) end [2025-02-20 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519429', 'tblTempVendorCDR_20' ) start [2025-02-20 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519429', 'tblTempVendorCDR_20' ) end [2025-02-20 18:01:19] Production.INFO: ProcessCDR(1,14519429,1,1,2) [2025-02-20 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519429', 'tblTempUsageDetail_20' ) start [2025-02-20 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519429', 'tblTempUsageDetail_20' ) end [2025-02-20 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:01:24] Production.INFO: ==8184== Releasing lock... [2025-02-20 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:01:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-20 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:02:05 [end_date_ymd] => 2025-02-20 18:02:05 [RateCDR] => 1 ) [2025-02-20 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:02:05' and `end` < '2025-02-20 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:02:18] Production.INFO: count ==4076 [2025-02-20 18:02:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:02:05 - End Time 2025-02-20 18:02:05 [2025-02-20 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519434', 'tblTempUsageDetail_20' ) start [2025-02-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519434', 'tblTempUsageDetail_20' ) end [2025-02-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519434', 'tblTempVendorCDR_20' ) start [2025-02-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519434', 'tblTempVendorCDR_20' ) end [2025-02-20 18:02:20] Production.INFO: ProcessCDR(1,14519434,1,1,2) [2025-02-20 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519434', 'tblTempUsageDetail_20' ) start [2025-02-20 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519434', 'tblTempUsageDetail_20' ) end [2025-02-20 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:02:23] Production.INFO: ==8262== Releasing lock... [2025-02-20 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:02:23] Production.INFO: 58.5 MB #Memory Used# [2025-02-20 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:03:05 [end_date_ymd] => 2025-02-20 18:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:03:05' and `end` < '2025-02-20 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-02-20 18:03:18] Production.INFO: count ==4065 [2025-02-20 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:03:05 - End Time 2025-02-20 18:03:05 [2025-02-20 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519439', 'tblTempUsageDetail_20' ) start [2025-02-20 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519439', 'tblTempUsageDetail_20' ) end [2025-02-20 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519439', 'tblTempVendorCDR_20' ) start [2025-02-20 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519439', 'tblTempVendorCDR_20' ) end [2025-02-20 18:03:19] Production.INFO: ProcessCDR(1,14519439,1,1,2) [2025-02-20 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519439', 'tblTempUsageDetail_20' ) start [2025-02-20 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519439', 'tblTempUsageDetail_20' ) end [2025-02-20 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:03:24] Production.INFO: ==8350== Releasing lock... [2025-02-20 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:03:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-20 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:04:06 [end_date_ymd] => 2025-02-20 18:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:04:06' and `end` < '2025-02-20 18: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-02-20 18:04:18] Production.INFO: count ==4051 [2025-02-20 18:04:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:04:06 - End Time 2025-02-20 18:04:06 [2025-02-20 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519444', 'tblTempUsageDetail_20' ) start [2025-02-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519444', 'tblTempUsageDetail_20' ) end [2025-02-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519444', 'tblTempVendorCDR_20' ) start [2025-02-20 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519444', 'tblTempVendorCDR_20' ) end [2025-02-20 18:04:20] Production.INFO: ProcessCDR(1,14519444,1,1,2) [2025-02-20 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519444', 'tblTempUsageDetail_20' ) start [2025-02-20 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519444', 'tblTempUsageDetail_20' ) end [2025-02-20 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:04:23] Production.INFO: ==8447== Releasing lock... [2025-02-20 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:04:23] Production.INFO: 58.25 MB #Memory Used# [2025-02-20 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:05:05 [end_date_ymd] => 2025-02-20 18:05:05 [RateCDR] => 1 ) [2025-02-20 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:05:05' and `end` < '2025-02-20 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:05:17] Production.INFO: count ==4031 [2025-02-20 18:05:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:05:05 - End Time 2025-02-20 18:05:05 [2025-02-20 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519449', 'tblTempUsageDetail_20' ) start [2025-02-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519449', 'tblTempUsageDetail_20' ) end [2025-02-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519449', 'tblTempVendorCDR_20' ) start [2025-02-20 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519449', 'tblTempVendorCDR_20' ) end [2025-02-20 18:05:19] Production.INFO: ProcessCDR(1,14519449,1,1,2) [2025-02-20 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519449', 'tblTempUsageDetail_20' ) start [2025-02-20 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519449', 'tblTempUsageDetail_20' ) end [2025-02-20 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:05:24] Production.INFO: ==8539== Releasing lock... [2025-02-20 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:05:24] Production.INFO: 58 MB #Memory Used# [2025-02-20 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:06:05 [end_date_ymd] => 2025-02-20 18:06:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:06:05' and `end` < '2025-02-20 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-02-20 18:06:18] Production.INFO: count ==4030 [2025-02-20 18:06:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:06:05 - End Time 2025-02-20 18:06:05 [2025-02-20 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519454', 'tblTempUsageDetail_20' ) start [2025-02-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519454', 'tblTempUsageDetail_20' ) end [2025-02-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519454', 'tblTempVendorCDR_20' ) start [2025-02-20 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519454', 'tblTempVendorCDR_20' ) end [2025-02-20 18:06:20] Production.INFO: ProcessCDR(1,14519454,1,1,2) [2025-02-20 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519454', 'tblTempUsageDetail_20' ) start [2025-02-20 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519454', 'tblTempUsageDetail_20' ) end [2025-02-20 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:06:24] Production.INFO: ==8640== Releasing lock... [2025-02-20 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:06:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-20 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:07:05 [end_date_ymd] => 2025-02-20 18:07:05 [RateCDR] => 1 ) [2025-02-20 18: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-02-20 15:07:05' and `end` < '2025-02-20 18: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-02-20 18:07:17] Production.INFO: count ==4009 [2025-02-20 18:07:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:07:05 - End Time 2025-02-20 18:07:05 [2025-02-20 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519459', 'tblTempUsageDetail_20' ) start [2025-02-20 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519459', 'tblTempUsageDetail_20' ) end [2025-02-20 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519459', 'tblTempVendorCDR_20' ) start [2025-02-20 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519459', 'tblTempVendorCDR_20' ) end [2025-02-20 18:07:19] Production.INFO: ProcessCDR(1,14519459,1,1,2) [2025-02-20 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519459', 'tblTempUsageDetail_20' ) start [2025-02-20 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519459', 'tblTempUsageDetail_20' ) end [2025-02-20 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:07:22] Production.INFO: ==8745== Releasing lock... [2025-02-20 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:07:22] Production.INFO: 58 MB #Memory Used# [2025-02-20 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:08:05 [end_date_ymd] => 2025-02-20 18:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:08:05' and `end` < '2025-02-20 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-02-20 18:08:18] Production.INFO: count ==4001 [2025-02-20 18:08:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:08:05 - End Time 2025-02-20 18:08:05 [2025-02-20 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519464', 'tblTempUsageDetail_20' ) start [2025-02-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519464', 'tblTempUsageDetail_20' ) end [2025-02-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519464', 'tblTempVendorCDR_20' ) start [2025-02-20 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519464', 'tblTempVendorCDR_20' ) end [2025-02-20 18:08:19] Production.INFO: ProcessCDR(1,14519464,1,1,2) [2025-02-20 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519464', 'tblTempUsageDetail_20' ) start [2025-02-20 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519464', 'tblTempUsageDetail_20' ) end [2025-02-20 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:08:23] Production.INFO: ==8844== Releasing lock... [2025-02-20 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:08:23] Production.INFO: 58 MB #Memory Used# [2025-02-20 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:09:04 [end_date_ymd] => 2025-02-20 18:09:04 [RateCDR] => 1 ) [2025-02-20 18:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:09:04' and `end` < '2025-02-20 18:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:09:17] Production.INFO: count ==4000 [2025-02-20 18:09:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:09:04 - End Time 2025-02-20 18:09:04 [2025-02-20 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519469', 'tblTempUsageDetail_20' ) start [2025-02-20 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519469', 'tblTempUsageDetail_20' ) end [2025-02-20 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519469', 'tblTempVendorCDR_20' ) start [2025-02-20 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519469', 'tblTempVendorCDR_20' ) end [2025-02-20 18:09:19] Production.INFO: ProcessCDR(1,14519469,1,1,2) [2025-02-20 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519469', 'tblTempUsageDetail_20' ) start [2025-02-20 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519469', 'tblTempUsageDetail_20' ) end [2025-02-20 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:09:22] Production.INFO: ==8938== Releasing lock... [2025-02-20 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:09:22] Production.INFO: 58 MB #Memory Used# [2025-02-20 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:10:06 [end_date_ymd] => 2025-02-20 18:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:10:06' and `end` < '2025-02-20 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-02-20 18:10:18] Production.INFO: count ==3995 [2025-02-20 18:10:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:10:06 - End Time 2025-02-20 18:10:06 [2025-02-20 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519475', 'tblTempUsageDetail_20' ) start [2025-02-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519475', 'tblTempUsageDetail_20' ) end [2025-02-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519475', 'tblTempVendorCDR_20' ) start [2025-02-20 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519475', 'tblTempVendorCDR_20' ) end [2025-02-20 18:10:20] Production.INFO: ProcessCDR(1,14519475,1,1,2) [2025-02-20 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519475', 'tblTempUsageDetail_20' ) start [2025-02-20 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519475', 'tblTempUsageDetail_20' ) end [2025-02-20 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:10:25] Production.INFO: ==9035== Releasing lock... [2025-02-20 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:10:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-20 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:11:05 [end_date_ymd] => 2025-02-20 18:11:05 [RateCDR] => 1 ) [2025-02-20 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:11:05' and `end` < '2025-02-20 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:11:17] Production.INFO: count ==3967 [2025-02-20 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:11:05 - End Time 2025-02-20 18:11:05 [2025-02-20 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519480', 'tblTempUsageDetail_20' ) start [2025-02-20 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519480', 'tblTempUsageDetail_20' ) end [2025-02-20 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519480', 'tblTempVendorCDR_20' ) start [2025-02-20 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519480', 'tblTempVendorCDR_20' ) end [2025-02-20 18:11:19] Production.INFO: ProcessCDR(1,14519480,1,1,2) [2025-02-20 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519480', 'tblTempUsageDetail_20' ) start [2025-02-20 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519480', 'tblTempUsageDetail_20' ) end [2025-02-20 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:11:24] Production.INFO: ==9174== Releasing lock... [2025-02-20 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:11:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-20 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:12:06 [end_date_ymd] => 2025-02-20 18:12:06 [RateCDR] => 1 ) [2025-02-20 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:12:06' and `end` < '2025-02-20 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:12:19] Production.INFO: count ==3957 [2025-02-20 18:12:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:12:06 - End Time 2025-02-20 18:12:06 [2025-02-20 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519485', 'tblTempUsageDetail_20' ) start [2025-02-20 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519485', 'tblTempUsageDetail_20' ) end [2025-02-20 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519485', 'tblTempVendorCDR_20' ) start [2025-02-20 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519485', 'tblTempVendorCDR_20' ) end [2025-02-20 18:12:20] Production.INFO: ProcessCDR(1,14519485,1,1,2) [2025-02-20 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519485', 'tblTempUsageDetail_20' ) start [2025-02-20 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519485', 'tblTempUsageDetail_20' ) end [2025-02-20 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:12:24] Production.INFO: ==9270== Releasing lock... [2025-02-20 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:12:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-20 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:13:05 [end_date_ymd] => 2025-02-20 18:13:05 [RateCDR] => 1 ) [2025-02-20 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:13:05' and `end` < '2025-02-20 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:13:17] Production.INFO: count ==3953 [2025-02-20 18:13:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:13:05 - End Time 2025-02-20 18:13:05 [2025-02-20 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519490', 'tblTempUsageDetail_20' ) start [2025-02-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519490', 'tblTempUsageDetail_20' ) end [2025-02-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519490', 'tblTempVendorCDR_20' ) start [2025-02-20 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519490', 'tblTempVendorCDR_20' ) end [2025-02-20 18:13:19] Production.INFO: ProcessCDR(1,14519490,1,1,2) [2025-02-20 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519490', 'tblTempUsageDetail_20' ) start [2025-02-20 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519490', 'tblTempUsageDetail_20' ) end [2025-02-20 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:13:24] Production.INFO: ==9363== Releasing lock... [2025-02-20 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:13:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-20 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:14:06 [end_date_ymd] => 2025-02-20 18:14:06 [RateCDR] => 1 ) [2025-02-20 18: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-02-20 15:14:06' and `end` < '2025-02-20 18: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-02-20 18:14:18] Production.INFO: count ==3953 [2025-02-20 18:14:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:14:06 - End Time 2025-02-20 18:14:06 [2025-02-20 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519495', 'tblTempUsageDetail_20' ) start [2025-02-20 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519495', 'tblTempUsageDetail_20' ) end [2025-02-20 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519495', 'tblTempVendorCDR_20' ) start [2025-02-20 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519495', 'tblTempVendorCDR_20' ) end [2025-02-20 18:14:20] Production.INFO: ProcessCDR(1,14519495,1,1,2) [2025-02-20 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519495', 'tblTempUsageDetail_20' ) start [2025-02-20 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519495', 'tblTempUsageDetail_20' ) end [2025-02-20 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:14:25] Production.INFO: ==9455== Releasing lock... [2025-02-20 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:14:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-20 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:15:05 [end_date_ymd] => 2025-02-20 18:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:15:05' and `end` < '2025-02-20 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-02-20 18:15:17] Production.INFO: count ==3946 [2025-02-20 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:15:05 - End Time 2025-02-20 18:15:05 [2025-02-20 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519500', 'tblTempUsageDetail_20' ) start [2025-02-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519500', 'tblTempUsageDetail_20' ) end [2025-02-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519500', 'tblTempVendorCDR_20' ) start [2025-02-20 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519500', 'tblTempVendorCDR_20' ) end [2025-02-20 18:15:19] Production.INFO: ProcessCDR(1,14519500,1,1,2) [2025-02-20 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519500', 'tblTempUsageDetail_20' ) start [2025-02-20 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519500', 'tblTempUsageDetail_20' ) end [2025-02-20 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:15:24] Production.INFO: ==9545== Releasing lock... [2025-02-20 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:15:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-20 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:16:06 [end_date_ymd] => 2025-02-20 18:16:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:16:06' and `end` < '2025-02-20 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-02-20 18:16:18] Production.INFO: count ==3926 [2025-02-20 18:16:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:16:06 - End Time 2025-02-20 18:16:06 [2025-02-20 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519505', 'tblTempUsageDetail_20' ) start [2025-02-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519505', 'tblTempUsageDetail_20' ) end [2025-02-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519505', 'tblTempVendorCDR_20' ) start [2025-02-20 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519505', 'tblTempVendorCDR_20' ) end [2025-02-20 18:16:20] Production.INFO: ProcessCDR(1,14519505,1,1,2) [2025-02-20 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519505', 'tblTempUsageDetail_20' ) start [2025-02-20 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519505', 'tblTempUsageDetail_20' ) end [2025-02-20 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:16:25] Production.INFO: ==9638== Releasing lock... [2025-02-20 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:16:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-20 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:17:05 [end_date_ymd] => 2025-02-20 18:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:17:05' and `end` < '2025-02-20 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-02-20 18:17:17] Production.INFO: count ==3929 [2025-02-20 18:17:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:17:05 - End Time 2025-02-20 18:17:05 [2025-02-20 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519510', 'tblTempUsageDetail_20' ) start [2025-02-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519510', 'tblTempUsageDetail_20' ) end [2025-02-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519510', 'tblTempVendorCDR_20' ) start [2025-02-20 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519510', 'tblTempVendorCDR_20' ) end [2025-02-20 18:17:19] Production.INFO: ProcessCDR(1,14519510,1,1,2) [2025-02-20 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519510', 'tblTempUsageDetail_20' ) start [2025-02-20 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519510', 'tblTempUsageDetail_20' ) end [2025-02-20 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:17:23] Production.INFO: ==9726== Releasing lock... [2025-02-20 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:17:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-20 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:18:05 [end_date_ymd] => 2025-02-20 18:18:05 [RateCDR] => 1 ) [2025-02-20 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:18:05' and `end` < '2025-02-20 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:18:18] Production.INFO: count ==3934 [2025-02-20 18:18:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:18:05 - End Time 2025-02-20 18:18:05 [2025-02-20 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519515', 'tblTempUsageDetail_20' ) start [2025-02-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519515', 'tblTempUsageDetail_20' ) end [2025-02-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519515', 'tblTempVendorCDR_20' ) start [2025-02-20 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519515', 'tblTempVendorCDR_20' ) end [2025-02-20 18:18:19] Production.INFO: ProcessCDR(1,14519515,1,1,2) [2025-02-20 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519515', 'tblTempUsageDetail_20' ) start [2025-02-20 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519515', 'tblTempUsageDetail_20' ) end [2025-02-20 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:18:23] Production.INFO: ==9818== Releasing lock... [2025-02-20 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:18:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-20 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:19:05 [end_date_ymd] => 2025-02-20 18:19:05 [RateCDR] => 1 ) [2025-02-20 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:19:05' and `end` < '2025-02-20 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:19:17] Production.INFO: count ==3931 [2025-02-20 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:19:05 - End Time 2025-02-20 18:19:05 [2025-02-20 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519520', 'tblTempUsageDetail_20' ) start [2025-02-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519520', 'tblTempUsageDetail_20' ) end [2025-02-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519520', 'tblTempVendorCDR_20' ) start [2025-02-20 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519520', 'tblTempVendorCDR_20' ) end [2025-02-20 18:19:19] Production.INFO: ProcessCDR(1,14519520,1,1,2) [2025-02-20 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519520', 'tblTempUsageDetail_20' ) start [2025-02-20 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519520', 'tblTempUsageDetail_20' ) end [2025-02-20 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:19:22] Production.INFO: ==9909== Releasing lock... [2025-02-20 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:19:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-20 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:20:05 [end_date_ymd] => 2025-02-20 18:20:05 [RateCDR] => 1 ) [2025-02-20 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:20:05' and `end` < '2025-02-20 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:20:18] Production.INFO: count ==3919 [2025-02-20 18:20:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:20:05 - End Time 2025-02-20 18:20:05 [2025-02-20 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519526', 'tblTempUsageDetail_20' ) start [2025-02-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519526', 'tblTempUsageDetail_20' ) end [2025-02-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519526', 'tblTempVendorCDR_20' ) start [2025-02-20 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519526', 'tblTempVendorCDR_20' ) end [2025-02-20 18:20:20] Production.INFO: ProcessCDR(1,14519526,1,1,2) [2025-02-20 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519526', 'tblTempUsageDetail_20' ) start [2025-02-20 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519526', 'tblTempUsageDetail_20' ) end [2025-02-20 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:20:23] Production.INFO: ==10001== Releasing lock... [2025-02-20 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:20:23] Production.INFO: 57.5 MB #Memory Used# [2025-02-20 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:21:04 [end_date_ymd] => 2025-02-20 18:21:04 [RateCDR] => 1 ) [2025-02-20 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:21:04' and `end` < '2025-02-20 18: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-02-20 18:21:17] Production.INFO: count ==3908 [2025-02-20 18:21:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:21:04 - End Time 2025-02-20 18:21:04 [2025-02-20 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519531', 'tblTempUsageDetail_20' ) start [2025-02-20 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519531', 'tblTempUsageDetail_20' ) end [2025-02-20 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519531', 'tblTempVendorCDR_20' ) start [2025-02-20 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519531', 'tblTempVendorCDR_20' ) end [2025-02-20 18:21:19] Production.INFO: ProcessCDR(1,14519531,1,1,2) [2025-02-20 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519531', 'tblTempUsageDetail_20' ) start [2025-02-20 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519531', 'tblTempUsageDetail_20' ) end [2025-02-20 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:21:22] Production.INFO: ==10098== Releasing lock... [2025-02-20 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:21:22] Production.INFO: 57.75 MB #Memory Used# [2025-02-20 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:22:05 [end_date_ymd] => 2025-02-20 18:22:05 [RateCDR] => 1 ) [2025-02-20 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:22:05' and `end` < '2025-02-20 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:22:18] Production.INFO: count ==3868 [2025-02-20 18:22:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:22:05 - End Time 2025-02-20 18:22:05 [2025-02-20 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519536', 'tblTempUsageDetail_20' ) start [2025-02-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519536', 'tblTempUsageDetail_20' ) end [2025-02-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519536', 'tblTempVendorCDR_20' ) start [2025-02-20 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519536', 'tblTempVendorCDR_20' ) end [2025-02-20 18:22:19] Production.INFO: ProcessCDR(1,14519536,1,1,2) [2025-02-20 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519536', 'tblTempUsageDetail_20' ) start [2025-02-20 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519536', 'tblTempUsageDetail_20' ) end [2025-02-20 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:22:23] Production.INFO: ==10191== Releasing lock... [2025-02-20 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:22:23] Production.INFO: 57 MB #Memory Used# [2025-02-20 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:23:06 [end_date_ymd] => 2025-02-20 18:23:06 [RateCDR] => 1 ) [2025-02-20 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:23:06' and `end` < '2025-02-20 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:23:18] Production.INFO: count ==3867 [2025-02-20 18:23:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:23:06 - End Time 2025-02-20 18:23:06 [2025-02-20 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519541', 'tblTempUsageDetail_20' ) start [2025-02-20 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519541', 'tblTempUsageDetail_20' ) end [2025-02-20 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519541', 'tblTempVendorCDR_20' ) start [2025-02-20 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519541', 'tblTempVendorCDR_20' ) end [2025-02-20 18:23:20] Production.INFO: ProcessCDR(1,14519541,1,1,2) [2025-02-20 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519541', 'tblTempUsageDetail_20' ) start [2025-02-20 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519541', 'tblTempUsageDetail_20' ) end [2025-02-20 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:23:25] Production.INFO: ==10284== Releasing lock... [2025-02-20 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:23:25] Production.INFO: 57 MB #Memory Used# [2025-02-20 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:24:05 [end_date_ymd] => 2025-02-20 18:24:05 [RateCDR] => 1 ) [2025-02-20 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:24:05' and `end` < '2025-02-20 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:24:18] Production.INFO: count ==3853 [2025-02-20 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:24:05 - End Time 2025-02-20 18:24:05 [2025-02-20 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519546', 'tblTempUsageDetail_20' ) start [2025-02-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519546', 'tblTempUsageDetail_20' ) end [2025-02-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519546', 'tblTempVendorCDR_20' ) start [2025-02-20 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519546', 'tblTempVendorCDR_20' ) end [2025-02-20 18:24:19] Production.INFO: ProcessCDR(1,14519546,1,1,2) [2025-02-20 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519546', 'tblTempUsageDetail_20' ) start [2025-02-20 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519546', 'tblTempUsageDetail_20' ) end [2025-02-20 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:24:24] Production.INFO: ==10370== Releasing lock... [2025-02-20 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:24:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:25:04 [end_date_ymd] => 2025-02-20 18:25:04 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:25:04' and `end` < '2025-02-20 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:25:17] Production.INFO: count ==3832 [2025-02-20 18:25:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:25:04 - End Time 2025-02-20 18:25:04 [2025-02-20 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519551', 'tblTempUsageDetail_20' ) start [2025-02-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519551', 'tblTempUsageDetail_20' ) end [2025-02-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519551', 'tblTempVendorCDR_20' ) start [2025-02-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519551', 'tblTempVendorCDR_20' ) end [2025-02-20 18:25:18] Production.INFO: ProcessCDR(1,14519551,1,1,2) [2025-02-20 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519551', 'tblTempUsageDetail_20' ) start [2025-02-20 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519551', 'tblTempUsageDetail_20' ) end [2025-02-20 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:25:23] Production.INFO: ==10460== Releasing lock... [2025-02-20 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:25:23] Production.INFO: 57 MB #Memory Used# [2025-02-20 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:26:05 [end_date_ymd] => 2025-02-20 18:26:05 [RateCDR] => 1 ) [2025-02-20 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:26:05' and `end` < '2025-02-20 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:26:17] Production.INFO: count ==3815 [2025-02-20 18:26:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:26:05 - End Time 2025-02-20 18:26:05 [2025-02-20 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519556', 'tblTempUsageDetail_20' ) start [2025-02-20 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519556', 'tblTempUsageDetail_20' ) end [2025-02-20 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519556', 'tblTempVendorCDR_20' ) start [2025-02-20 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519556', 'tblTempVendorCDR_20' ) end [2025-02-20 18:26:18] Production.INFO: ProcessCDR(1,14519556,1,1,2) [2025-02-20 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519556', 'tblTempUsageDetail_20' ) start [2025-02-20 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519556', 'tblTempUsageDetail_20' ) end [2025-02-20 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:26:22] Production.INFO: ==10589== Releasing lock... [2025-02-20 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:26:22] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:27:05 [end_date_ymd] => 2025-02-20 18:27:05 [RateCDR] => 1 ) [2025-02-20 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:27:05' and `end` < '2025-02-20 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:27:18] Production.INFO: count ==3805 [2025-02-20 18:27:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:27:05 - End Time 2025-02-20 18:27:05 [2025-02-20 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519561', 'tblTempUsageDetail_20' ) start [2025-02-20 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519561', 'tblTempUsageDetail_20' ) end [2025-02-20 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519561', 'tblTempVendorCDR_20' ) start [2025-02-20 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519561', 'tblTempVendorCDR_20' ) end [2025-02-20 18:27:19] Production.INFO: ProcessCDR(1,14519561,1,1,2) [2025-02-20 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519561', 'tblTempUsageDetail_20' ) start [2025-02-20 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519561', 'tblTempUsageDetail_20' ) end [2025-02-20 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:27:23] Production.INFO: ==10684== Releasing lock... [2025-02-20 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:27:23] Production.INFO: 56.5 MB #Memory Used# [2025-02-20 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:28:05 [end_date_ymd] => 2025-02-20 18:28:05 [RateCDR] => 1 ) [2025-02-20 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:28:05' and `end` < '2025-02-20 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:28:17] Production.INFO: count ==3789 [2025-02-20 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:28:05 - End Time 2025-02-20 18:28:05 [2025-02-20 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519566', 'tblTempUsageDetail_20' ) start [2025-02-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519566', 'tblTempUsageDetail_20' ) end [2025-02-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519566', 'tblTempVendorCDR_20' ) start [2025-02-20 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519566', 'tblTempVendorCDR_20' ) end [2025-02-20 18:28:19] Production.INFO: ProcessCDR(1,14519566,1,1,2) [2025-02-20 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519566', 'tblTempUsageDetail_20' ) start [2025-02-20 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519566', 'tblTempUsageDetail_20' ) end [2025-02-20 18:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:28:22] Production.INFO: ==10775== Releasing lock... [2025-02-20 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:28:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-20 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:29:05 [end_date_ymd] => 2025-02-20 18:29:05 [RateCDR] => 1 ) [2025-02-20 18: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-02-20 15:29:05' and `end` < '2025-02-20 18: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-02-20 18:29:18] Production.INFO: count ==3771 [2025-02-20 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:29:05 - End Time 2025-02-20 18:29:05 [2025-02-20 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519571', 'tblTempUsageDetail_20' ) start [2025-02-20 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519571', 'tblTempUsageDetail_20' ) end [2025-02-20 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519571', 'tblTempVendorCDR_20' ) start [2025-02-20 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519571', 'tblTempVendorCDR_20' ) end [2025-02-20 18:29:19] Production.INFO: ProcessCDR(1,14519571,1,1,2) [2025-02-20 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519571', 'tblTempUsageDetail_20' ) start [2025-02-20 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519571', 'tblTempUsageDetail_20' ) end [2025-02-20 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:29:22] Production.INFO: ==10866== Releasing lock... [2025-02-20 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:29:22] Production.INFO: 56.75 MB #Memory Used# [2025-02-20 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:30:06 [end_date_ymd] => 2025-02-20 18:30:06 [RateCDR] => 1 ) [2025-02-20 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:30:06' and `end` < '2025-02-20 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:30:18] Production.INFO: count ==3759 [2025-02-20 18:30:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:30:06 - End Time 2025-02-20 18:30:06 [2025-02-20 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519577', 'tblTempUsageDetail_20' ) start [2025-02-20 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519577', 'tblTempUsageDetail_20' ) end [2025-02-20 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519577', 'tblTempVendorCDR_20' ) start [2025-02-20 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519577', 'tblTempVendorCDR_20' ) end [2025-02-20 18:30:19] Production.INFO: ProcessCDR(1,14519577,1,1,2) [2025-02-20 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519577', 'tblTempUsageDetail_20' ) start [2025-02-20 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519577', 'tblTempUsageDetail_20' ) end [2025-02-20 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:30:23] Production.INFO: ==10958== Releasing lock... [2025-02-20 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:30:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-20 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:31:05 [end_date_ymd] => 2025-02-20 18:31:05 [RateCDR] => 1 ) [2025-02-20 18: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-02-20 15:31:05' and `end` < '2025-02-20 18: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-02-20 18:31:18] Production.INFO: count ==3703 [2025-02-20 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:31:05 - End Time 2025-02-20 18:31:05 [2025-02-20 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519582', 'tblTempUsageDetail_20' ) start [2025-02-20 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519582', 'tblTempUsageDetail_20' ) end [2025-02-20 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519582', 'tblTempVendorCDR_20' ) start [2025-02-20 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519582', 'tblTempVendorCDR_20' ) end [2025-02-20 18:31:19] Production.INFO: ProcessCDR(1,14519582,1,1,2) [2025-02-20 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519582', 'tblTempUsageDetail_20' ) start [2025-02-20 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519582', 'tblTempUsageDetail_20' ) end [2025-02-20 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:31:22] Production.INFO: ==11048== Releasing lock... [2025-02-20 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:31:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-20 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:32:05 [end_date_ymd] => 2025-02-20 18:32:05 [RateCDR] => 1 ) [2025-02-20 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:32:05' and `end` < '2025-02-20 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:32:17] Production.INFO: count ==3687 [2025-02-20 18:32:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:32:05 - End Time 2025-02-20 18:32:05 [2025-02-20 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519587', 'tblTempUsageDetail_20' ) start [2025-02-20 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519587', 'tblTempUsageDetail_20' ) end [2025-02-20 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519587', 'tblTempVendorCDR_20' ) start [2025-02-20 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519587', 'tblTempVendorCDR_20' ) end [2025-02-20 18:32:19] Production.INFO: ProcessCDR(1,14519587,1,1,2) [2025-02-20 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519587', 'tblTempUsageDetail_20' ) start [2025-02-20 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519587', 'tblTempUsageDetail_20' ) end [2025-02-20 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:32:23] Production.INFO: ==11138== Releasing lock... [2025-02-20 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:32:23] Production.INFO: 56 MB #Memory Used# [2025-02-20 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:33:05 [end_date_ymd] => 2025-02-20 18:33:05 [RateCDR] => 1 ) [2025-02-20 18: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-02-20 15:33:05' and `end` < '2025-02-20 18: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-02-20 18:33:18] Production.INFO: count ==3676 [2025-02-20 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:33:05 - End Time 2025-02-20 18:33:05 [2025-02-20 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519592', 'tblTempUsageDetail_20' ) start [2025-02-20 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519592', 'tblTempUsageDetail_20' ) end [2025-02-20 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519592', 'tblTempVendorCDR_20' ) start [2025-02-20 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519592', 'tblTempVendorCDR_20' ) end [2025-02-20 18:33:19] Production.INFO: ProcessCDR(1,14519592,1,1,2) [2025-02-20 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519592', 'tblTempUsageDetail_20' ) start [2025-02-20 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519592', 'tblTempUsageDetail_20' ) end [2025-02-20 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:33:23] Production.INFO: ==11231== Releasing lock... [2025-02-20 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:33:23] Production.INFO: 55.75 MB #Memory Used# [2025-02-20 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:34:06 [end_date_ymd] => 2025-02-20 18:34:06 [RateCDR] => 1 ) [2025-02-20 18: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-02-20 15:34:06' and `end` < '2025-02-20 18: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-02-20 18:34:18] Production.INFO: count ==3670 [2025-02-20 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:34:06 - End Time 2025-02-20 18:34:06 [2025-02-20 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519597', 'tblTempUsageDetail_20' ) start [2025-02-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519597', 'tblTempUsageDetail_20' ) end [2025-02-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519597', 'tblTempVendorCDR_20' ) start [2025-02-20 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519597', 'tblTempVendorCDR_20' ) end [2025-02-20 18:34:20] Production.INFO: ProcessCDR(1,14519597,1,1,2) [2025-02-20 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519597', 'tblTempUsageDetail_20' ) start [2025-02-20 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519597', 'tblTempUsageDetail_20' ) end [2025-02-20 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:34:23] Production.INFO: ==11325== Releasing lock... [2025-02-20 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:34:23] Production.INFO: 56 MB #Memory Used# [2025-02-20 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:35:05 [end_date_ymd] => 2025-02-20 18:35:05 [RateCDR] => 1 ) [2025-02-20 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:35:05' and `end` < '2025-02-20 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-02-20 18:35:18] Production.INFO: count ==3671 [2025-02-20 18:35:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:35:05 - End Time 2025-02-20 18:35:05 [2025-02-20 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519602', 'tblTempUsageDetail_20' ) start [2025-02-20 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519602', 'tblTempUsageDetail_20' ) end [2025-02-20 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519602', 'tblTempVendorCDR_20' ) start [2025-02-20 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519602', 'tblTempVendorCDR_20' ) end [2025-02-20 18:35:19] Production.INFO: ProcessCDR(1,14519602,1,1,2) [2025-02-20 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519602', 'tblTempUsageDetail_20' ) start [2025-02-20 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519602', 'tblTempUsageDetail_20' ) end [2025-02-20 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:35:24] Production.INFO: ==11417== Releasing lock... [2025-02-20 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:35:24] Production.INFO: 56 MB #Memory Used# [2025-02-20 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:36:06 [end_date_ymd] => 2025-02-20 18:36:06 [RateCDR] => 1 ) [2025-02-20 18:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:36:06' and `end` < '2025-02-20 18:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:36:18] Production.INFO: count ==3660 [2025-02-20 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:36:06 - End Time 2025-02-20 18:36:06 [2025-02-20 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519607', 'tblTempUsageDetail_20' ) start [2025-02-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519607', 'tblTempUsageDetail_20' ) end [2025-02-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519607', 'tblTempVendorCDR_20' ) start [2025-02-20 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519607', 'tblTempVendorCDR_20' ) end [2025-02-20 18:36:20] Production.INFO: ProcessCDR(1,14519607,1,1,2) [2025-02-20 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519607', 'tblTempUsageDetail_20' ) start [2025-02-20 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519607', 'tblTempUsageDetail_20' ) end [2025-02-20 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:36:25] Production.INFO: ==11509== Releasing lock... [2025-02-20 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:36:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-20 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:37:05 [end_date_ymd] => 2025-02-20 18:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:37:05' and `end` < '2025-02-20 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-02-20 18:37:18] Production.INFO: count ==3649 [2025-02-20 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:37:05 - End Time 2025-02-20 18:37:05 [2025-02-20 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519612', 'tblTempUsageDetail_20' ) start [2025-02-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519612', 'tblTempUsageDetail_20' ) end [2025-02-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519612', 'tblTempVendorCDR_20' ) start [2025-02-20 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519612', 'tblTempVendorCDR_20' ) end [2025-02-20 18:37:19] Production.INFO: ProcessCDR(1,14519612,1,1,2) [2025-02-20 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519612', 'tblTempUsageDetail_20' ) start [2025-02-20 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519612', 'tblTempUsageDetail_20' ) end [2025-02-20 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:37:24] Production.INFO: ==11599== Releasing lock... [2025-02-20 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:37:24] Production.INFO: 56 MB #Memory Used# [2025-02-20 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:38:05 [end_date_ymd] => 2025-02-20 18:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:38:05' and `end` < '2025-02-20 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-02-20 18:38:17] Production.INFO: count ==3629 [2025-02-20 18:38:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:38:05 - End Time 2025-02-20 18:38:05 [2025-02-20 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519617', 'tblTempUsageDetail_20' ) start [2025-02-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519617', 'tblTempUsageDetail_20' ) end [2025-02-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519617', 'tblTempVendorCDR_20' ) start [2025-02-20 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519617', 'tblTempVendorCDR_20' ) end [2025-02-20 18:38:19] Production.INFO: ProcessCDR(1,14519617,1,1,2) [2025-02-20 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519617', 'tblTempUsageDetail_20' ) start [2025-02-20 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519617', 'tblTempUsageDetail_20' ) end [2025-02-20 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:38:22] Production.INFO: ==11692== Releasing lock... [2025-02-20 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:38:22] Production.INFO: 55.5 MB #Memory Used# [2025-02-20 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:39:05 [end_date_ymd] => 2025-02-20 18:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:39:05' and `end` < '2025-02-20 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-02-20 18:39:17] Production.INFO: count ==3619 [2025-02-20 18:39:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:39:05 - End Time 2025-02-20 18:39:05 [2025-02-20 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519622', 'tblTempUsageDetail_20' ) start [2025-02-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519622', 'tblTempUsageDetail_20' ) end [2025-02-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519622', 'tblTempVendorCDR_20' ) start [2025-02-20 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519622', 'tblTempVendorCDR_20' ) end [2025-02-20 18:39:19] Production.INFO: ProcessCDR(1,14519622,1,1,2) [2025-02-20 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519622', 'tblTempUsageDetail_20' ) start [2025-02-20 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519622', 'tblTempUsageDetail_20' ) end [2025-02-20 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:39:22] Production.INFO: ==11780== Releasing lock... [2025-02-20 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:39:22] Production.INFO: 55.25 MB #Memory Used# [2025-02-20 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:40:06 [end_date_ymd] => 2025-02-20 18:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:40:06' and `end` < '2025-02-20 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-02-20 18:40:18] Production.INFO: count ==3601 [2025-02-20 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:40:06 - End Time 2025-02-20 18:40:06 [2025-02-20 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519628', 'tblTempUsageDetail_20' ) start [2025-02-20 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519628', 'tblTempUsageDetail_20' ) end [2025-02-20 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519628', 'tblTempVendorCDR_20' ) start [2025-02-20 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519628', 'tblTempVendorCDR_20' ) end [2025-02-20 18:40:20] Production.INFO: ProcessCDR(1,14519628,1,1,2) [2025-02-20 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519628', 'tblTempUsageDetail_20' ) start [2025-02-20 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519628', 'tblTempUsageDetail_20' ) end [2025-02-20 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:40:23] Production.INFO: ==11876== Releasing lock... [2025-02-20 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:40:23] Production.INFO: 55 MB #Memory Used# [2025-02-20 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:41:05 [end_date_ymd] => 2025-02-20 18:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:41:05' and `end` < '2025-02-20 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-02-20 18:41:17] Production.INFO: count ==3539 [2025-02-20 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:41:05 - End Time 2025-02-20 18:41:05 [2025-02-20 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519633', 'tblTempUsageDetail_20' ) start [2025-02-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519633', 'tblTempUsageDetail_20' ) end [2025-02-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519633', 'tblTempVendorCDR_20' ) start [2025-02-20 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519633', 'tblTempVendorCDR_20' ) end [2025-02-20 18:41:19] Production.INFO: ProcessCDR(1,14519633,1,1,2) [2025-02-20 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519633', 'tblTempUsageDetail_20' ) start [2025-02-20 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519633', 'tblTempUsageDetail_20' ) end [2025-02-20 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:41:24] Production.INFO: ==11970== Releasing lock... [2025-02-20 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:41:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-20 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:42:05 [end_date_ymd] => 2025-02-20 18:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:42:05' and `end` < '2025-02-20 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-02-20 18:42:18] Production.INFO: count ==3508 [2025-02-20 18:42:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:42:05 - End Time 2025-02-20 18:42:05 [2025-02-20 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519638', 'tblTempUsageDetail_20' ) start [2025-02-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519638', 'tblTempUsageDetail_20' ) end [2025-02-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519638', 'tblTempVendorCDR_20' ) start [2025-02-20 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519638', 'tblTempVendorCDR_20' ) end [2025-02-20 18:42:19] Production.INFO: ProcessCDR(1,14519638,1,1,2) [2025-02-20 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519638', 'tblTempUsageDetail_20' ) start [2025-02-20 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519638', 'tblTempUsageDetail_20' ) end [2025-02-20 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:42:24] Production.INFO: ==12102== Releasing lock... [2025-02-20 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:42:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-20 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:43:04 [end_date_ymd] => 2025-02-20 18:43:04 [RateCDR] => 1 ) [2025-02-20 18:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:43:04' and `end` < '2025-02-20 18:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:43:17] Production.INFO: count ==3505 [2025-02-20 18:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:43:04 - End Time 2025-02-20 18:43:04 [2025-02-20 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519643', 'tblTempUsageDetail_20' ) start [2025-02-20 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519643', 'tblTempUsageDetail_20' ) end [2025-02-20 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519643', 'tblTempVendorCDR_20' ) start [2025-02-20 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519643', 'tblTempVendorCDR_20' ) end [2025-02-20 18:43:18] Production.INFO: ProcessCDR(1,14519643,1,1,2) [2025-02-20 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519643', 'tblTempUsageDetail_20' ) start [2025-02-20 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519643', 'tblTempUsageDetail_20' ) end [2025-02-20 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:43:22] Production.INFO: ==12189== Releasing lock... [2025-02-20 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:43:22] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:44:05 [end_date_ymd] => 2025-02-20 18:44:05 [RateCDR] => 1 ) [2025-02-20 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:44:05' and `end` < '2025-02-20 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:44:18] Production.INFO: count ==3500 [2025-02-20 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:44:05 - End Time 2025-02-20 18:44:05 [2025-02-20 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519648', 'tblTempUsageDetail_20' ) start [2025-02-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519648', 'tblTempUsageDetail_20' ) end [2025-02-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519648', 'tblTempVendorCDR_20' ) start [2025-02-20 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519648', 'tblTempVendorCDR_20' ) end [2025-02-20 18:44:19] Production.INFO: ProcessCDR(1,14519648,1,1,2) [2025-02-20 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519648', 'tblTempUsageDetail_20' ) start [2025-02-20 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519648', 'tblTempUsageDetail_20' ) end [2025-02-20 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:44:24] Production.INFO: ==12280== Releasing lock... [2025-02-20 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:44:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-20 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:45:05 [end_date_ymd] => 2025-02-20 18:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:45:05' and `end` < '2025-02-20 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-02-20 18:45:17] Production.INFO: count ==3485 [2025-02-20 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:45:05 - End Time 2025-02-20 18:45:05 [2025-02-20 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519653', 'tblTempUsageDetail_20' ) start [2025-02-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519653', 'tblTempUsageDetail_20' ) end [2025-02-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519653', 'tblTempVendorCDR_20' ) start [2025-02-20 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519653', 'tblTempVendorCDR_20' ) end [2025-02-20 18:45:19] Production.INFO: ProcessCDR(1,14519653,1,1,2) [2025-02-20 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519653', 'tblTempUsageDetail_20' ) start [2025-02-20 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519653', 'tblTempUsageDetail_20' ) end [2025-02-20 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:45:22] Production.INFO: ==12371== Releasing lock... [2025-02-20 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:45:22] Production.INFO: 54 MB #Memory Used# [2025-02-20 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:46:05 [end_date_ymd] => 2025-02-20 18:46:05 [RateCDR] => 1 ) [2025-02-20 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:46:05' and `end` < '2025-02-20 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:46:17] Production.INFO: count ==3490 [2025-02-20 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:46:05 - End Time 2025-02-20 18:46:05 [2025-02-20 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519658', 'tblTempUsageDetail_20' ) start [2025-02-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519658', 'tblTempUsageDetail_20' ) end [2025-02-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519658', 'tblTempVendorCDR_20' ) start [2025-02-20 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519658', 'tblTempVendorCDR_20' ) end [2025-02-20 18:46:19] Production.INFO: ProcessCDR(1,14519658,1,1,2) [2025-02-20 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519658', 'tblTempUsageDetail_20' ) start [2025-02-20 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519658', 'tblTempUsageDetail_20' ) end [2025-02-20 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:46:23] Production.INFO: ==12466== Releasing lock... [2025-02-20 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:46:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:47:05 [end_date_ymd] => 2025-02-20 18:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:47:05' and `end` < '2025-02-20 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-02-20 18:47:17] Production.INFO: count ==3512 [2025-02-20 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:47:05 - End Time 2025-02-20 18:47:05 [2025-02-20 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519663', 'tblTempUsageDetail_20' ) start [2025-02-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519663', 'tblTempUsageDetail_20' ) end [2025-02-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519663', 'tblTempVendorCDR_20' ) start [2025-02-20 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519663', 'tblTempVendorCDR_20' ) end [2025-02-20 18:47:19] Production.INFO: ProcessCDR(1,14519663,1,1,2) [2025-02-20 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519663', 'tblTempUsageDetail_20' ) start [2025-02-20 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519663', 'tblTempUsageDetail_20' ) end [2025-02-20 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:47:23] Production.INFO: ==12559== Releasing lock... [2025-02-20 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:47:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-20 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:48:05 [end_date_ymd] => 2025-02-20 18:48:05 [RateCDR] => 1 ) [2025-02-20 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:48:05' and `end` < '2025-02-20 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:48:18] Production.INFO: count ==3518 [2025-02-20 18:48:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:48:05 - End Time 2025-02-20 18:48:05 [2025-02-20 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519668', 'tblTempUsageDetail_20' ) start [2025-02-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519668', 'tblTempUsageDetail_20' ) end [2025-02-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519668', 'tblTempVendorCDR_20' ) start [2025-02-20 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519668', 'tblTempVendorCDR_20' ) end [2025-02-20 18:48:19] Production.INFO: ProcessCDR(1,14519668,1,1,2) [2025-02-20 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519668', 'tblTempUsageDetail_20' ) start [2025-02-20 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519668', 'tblTempUsageDetail_20' ) end [2025-02-20 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:48:24] Production.INFO: ==12653== Releasing lock... [2025-02-20 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:48:24] Production.INFO: 55 MB #Memory Used# [2025-02-20 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:49:05 [end_date_ymd] => 2025-02-20 18:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:49:05' and `end` < '2025-02-20 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-02-20 18:49:18] Production.INFO: count ==3508 [2025-02-20 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:49:05 - End Time 2025-02-20 18:49:05 [2025-02-20 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519673', 'tblTempUsageDetail_20' ) start [2025-02-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519673', 'tblTempUsageDetail_20' ) end [2025-02-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519673', 'tblTempVendorCDR_20' ) start [2025-02-20 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519673', 'tblTempVendorCDR_20' ) end [2025-02-20 18:49:19] Production.INFO: ProcessCDR(1,14519673,1,1,2) [2025-02-20 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519673', 'tblTempUsageDetail_20' ) start [2025-02-20 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519673', 'tblTempUsageDetail_20' ) end [2025-02-20 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:49:24] Production.INFO: ==12745== Releasing lock... [2025-02-20 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:49:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:50:06 [end_date_ymd] => 2025-02-20 18:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:50:06' and `end` < '2025-02-20 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-02-20 18:50:19] Production.INFO: count ==3508 [2025-02-20 18:50:20] Production.ERROR: pbx CDR StartTime 2025-02-20 15:50:06 - End Time 2025-02-20 18:50:06 [2025-02-20 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519679', 'tblTempUsageDetail_20' ) start [2025-02-20 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519679', 'tblTempUsageDetail_20' ) end [2025-02-20 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519679', 'tblTempVendorCDR_20' ) start [2025-02-20 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519679', 'tblTempVendorCDR_20' ) end [2025-02-20 18:50:20] Production.INFO: ProcessCDR(1,14519679,1,1,2) [2025-02-20 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519679', 'tblTempUsageDetail_20' ) start [2025-02-20 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519679', 'tblTempUsageDetail_20' ) end [2025-02-20 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:50:23] Production.INFO: ==12835== Releasing lock... [2025-02-20 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:50:23] Production.INFO: 54.5 MB #Memory Used# [2025-02-20 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:51:04 [end_date_ymd] => 2025-02-20 18:51:04 [RateCDR] => 1 ) [2025-02-20 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:51:04' and `end` < '2025-02-20 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:51:17] Production.INFO: count ==3477 [2025-02-20 18:51:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:51:04 - End Time 2025-02-20 18:51:04 [2025-02-20 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519684', 'tblTempUsageDetail_20' ) start [2025-02-20 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519684', 'tblTempUsageDetail_20' ) end [2025-02-20 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519684', 'tblTempVendorCDR_20' ) start [2025-02-20 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519684', 'tblTempVendorCDR_20' ) end [2025-02-20 18:51:18] Production.INFO: ProcessCDR(1,14519684,1,1,2) [2025-02-20 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519684', 'tblTempUsageDetail_20' ) start [2025-02-20 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519684', 'tblTempUsageDetail_20' ) end [2025-02-20 18:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:51:22] Production.INFO: ==12926== Releasing lock... [2025-02-20 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:51:22] Production.INFO: 54 MB #Memory Used# [2025-02-20 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:52:05 [end_date_ymd] => 2025-02-20 18:52:05 [RateCDR] => 1 ) [2025-02-20 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:52:05' and `end` < '2025-02-20 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:52:18] Production.INFO: count ==3478 [2025-02-20 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:52:05 - End Time 2025-02-20 18:52:05 [2025-02-20 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519689', 'tblTempUsageDetail_20' ) start [2025-02-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519689', 'tblTempUsageDetail_20' ) end [2025-02-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519689', 'tblTempVendorCDR_20' ) start [2025-02-20 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519689', 'tblTempVendorCDR_20' ) end [2025-02-20 18:52:19] Production.INFO: ProcessCDR(1,14519689,1,1,2) [2025-02-20 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519689', 'tblTempUsageDetail_20' ) start [2025-02-20 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519689', 'tblTempUsageDetail_20' ) end [2025-02-20 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:52:23] Production.INFO: ==13015== Releasing lock... [2025-02-20 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:52:23] Production.INFO: 54 MB #Memory Used# [2025-02-20 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:53:05 [end_date_ymd] => 2025-02-20 18:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:53:05' and `end` < '2025-02-20 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-02-20 18:53:18] Production.INFO: count ==3493 [2025-02-20 18:53:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:53:05 - End Time 2025-02-20 18:53:05 [2025-02-20 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519694', 'tblTempUsageDetail_20' ) start [2025-02-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519694', 'tblTempUsageDetail_20' ) end [2025-02-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519694', 'tblTempVendorCDR_20' ) start [2025-02-20 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519694', 'tblTempVendorCDR_20' ) end [2025-02-20 18:53:19] Production.INFO: ProcessCDR(1,14519694,1,1,2) [2025-02-20 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519694', 'tblTempUsageDetail_20' ) start [2025-02-20 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519694', 'tblTempUsageDetail_20' ) end [2025-02-20 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:53:24] Production.INFO: ==13107== Releasing lock... [2025-02-20 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:53:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:54:06 [end_date_ymd] => 2025-02-20 18:54:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:54:06' and `end` < '2025-02-20 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-02-20 18:54:18] Production.INFO: count ==3470 [2025-02-20 18:54:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:54:06 - End Time 2025-02-20 18:54:06 [2025-02-20 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519699', 'tblTempUsageDetail_20' ) start [2025-02-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519699', 'tblTempUsageDetail_20' ) end [2025-02-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519699', 'tblTempVendorCDR_20' ) start [2025-02-20 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519699', 'tblTempVendorCDR_20' ) end [2025-02-20 18:54:19] Production.INFO: ProcessCDR(1,14519699,1,1,2) [2025-02-20 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519699', 'tblTempUsageDetail_20' ) start [2025-02-20 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519699', 'tblTempUsageDetail_20' ) end [2025-02-20 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:54:24] Production.INFO: ==13195== Releasing lock... [2025-02-20 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:54:24] Production.INFO: 54 MB #Memory Used# [2025-02-20 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:55:06 [end_date_ymd] => 2025-02-20 18:55:06 [RateCDR] => 1 ) [2025-02-20 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:55:06' and `end` < '2025-02-20 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:55:18] Production.INFO: count ==3464 [2025-02-20 18:55:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:55:06 - End Time 2025-02-20 18:55:06 [2025-02-20 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519704', 'tblTempUsageDetail_20' ) start [2025-02-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519704', 'tblTempUsageDetail_20' ) end [2025-02-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519704', 'tblTempVendorCDR_20' ) start [2025-02-20 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519704', 'tblTempVendorCDR_20' ) end [2025-02-20 18:55:19] Production.INFO: ProcessCDR(1,14519704,1,1,2) [2025-02-20 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519704', 'tblTempUsageDetail_20' ) start [2025-02-20 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519704', 'tblTempUsageDetail_20' ) end [2025-02-20 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:55:24] Production.INFO: ==13287== Releasing lock... [2025-02-20 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:55:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-20 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:56:05 [end_date_ymd] => 2025-02-20 18:56:05 [RateCDR] => 1 ) [2025-02-20 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:56:05' and `end` < '2025-02-20 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:56:18] Production.INFO: count ==3440 [2025-02-20 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:56:05 - End Time 2025-02-20 18:56:05 [2025-02-20 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519709', 'tblTempUsageDetail_20' ) start [2025-02-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519709', 'tblTempUsageDetail_20' ) end [2025-02-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519709', 'tblTempVendorCDR_20' ) start [2025-02-20 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519709', 'tblTempVendorCDR_20' ) end [2025-02-20 18:56:19] Production.INFO: ProcessCDR(1,14519709,1,1,2) [2025-02-20 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519709', 'tblTempUsageDetail_20' ) start [2025-02-20 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519709', 'tblTempUsageDetail_20' ) end [2025-02-20 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:56:22] Production.INFO: ==13378== Releasing lock... [2025-02-20 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:56:22] Production.INFO: 54 MB #Memory Used# [2025-02-20 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:57:05 [end_date_ymd] => 2025-02-20 18:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:57:05' and `end` < '2025-02-20 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-02-20 18:57:18] Production.INFO: count ==3437 [2025-02-20 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:57:05 - End Time 2025-02-20 18:57:05 [2025-02-20 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519714', 'tblTempUsageDetail_20' ) start [2025-02-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519714', 'tblTempUsageDetail_20' ) end [2025-02-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519714', 'tblTempVendorCDR_20' ) start [2025-02-20 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519714', 'tblTempVendorCDR_20' ) end [2025-02-20 18:57:19] Production.INFO: ProcessCDR(1,14519714,1,1,2) [2025-02-20 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519714', 'tblTempUsageDetail_20' ) start [2025-02-20 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519714', 'tblTempUsageDetail_20' ) end [2025-02-20 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:57:24] Production.INFO: ==13509== Releasing lock... [2025-02-20 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:57:24] Production.INFO: 53.75 MB #Memory Used# [2025-02-20 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:58:05 [end_date_ymd] => 2025-02-20 18:58:05 [RateCDR] => 1 ) [2025-02-20 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 15:58:05' and `end` < '2025-02-20 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 18:58:17] Production.INFO: count ==3430 [2025-02-20 18:58:18] Production.ERROR: pbx CDR StartTime 2025-02-20 15:58:05 - End Time 2025-02-20 18:58:05 [2025-02-20 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519719', 'tblTempUsageDetail_20' ) start [2025-02-20 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519719', 'tblTempUsageDetail_20' ) end [2025-02-20 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519719', 'tblTempVendorCDR_20' ) start [2025-02-20 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519719', 'tblTempVendorCDR_20' ) end [2025-02-20 18:58:19] Production.INFO: ProcessCDR(1,14519719,1,1,2) [2025-02-20 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519719', 'tblTempUsageDetail_20' ) start [2025-02-20 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519719', 'tblTempUsageDetail_20' ) end [2025-02-20 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:58:22] Production.INFO: ==13600== Releasing lock... [2025-02-20 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:58:22] Production.INFO: 53.5 MB #Memory Used# [2025-02-20 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 15:59:05 [end_date_ymd] => 2025-02-20 18:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 15:59:05' and `end` < '2025-02-20 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-02-20 18:59:17] Production.INFO: count ==3427 [2025-02-20 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-20 15:59:05 - End Time 2025-02-20 18:59:05 [2025-02-20 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519724', 'tblTempUsageDetail_20' ) start [2025-02-20 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519724', 'tblTempUsageDetail_20' ) end [2025-02-20 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519724', 'tblTempVendorCDR_20' ) start [2025-02-20 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519724', 'tblTempVendorCDR_20' ) end [2025-02-20 18:59:19] Production.INFO: ProcessCDR(1,14519724,1,1,2) [2025-02-20 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519724', 'tblTempUsageDetail_20' ) start [2025-02-20 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519724', 'tblTempUsageDetail_20' ) end [2025-02-20 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 18:59:22] Production.INFO: ==13691== Releasing lock... [2025-02-20 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 18:59:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-20 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:00:06 [end_date_ymd] => 2025-02-20 19:00:06 [RateCDR] => 1 ) [2025-02-20 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:00:06' and `end` < '2025-02-20 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:00:19] Production.INFO: count ==3427 [2025-02-20 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-20 16:00:06 - End Time 2025-02-20 19:00:06 [2025-02-20 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519730', 'tblTempUsageDetail_20' ) start [2025-02-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519730', 'tblTempUsageDetail_20' ) end [2025-02-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519730', 'tblTempVendorCDR_20' ) start [2025-02-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519730', 'tblTempVendorCDR_20' ) end [2025-02-20 19:00:20] Production.INFO: ProcessCDR(1,14519730,1,1,2) [2025-02-20 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519730', 'tblTempUsageDetail_20' ) start [2025-02-20 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519730', 'tblTempUsageDetail_20' ) end [2025-02-20 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:00:25] Production.INFO: ==13784== Releasing lock... [2025-02-20 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:00:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-20 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:01:05 [end_date_ymd] => 2025-02-20 19:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:01:05' and `end` < '2025-02-20 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-02-20 19:01:18] Production.INFO: count ==3386 [2025-02-20 19:01:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:01:05 - End Time 2025-02-20 19:01:05 [2025-02-20 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519735', 'tblTempUsageDetail_20' ) start [2025-02-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519735', 'tblTempUsageDetail_20' ) end [2025-02-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519735', 'tblTempVendorCDR_20' ) start [2025-02-20 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519735', 'tblTempVendorCDR_20' ) end [2025-02-20 19:01:19] Production.INFO: ProcessCDR(1,14519735,1,1,2) [2025-02-20 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519735', 'tblTempUsageDetail_20' ) start [2025-02-20 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519735', 'tblTempUsageDetail_20' ) end [2025-02-20 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:01:24] Production.INFO: ==13971== Releasing lock... [2025-02-20 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:01:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-20 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:02:05 [end_date_ymd] => 2025-02-20 19:02:05 [RateCDR] => 1 ) [2025-02-20 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:02:05' and `end` < '2025-02-20 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:02:17] Production.INFO: count ==3380 [2025-02-20 19:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:02:05 - End Time 2025-02-20 19:02:05 [2025-02-20 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519740', 'tblTempUsageDetail_20' ) start [2025-02-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519740', 'tblTempUsageDetail_20' ) end [2025-02-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519740', 'tblTempVendorCDR_20' ) start [2025-02-20 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519740', 'tblTempVendorCDR_20' ) end [2025-02-20 19:02:18] Production.INFO: ProcessCDR(1,14519740,1,1,2) [2025-02-20 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519740', 'tblTempUsageDetail_20' ) start [2025-02-20 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519740', 'tblTempUsageDetail_20' ) end [2025-02-20 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:02:22] Production.INFO: ==14059== Releasing lock... [2025-02-20 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:02:22] Production.INFO: 53.25 MB #Memory Used# [2025-02-20 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:03:05 [end_date_ymd] => 2025-02-20 19:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:03:05' and `end` < '2025-02-20 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-02-20 19:03:18] Production.INFO: count ==3368 [2025-02-20 19:03:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:03:05 - End Time 2025-02-20 19:03:05 [2025-02-20 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519745', 'tblTempUsageDetail_20' ) start [2025-02-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519745', 'tblTempUsageDetail_20' ) end [2025-02-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519745', 'tblTempVendorCDR_20' ) start [2025-02-20 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519745', 'tblTempVendorCDR_20' ) end [2025-02-20 19:03:19] Production.INFO: ProcessCDR(1,14519745,1,1,2) [2025-02-20 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519745', 'tblTempUsageDetail_20' ) start [2025-02-20 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519745', 'tblTempUsageDetail_20' ) end [2025-02-20 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:03:23] Production.INFO: ==14151== Releasing lock... [2025-02-20 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:03:23] Production.INFO: 54 MB #Memory Used# [2025-02-20 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:04:06 [end_date_ymd] => 2025-02-20 19:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:04:06' and `end` < '2025-02-20 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-02-20 19:04:18] Production.INFO: count ==3343 [2025-02-20 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:04:06 - End Time 2025-02-20 19:04:06 [2025-02-20 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519750', 'tblTempUsageDetail_20' ) start [2025-02-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519750', 'tblTempUsageDetail_20' ) end [2025-02-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519750', 'tblTempVendorCDR_20' ) start [2025-02-20 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519750', 'tblTempVendorCDR_20' ) end [2025-02-20 19:04:19] Production.INFO: ProcessCDR(1,14519750,1,1,2) [2025-02-20 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519750', 'tblTempUsageDetail_20' ) start [2025-02-20 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519750', 'tblTempUsageDetail_20' ) end [2025-02-20 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:04:23] Production.INFO: ==14229== Releasing lock... [2025-02-20 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:04:23] Production.INFO: 53 MB #Memory Used# [2025-02-20 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:05:05 [end_date_ymd] => 2025-02-20 19:05:05 [RateCDR] => 1 ) [2025-02-20 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:05:05' and `end` < '2025-02-20 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:05:18] Production.INFO: count ==3333 [2025-02-20 19:05:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:05:05 - End Time 2025-02-20 19:05:05 [2025-02-20 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519755', 'tblTempUsageDetail_20' ) start [2025-02-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519755', 'tblTempUsageDetail_20' ) end [2025-02-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519755', 'tblTempVendorCDR_20' ) start [2025-02-20 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519755', 'tblTempVendorCDR_20' ) end [2025-02-20 19:05:19] Production.INFO: ProcessCDR(1,14519755,1,1,2) [2025-02-20 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519755', 'tblTempUsageDetail_20' ) start [2025-02-20 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519755', 'tblTempUsageDetail_20' ) end [2025-02-20 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:05:24] Production.INFO: ==14381== Releasing lock... [2025-02-20 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:05:24] Production.INFO: 53 MB #Memory Used# [2025-02-20 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:06:06 [end_date_ymd] => 2025-02-20 19:06:06 [RateCDR] => 1 ) [2025-02-20 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:06:06' and `end` < '2025-02-20 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:06:18] Production.INFO: count ==3331 [2025-02-20 19:06:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:06:06 - End Time 2025-02-20 19:06:06 [2025-02-20 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519760', 'tblTempUsageDetail_20' ) start [2025-02-20 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519760', 'tblTempUsageDetail_20' ) end [2025-02-20 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519760', 'tblTempVendorCDR_20' ) start [2025-02-20 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519760', 'tblTempVendorCDR_20' ) end [2025-02-20 19:06:20] Production.INFO: ProcessCDR(1,14519760,1,1,2) [2025-02-20 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519760', 'tblTempUsageDetail_20' ) start [2025-02-20 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519760', 'tblTempUsageDetail_20' ) end [2025-02-20 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:06:23] Production.INFO: ==14453== Releasing lock... [2025-02-20 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:06:23] Production.INFO: 52.75 MB #Memory Used# [2025-02-20 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:07:05 [end_date_ymd] => 2025-02-20 19:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:07:05' and `end` < '2025-02-20 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-02-20 19:07:17] Production.INFO: count ==3316 [2025-02-20 19:07:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:07:05 - End Time 2025-02-20 19:07:05 [2025-02-20 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519765', 'tblTempUsageDetail_20' ) start [2025-02-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519765', 'tblTempUsageDetail_20' ) end [2025-02-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519765', 'tblTempVendorCDR_20' ) start [2025-02-20 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519765', 'tblTempVendorCDR_20' ) end [2025-02-20 19:07:19] Production.INFO: ProcessCDR(1,14519765,1,1,2) [2025-02-20 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519765', 'tblTempUsageDetail_20' ) start [2025-02-20 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519765', 'tblTempUsageDetail_20' ) end [2025-02-20 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:07:22] Production.INFO: ==14522== Releasing lock... [2025-02-20 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:07:22] Production.INFO: 52.75 MB #Memory Used# [2025-02-20 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:08:05 [end_date_ymd] => 2025-02-20 19:08:05 [RateCDR] => 1 ) [2025-02-20 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:08:05' and `end` < '2025-02-20 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:08:18] Production.INFO: count ==3295 [2025-02-20 19:08:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:08:05 - End Time 2025-02-20 19:08:05 [2025-02-20 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519770', 'tblTempUsageDetail_20' ) start [2025-02-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519770', 'tblTempUsageDetail_20' ) end [2025-02-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519770', 'tblTempVendorCDR_20' ) start [2025-02-20 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519770', 'tblTempVendorCDR_20' ) end [2025-02-20 19:08:19] Production.INFO: ProcessCDR(1,14519770,1,1,2) [2025-02-20 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519770', 'tblTempUsageDetail_20' ) start [2025-02-20 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519770', 'tblTempUsageDetail_20' ) end [2025-02-20 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:08:23] Production.INFO: ==14674== Releasing lock... [2025-02-20 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:08:23] Production.INFO: 53 MB #Memory Used# [2025-02-20 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:09:05 [end_date_ymd] => 2025-02-20 19:09:05 [RateCDR] => 1 ) [2025-02-20 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:09:05' and `end` < '2025-02-20 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:09:17] Production.INFO: count ==3274 [2025-02-20 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:09:05 - End Time 2025-02-20 19:09:05 [2025-02-20 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519775', 'tblTempUsageDetail_20' ) start [2025-02-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519775', 'tblTempUsageDetail_20' ) end [2025-02-20 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519775', 'tblTempVendorCDR_20' ) start [2025-02-20 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519775', 'tblTempVendorCDR_20' ) end [2025-02-20 19:09:19] Production.INFO: ProcessCDR(1,14519775,1,1,2) [2025-02-20 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519775', 'tblTempUsageDetail_20' ) start [2025-02-20 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519775', 'tblTempUsageDetail_20' ) end [2025-02-20 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:09:22] Production.INFO: ==14744== Releasing lock... [2025-02-20 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:09:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-20 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:10:06 [end_date_ymd] => 2025-02-20 19:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:10:06' and `end` < '2025-02-20 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:10:19] Production.INFO: count ==3267 [2025-02-20 19:10:20] Production.ERROR: pbx CDR StartTime 2025-02-20 16:10:06 - End Time 2025-02-20 19:10:06 [2025-02-20 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519781', 'tblTempUsageDetail_20' ) start [2025-02-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519781', 'tblTempUsageDetail_20' ) end [2025-02-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519781', 'tblTempVendorCDR_20' ) start [2025-02-20 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519781', 'tblTempVendorCDR_20' ) end [2025-02-20 19:10:20] Production.INFO: ProcessCDR(1,14519781,1,1,2) [2025-02-20 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519781', 'tblTempUsageDetail_20' ) start [2025-02-20 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519781', 'tblTempUsageDetail_20' ) end [2025-02-20 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:10:24] Production.INFO: ==14819== Releasing lock... [2025-02-20 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:10:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-20 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:11:05 [end_date_ymd] => 2025-02-20 19:11:05 [RateCDR] => 1 ) [2025-02-20 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:11:05' and `end` < '2025-02-20 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:11:17] Production.INFO: count ==3305 [2025-02-20 19:11:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:11:05 - End Time 2025-02-20 19:11:05 [2025-02-20 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519786', 'tblTempUsageDetail_20' ) start [2025-02-20 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519786', 'tblTempUsageDetail_20' ) end [2025-02-20 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519786', 'tblTempVendorCDR_20' ) start [2025-02-20 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519786', 'tblTempVendorCDR_20' ) end [2025-02-20 19:11:18] Production.INFO: ProcessCDR(1,14519786,1,1,2) [2025-02-20 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519786', 'tblTempUsageDetail_20' ) start [2025-02-20 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519786', 'tblTempUsageDetail_20' ) end [2025-02-20 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:11:23] Production.INFO: ==14892== Releasing lock... [2025-02-20 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:11:23] Production.INFO: 52.75 MB #Memory Used# [2025-02-20 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:12:05 [end_date_ymd] => 2025-02-20 19:12:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:12:05' and `end` < '2025-02-20 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:12:18] Production.INFO: count ==3288 [2025-02-20 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:12:05 - End Time 2025-02-20 19:12:05 [2025-02-20 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519791', 'tblTempUsageDetail_20' ) start [2025-02-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519791', 'tblTempUsageDetail_20' ) end [2025-02-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519791', 'tblTempVendorCDR_20' ) start [2025-02-20 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519791', 'tblTempVendorCDR_20' ) end [2025-02-20 19:12:19] Production.INFO: ProcessCDR(1,14519791,1,1,2) [2025-02-20 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519791', 'tblTempUsageDetail_20' ) start [2025-02-20 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519791', 'tblTempUsageDetail_20' ) end [2025-02-20 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:12:24] Production.INFO: ==15080== Releasing lock... [2025-02-20 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:12:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-20 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:13:04 [end_date_ymd] => 2025-02-20 19:13:04 [RateCDR] => 1 ) [2025-02-20 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:13:04' and `end` < '2025-02-20 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:13:17] Production.INFO: count ==3277 [2025-02-20 19:13:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:13:04 - End Time 2025-02-20 19:13:04 [2025-02-20 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519796', 'tblTempUsageDetail_20' ) start [2025-02-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519796', 'tblTempUsageDetail_20' ) end [2025-02-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519796', 'tblTempVendorCDR_20' ) start [2025-02-20 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519796', 'tblTempVendorCDR_20' ) end [2025-02-20 19:13:18] Production.INFO: ProcessCDR(1,14519796,1,1,2) [2025-02-20 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519796', 'tblTempUsageDetail_20' ) start [2025-02-20 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519796', 'tblTempUsageDetail_20' ) end [2025-02-20 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:13:21] Production.INFO: ==15150== Releasing lock... [2025-02-20 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:13:21] Production.INFO: 52.75 MB #Memory Used# [2025-02-20 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:14:05 [end_date_ymd] => 2025-02-20 19:14:05 [RateCDR] => 1 ) [2025-02-20 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:14:05' and `end` < '2025-02-20 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:14:18] Production.INFO: count ==3267 [2025-02-20 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:14:05 - End Time 2025-02-20 19:14:05 [2025-02-20 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519801', 'tblTempUsageDetail_20' ) start [2025-02-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519801', 'tblTempUsageDetail_20' ) end [2025-02-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519801', 'tblTempVendorCDR_20' ) start [2025-02-20 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519801', 'tblTempVendorCDR_20' ) end [2025-02-20 19:14:19] Production.INFO: ProcessCDR(1,14519801,1,1,2) [2025-02-20 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519801', 'tblTempUsageDetail_20' ) start [2025-02-20 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519801', 'tblTempUsageDetail_20' ) end [2025-02-20 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:14:22] Production.INFO: ==15228== Releasing lock... [2025-02-20 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:14:22] Production.INFO: 52.75 MB #Memory Used# [2025-02-20 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:15:05 [end_date_ymd] => 2025-02-20 19:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:15:05' and `end` < '2025-02-20 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-02-20 19:15:17] Production.INFO: count ==3256 [2025-02-20 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:15:05 - End Time 2025-02-20 19:15:05 [2025-02-20 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519806', 'tblTempUsageDetail_20' ) start [2025-02-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519806', 'tblTempUsageDetail_20' ) end [2025-02-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519806', 'tblTempVendorCDR_20' ) start [2025-02-20 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519806', 'tblTempVendorCDR_20' ) end [2025-02-20 19:15:18] Production.INFO: ProcessCDR(1,14519806,1,1,2) [2025-02-20 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519806', 'tblTempUsageDetail_20' ) start [2025-02-20 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519806', 'tblTempUsageDetail_20' ) end [2025-02-20 19:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:15:21] Production.INFO: ==15377== Releasing lock... [2025-02-20 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:15:21] Production.INFO: 52.25 MB #Memory Used# [2025-02-20 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:16:05 [end_date_ymd] => 2025-02-20 19:16:05 [RateCDR] => 1 ) [2025-02-20 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:16:05' and `end` < '2025-02-20 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:16:17] Production.INFO: count ==3246 [2025-02-20 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:16:05 - End Time 2025-02-20 19:16:05 [2025-02-20 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519811', 'tblTempUsageDetail_20' ) start [2025-02-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519811', 'tblTempUsageDetail_20' ) end [2025-02-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519811', 'tblTempVendorCDR_20' ) start [2025-02-20 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519811', 'tblTempVendorCDR_20' ) end [2025-02-20 19:16:19] Production.INFO: ProcessCDR(1,14519811,1,1,2) [2025-02-20 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519811', 'tblTempUsageDetail_20' ) start [2025-02-20 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519811', 'tblTempUsageDetail_20' ) end [2025-02-20 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:16:22] Production.INFO: ==15447== Releasing lock... [2025-02-20 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:16:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-20 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:17:05 [end_date_ymd] => 2025-02-20 19:17:05 [RateCDR] => 1 ) [2025-02-20 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:17:05' and `end` < '2025-02-20 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:17:17] Production.INFO: count ==3225 [2025-02-20 19:17:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:17:05 - End Time 2025-02-20 19:17:05 [2025-02-20 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519816', 'tblTempUsageDetail_20' ) start [2025-02-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519816', 'tblTempUsageDetail_20' ) end [2025-02-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519816', 'tblTempVendorCDR_20' ) start [2025-02-20 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519816', 'tblTempVendorCDR_20' ) end [2025-02-20 19:17:18] Production.INFO: ProcessCDR(1,14519816,1,1,2) [2025-02-20 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519816', 'tblTempUsageDetail_20' ) start [2025-02-20 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519816', 'tblTempUsageDetail_20' ) end [2025-02-20 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:17:23] Production.INFO: ==15518== Releasing lock... [2025-02-20 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:17:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-20 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:18:05 [end_date_ymd] => 2025-02-20 19:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:18:05' and `end` < '2025-02-20 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-02-20 19:18:18] Production.INFO: count ==3215 [2025-02-20 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:18:05 - End Time 2025-02-20 19:18:05 [2025-02-20 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519821', 'tblTempUsageDetail_20' ) start [2025-02-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519821', 'tblTempUsageDetail_20' ) end [2025-02-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519821', 'tblTempVendorCDR_20' ) start [2025-02-20 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519821', 'tblTempVendorCDR_20' ) end [2025-02-20 19:18:19] Production.INFO: ProcessCDR(1,14519821,1,1,2) [2025-02-20 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519821', 'tblTempUsageDetail_20' ) start [2025-02-20 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519821', 'tblTempUsageDetail_20' ) end [2025-02-20 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:18:22] Production.INFO: ==15589== Releasing lock... [2025-02-20 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:18:22] Production.INFO: 52 MB #Memory Used# [2025-02-20 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:19:04 [end_date_ymd] => 2025-02-20 19:19:04 [RateCDR] => 1 ) [2025-02-20 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:19:04' and `end` < '2025-02-20 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:19:16] Production.INFO: count ==3203 [2025-02-20 19:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 16:19:04 - End Time 2025-02-20 19:19:04 [2025-02-20 19:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519826', 'tblTempUsageDetail_20' ) start [2025-02-20 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519826', 'tblTempUsageDetail_20' ) end [2025-02-20 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519826', 'tblTempVendorCDR_20' ) start [2025-02-20 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519826', 'tblTempVendorCDR_20' ) end [2025-02-20 19:19:17] Production.INFO: ProcessCDR(1,14519826,1,1,2) [2025-02-20 19:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519826', 'tblTempUsageDetail_20' ) start [2025-02-20 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519826', 'tblTempUsageDetail_20' ) end [2025-02-20 19:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:19:20] Production.INFO: ==15660== Releasing lock... [2025-02-20 19:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:19:20] Production.INFO: 52.5 MB #Memory Used# [2025-02-20 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:20:06 [end_date_ymd] => 2025-02-20 19:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:20:06' and `end` < '2025-02-20 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-02-20 19:20:18] Production.INFO: count ==3187 [2025-02-20 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:20:06 - End Time 2025-02-20 19:20:06 [2025-02-20 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519831', 'tblTempUsageDetail_20' ) start [2025-02-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519831', 'tblTempUsageDetail_20' ) end [2025-02-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519831', 'tblTempVendorCDR_20' ) start [2025-02-20 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519831', 'tblTempVendorCDR_20' ) end [2025-02-20 19:20:19] Production.INFO: ProcessCDR(1,14519831,1,1,2) [2025-02-20 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519831', 'tblTempUsageDetail_20' ) start [2025-02-20 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519831', 'tblTempUsageDetail_20' ) end [2025-02-20 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:20:23] Production.INFO: ==15733== Releasing lock... [2025-02-20 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:20:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-20 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:21:06 [end_date_ymd] => 2025-02-20 19:21:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:21:06' and `end` < '2025-02-20 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-02-20 19:21:18] Production.INFO: count ==3132 [2025-02-20 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:21:06 - End Time 2025-02-20 19:21:06 [2025-02-20 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519837', 'tblTempUsageDetail_20' ) start [2025-02-20 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519837', 'tblTempUsageDetail_20' ) end [2025-02-20 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519837', 'tblTempVendorCDR_20' ) start [2025-02-20 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519837', 'tblTempVendorCDR_20' ) end [2025-02-20 19:21:20] Production.INFO: ProcessCDR(1,14519837,1,1,2) [2025-02-20 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519837', 'tblTempUsageDetail_20' ) start [2025-02-20 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519837', 'tblTempUsageDetail_20' ) end [2025-02-20 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:21:23] Production.INFO: ==15807== Releasing lock... [2025-02-20 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:21:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-20 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:22:05 [end_date_ymd] => 2025-02-20 19:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:22:05' and `end` < '2025-02-20 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-02-20 19:22:17] Production.INFO: count ==3115 [2025-02-20 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:22:05 - End Time 2025-02-20 19:22:05 [2025-02-20 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519842', 'tblTempUsageDetail_20' ) start [2025-02-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519842', 'tblTempUsageDetail_20' ) end [2025-02-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519842', 'tblTempVendorCDR_20' ) start [2025-02-20 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519842', 'tblTempVendorCDR_20' ) end [2025-02-20 19:22:18] Production.INFO: ProcessCDR(1,14519842,1,1,2) [2025-02-20 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519842', 'tblTempUsageDetail_20' ) start [2025-02-20 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519842', 'tblTempUsageDetail_20' ) end [2025-02-20 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:22:22] Production.INFO: ==15877== Releasing lock... [2025-02-20 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:22:22] Production.INFO: 51.25 MB #Memory Used# [2025-02-20 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:23:06 [end_date_ymd] => 2025-02-20 19:23:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:23:06' and `end` < '2025-02-20 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-02-20 19:23:18] Production.INFO: count ==3115 [2025-02-20 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:23:06 - End Time 2025-02-20 19:23:06 [2025-02-20 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519847', 'tblTempUsageDetail_20' ) start [2025-02-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519847', 'tblTempUsageDetail_20' ) end [2025-02-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519847', 'tblTempVendorCDR_20' ) start [2025-02-20 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519847', 'tblTempVendorCDR_20' ) end [2025-02-20 19:23:19] Production.INFO: ProcessCDR(1,14519847,1,1,2) [2025-02-20 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519847', 'tblTempUsageDetail_20' ) start [2025-02-20 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519847', 'tblTempUsageDetail_20' ) end [2025-02-20 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:23:23] Production.INFO: ==15949== Releasing lock... [2025-02-20 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:23:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-20 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:24:05 [end_date_ymd] => 2025-02-20 19:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:24:05' and `end` < '2025-02-20 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-02-20 19:24:17] Production.INFO: count ==3113 [2025-02-20 19:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:24:05 - End Time 2025-02-20 19:24:05 [2025-02-20 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519852', 'tblTempUsageDetail_20' ) start [2025-02-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519852', 'tblTempUsageDetail_20' ) end [2025-02-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519852', 'tblTempVendorCDR_20' ) start [2025-02-20 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519852', 'tblTempVendorCDR_20' ) end [2025-02-20 19:24:18] Production.INFO: ProcessCDR(1,14519852,1,1,2) [2025-02-20 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519852', 'tblTempUsageDetail_20' ) start [2025-02-20 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519852', 'tblTempUsageDetail_20' ) end [2025-02-20 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:24:21] Production.INFO: ==16018== Releasing lock... [2025-02-20 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:24:21] Production.INFO: 51.75 MB #Memory Used# [2025-02-20 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:25:06 [end_date_ymd] => 2025-02-20 19:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:25:06' and `end` < '2025-02-20 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-02-20 19:25:18] Production.INFO: count ==3119 [2025-02-20 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:25:06 - End Time 2025-02-20 19:25:06 [2025-02-20 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519857', 'tblTempUsageDetail_20' ) start [2025-02-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519857', 'tblTempUsageDetail_20' ) end [2025-02-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519857', 'tblTempVendorCDR_20' ) start [2025-02-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519857', 'tblTempVendorCDR_20' ) end [2025-02-20 19:25:19] Production.INFO: ProcessCDR(1,14519857,1,1,2) [2025-02-20 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519857', 'tblTempUsageDetail_20' ) start [2025-02-20 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519857', 'tblTempUsageDetail_20' ) end [2025-02-20 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:25:24] Production.INFO: ==16095== Releasing lock... [2025-02-20 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:25:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-20 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:26:05 [end_date_ymd] => 2025-02-20 19:26:05 [RateCDR] => 1 ) [2025-02-20 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:26:05' and `end` < '2025-02-20 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:26:17] Production.INFO: count ==3119 [2025-02-20 19:26:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:26:05 - End Time 2025-02-20 19:26:05 [2025-02-20 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519862', 'tblTempUsageDetail_20' ) start [2025-02-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519862', 'tblTempUsageDetail_20' ) end [2025-02-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519862', 'tblTempVendorCDR_20' ) start [2025-02-20 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519862', 'tblTempVendorCDR_20' ) end [2025-02-20 19:26:18] Production.INFO: ProcessCDR(1,14519862,1,1,2) [2025-02-20 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519862', 'tblTempUsageDetail_20' ) start [2025-02-20 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519862', 'tblTempUsageDetail_20' ) end [2025-02-20 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:26:21] Production.INFO: ==16164== Releasing lock... [2025-02-20 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:26:21] Production.INFO: 51.25 MB #Memory Used# [2025-02-20 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:27:05 [end_date_ymd] => 2025-02-20 19:27:05 [RateCDR] => 1 ) [2025-02-20 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:27:05' and `end` < '2025-02-20 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:27:17] Production.INFO: count ==3098 [2025-02-20 19:27:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:27:05 - End Time 2025-02-20 19:27:05 [2025-02-20 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519867', 'tblTempUsageDetail_20' ) start [2025-02-20 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519867', 'tblTempUsageDetail_20' ) end [2025-02-20 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519867', 'tblTempVendorCDR_20' ) start [2025-02-20 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519867', 'tblTempVendorCDR_20' ) end [2025-02-20 19:27:18] Production.INFO: ProcessCDR(1,14519867,1,1,2) [2025-02-20 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519867', 'tblTempUsageDetail_20' ) start [2025-02-20 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519867', 'tblTempUsageDetail_20' ) end [2025-02-20 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:27:23] Production.INFO: ==16243== Releasing lock... [2025-02-20 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:27:23] Production.INFO: 51 MB #Memory Used# [2025-02-20 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:28:05 [end_date_ymd] => 2025-02-20 19:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:28:05' and `end` < '2025-02-20 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-02-20 19:28:17] Production.INFO: count ==3058 [2025-02-20 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:28:05 - End Time 2025-02-20 19:28:05 [2025-02-20 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519872', 'tblTempUsageDetail_20' ) start [2025-02-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519872', 'tblTempUsageDetail_20' ) end [2025-02-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519872', 'tblTempVendorCDR_20' ) start [2025-02-20 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519872', 'tblTempVendorCDR_20' ) end [2025-02-20 19:28:18] Production.INFO: ProcessCDR(1,14519872,1,1,2) [2025-02-20 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519872', 'tblTempUsageDetail_20' ) start [2025-02-20 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519872', 'tblTempUsageDetail_20' ) end [2025-02-20 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:28:23] Production.INFO: ==16354== Releasing lock... [2025-02-20 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:28:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-20 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:29:05 [end_date_ymd] => 2025-02-20 19:29:05 [RateCDR] => 1 ) [2025-02-20 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:29:05' and `end` < '2025-02-20 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:29:18] Production.INFO: count ==3033 [2025-02-20 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:29:05 - End Time 2025-02-20 19:29:05 [2025-02-20 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519877', 'tblTempUsageDetail_20' ) start [2025-02-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519877', 'tblTempUsageDetail_20' ) end [2025-02-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519877', 'tblTempVendorCDR_20' ) start [2025-02-20 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519877', 'tblTempVendorCDR_20' ) end [2025-02-20 19:29:19] Production.INFO: ProcessCDR(1,14519877,1,1,2) [2025-02-20 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519877', 'tblTempUsageDetail_20' ) start [2025-02-20 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519877', 'tblTempUsageDetail_20' ) end [2025-02-20 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:29:23] Production.INFO: ==16423== Releasing lock... [2025-02-20 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:29:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-20 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:30:06 [end_date_ymd] => 2025-02-20 19:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:30:06' and `end` < '2025-02-20 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-02-20 19:30:18] Production.INFO: count ==2999 [2025-02-20 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:30:06 - End Time 2025-02-20 19:30:06 [2025-02-20 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519883', 'tblTempUsageDetail_20' ) start [2025-02-20 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519883', 'tblTempUsageDetail_20' ) end [2025-02-20 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519883', 'tblTempVendorCDR_20' ) start [2025-02-20 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519883', 'tblTempVendorCDR_20' ) end [2025-02-20 19:30:19] Production.INFO: ProcessCDR(1,14519883,1,1,2) [2025-02-20 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519883', 'tblTempUsageDetail_20' ) start [2025-02-20 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519883', 'tblTempUsageDetail_20' ) end [2025-02-20 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:30:23] Production.INFO: ==16500== Releasing lock... [2025-02-20 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:30:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-20 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:31:06 [end_date_ymd] => 2025-02-20 19:31:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:31:06' and `end` < '2025-02-20 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-02-20 19:31:18] Production.INFO: count ==2972 [2025-02-20 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:31:06 - End Time 2025-02-20 19:31:06 [2025-02-20 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519888', 'tblTempUsageDetail_20' ) start [2025-02-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519888', 'tblTempUsageDetail_20' ) end [2025-02-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519888', 'tblTempVendorCDR_20' ) start [2025-02-20 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519888', 'tblTempVendorCDR_20' ) end [2025-02-20 19:31:19] Production.INFO: ProcessCDR(1,14519888,1,1,2) [2025-02-20 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519888', 'tblTempUsageDetail_20' ) start [2025-02-20 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519888', 'tblTempUsageDetail_20' ) end [2025-02-20 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:31:23] Production.INFO: ==16572== Releasing lock... [2025-02-20 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:31:23] Production.INFO: 50 MB #Memory Used# [2025-02-20 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:32:05 [end_date_ymd] => 2025-02-20 19:32:05 [RateCDR] => 1 ) [2025-02-20 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:32:05' and `end` < '2025-02-20 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:32:17] Production.INFO: count ==2967 [2025-02-20 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:32:05 - End Time 2025-02-20 19:32:05 [2025-02-20 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519893', 'tblTempUsageDetail_20' ) start [2025-02-20 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519893', 'tblTempUsageDetail_20' ) end [2025-02-20 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519893', 'tblTempVendorCDR_20' ) start [2025-02-20 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519893', 'tblTempVendorCDR_20' ) end [2025-02-20 19:32:18] Production.INFO: ProcessCDR(1,14519893,1,1,2) [2025-02-20 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519893', 'tblTempUsageDetail_20' ) start [2025-02-20 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519893', 'tblTempUsageDetail_20' ) end [2025-02-20 19:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:32:22] Production.INFO: ==16641== Releasing lock... [2025-02-20 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:32:22] Production.INFO: 50.25 MB #Memory Used# [2025-02-20 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:33:05 [end_date_ymd] => 2025-02-20 19:33:05 [RateCDR] => 1 ) [2025-02-20 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:33:05' and `end` < '2025-02-20 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:33:18] Production.INFO: count ==2964 [2025-02-20 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:33:05 - End Time 2025-02-20 19:33:05 [2025-02-20 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519898', 'tblTempUsageDetail_20' ) start [2025-02-20 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519898', 'tblTempUsageDetail_20' ) end [2025-02-20 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519898', 'tblTempVendorCDR_20' ) start [2025-02-20 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519898', 'tblTempVendorCDR_20' ) end [2025-02-20 19:33:18] Production.INFO: ProcessCDR(1,14519898,1,1,2) [2025-02-20 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519898', 'tblTempUsageDetail_20' ) start [2025-02-20 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519898', 'tblTempUsageDetail_20' ) end [2025-02-20 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:33:23] Production.INFO: ==16711== Releasing lock... [2025-02-20 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:33:23] Production.INFO: 50 MB #Memory Used# [2025-02-20 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:34:04 [end_date_ymd] => 2025-02-20 19:34:04 [RateCDR] => 1 ) [2025-02-20 19:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:34:04' and `end` < '2025-02-20 19:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:34:17] Production.INFO: count ==2957 [2025-02-20 19:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 16:34:04 - End Time 2025-02-20 19:34:04 [2025-02-20 19:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519903', 'tblTempUsageDetail_20' ) start [2025-02-20 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519903', 'tblTempUsageDetail_20' ) end [2025-02-20 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519903', 'tblTempVendorCDR_20' ) start [2025-02-20 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519903', 'tblTempVendorCDR_20' ) end [2025-02-20 19:34:17] Production.INFO: ProcessCDR(1,14519903,1,1,2) [2025-02-20 19:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519903', 'tblTempUsageDetail_20' ) start [2025-02-20 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519903', 'tblTempUsageDetail_20' ) end [2025-02-20 19:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:34:20] Production.INFO: ==16784== Releasing lock... [2025-02-20 19:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:34:20] Production.INFO: 50 MB #Memory Used# [2025-02-20 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:35:05 [end_date_ymd] => 2025-02-20 19:35:05 [RateCDR] => 1 ) [2025-02-20 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:35:05' and `end` < '2025-02-20 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:35:17] Production.INFO: count ==2939 [2025-02-20 19:35:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:35:05 - End Time 2025-02-20 19:35:05 [2025-02-20 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519908', 'tblTempUsageDetail_20' ) start [2025-02-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519908', 'tblTempUsageDetail_20' ) end [2025-02-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519908', 'tblTempVendorCDR_20' ) start [2025-02-20 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519908', 'tblTempVendorCDR_20' ) end [2025-02-20 19:35:18] Production.INFO: ProcessCDR(1,14519908,1,1,2) [2025-02-20 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519908', 'tblTempUsageDetail_20' ) start [2025-02-20 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519908', 'tblTempUsageDetail_20' ) end [2025-02-20 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:35:23] Production.INFO: ==16854== Releasing lock... [2025-02-20 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:35:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-20 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:36:05 [end_date_ymd] => 2025-02-20 19:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:36:05' and `end` < '2025-02-20 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-02-20 19:36:18] Production.INFO: count ==2937 [2025-02-20 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:36:05 - End Time 2025-02-20 19:36:05 [2025-02-20 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519913', 'tblTempUsageDetail_20' ) start [2025-02-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519913', 'tblTempUsageDetail_20' ) end [2025-02-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519913', 'tblTempVendorCDR_20' ) start [2025-02-20 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519913', 'tblTempVendorCDR_20' ) end [2025-02-20 19:36:19] Production.INFO: ProcessCDR(1,14519913,1,1,2) [2025-02-20 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519913', 'tblTempUsageDetail_20' ) start [2025-02-20 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519913', 'tblTempUsageDetail_20' ) end [2025-02-20 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:36:22] Production.INFO: ==16927== Releasing lock... [2025-02-20 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:36:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-20 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:37:05 [end_date_ymd] => 2025-02-20 19:37:05 [RateCDR] => 1 ) [2025-02-20 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:37:05' and `end` < '2025-02-20 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:37:17] Production.INFO: count ==2934 [2025-02-20 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:37:05 - End Time 2025-02-20 19:37:05 [2025-02-20 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519918', 'tblTempUsageDetail_20' ) start [2025-02-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519918', 'tblTempUsageDetail_20' ) end [2025-02-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519918', 'tblTempVendorCDR_20' ) start [2025-02-20 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519918', 'tblTempVendorCDR_20' ) end [2025-02-20 19:37:18] Production.INFO: ProcessCDR(1,14519918,1,1,2) [2025-02-20 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519918', 'tblTempUsageDetail_20' ) start [2025-02-20 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519918', 'tblTempUsageDetail_20' ) end [2025-02-20 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:37:21] Production.INFO: ==16997== Releasing lock... [2025-02-20 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:37:21] Production.INFO: 49.75 MB #Memory Used# [2025-02-20 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:38:05 [end_date_ymd] => 2025-02-20 19:38:05 [RateCDR] => 1 ) [2025-02-20 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:38:05' and `end` < '2025-02-20 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:38:17] Production.INFO: count ==2934 [2025-02-20 19:38:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:38:05 - End Time 2025-02-20 19:38:05 [2025-02-20 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519923', 'tblTempUsageDetail_20' ) start [2025-02-20 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519923', 'tblTempUsageDetail_20' ) end [2025-02-20 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519923', 'tblTempVendorCDR_20' ) start [2025-02-20 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519923', 'tblTempVendorCDR_20' ) end [2025-02-20 19:38:18] Production.INFO: ProcessCDR(1,14519923,1,1,2) [2025-02-20 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519923', 'tblTempUsageDetail_20' ) start [2025-02-20 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519923', 'tblTempUsageDetail_20' ) end [2025-02-20 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:38:22] Production.INFO: ==17072== Releasing lock... [2025-02-20 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:38:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-20 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:39:05 [end_date_ymd] => 2025-02-20 19:39:05 [RateCDR] => 1 ) [2025-02-20 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:39:05' and `end` < '2025-02-20 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:39:17] Production.INFO: count ==2932 [2025-02-20 19:39:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:39:05 - End Time 2025-02-20 19:39:05 [2025-02-20 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519928', 'tblTempUsageDetail_20' ) start [2025-02-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519928', 'tblTempUsageDetail_20' ) end [2025-02-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519928', 'tblTempVendorCDR_20' ) start [2025-02-20 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519928', 'tblTempVendorCDR_20' ) end [2025-02-20 19:39:18] Production.INFO: ProcessCDR(1,14519928,1,1,2) [2025-02-20 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519928', 'tblTempUsageDetail_20' ) start [2025-02-20 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519928', 'tblTempUsageDetail_20' ) end [2025-02-20 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:39:21] Production.INFO: ==17145== Releasing lock... [2025-02-20 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:39:21] Production.INFO: 50.75 MB #Memory Used# [2025-02-20 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:40:05 [end_date_ymd] => 2025-02-20 19:40:05 [RateCDR] => 1 ) [2025-02-20 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:40:05' and `end` < '2025-02-20 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:40:18] Production.INFO: count ==2895 [2025-02-20 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:40:05 - End Time 2025-02-20 19:40:05 [2025-02-20 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519933', 'tblTempUsageDetail_20' ) start [2025-02-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519933', 'tblTempUsageDetail_20' ) end [2025-02-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519933', 'tblTempVendorCDR_20' ) start [2025-02-20 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519933', 'tblTempVendorCDR_20' ) end [2025-02-20 19:40:19] Production.INFO: ProcessCDR(1,14519933,1,1,2) [2025-02-20 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519933', 'tblTempUsageDetail_20' ) start [2025-02-20 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519933', 'tblTempUsageDetail_20' ) end [2025-02-20 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:40:23] Production.INFO: ==17225== Releasing lock... [2025-02-20 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:40:23] Production.INFO: 50 MB #Memory Used# [2025-02-20 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:41:05 [end_date_ymd] => 2025-02-20 19:41:05 [RateCDR] => 1 ) [2025-02-20 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:41:05' and `end` < '2025-02-20 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:41:17] Production.INFO: count ==2838 [2025-02-20 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:41:05 - End Time 2025-02-20 19:41:05 [2025-02-20 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519939', 'tblTempUsageDetail_20' ) start [2025-02-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519939', 'tblTempUsageDetail_20' ) end [2025-02-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519939', 'tblTempVendorCDR_20' ) start [2025-02-20 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519939', 'tblTempVendorCDR_20' ) end [2025-02-20 19:41:18] Production.INFO: ProcessCDR(1,14519939,1,1,2) [2025-02-20 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519939', 'tblTempUsageDetail_20' ) start [2025-02-20 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519939', 'tblTempUsageDetail_20' ) end [2025-02-20 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:41:21] Production.INFO: ==17301== Releasing lock... [2025-02-20 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:41:21] Production.INFO: 49.25 MB #Memory Used# [2025-02-20 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:42:05 [end_date_ymd] => 2025-02-20 19:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:42:05' and `end` < '2025-02-20 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-02-20 19:42:17] Production.INFO: count ==2825 [2025-02-20 19:42:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:42:05 - End Time 2025-02-20 19:42:05 [2025-02-20 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519944', 'tblTempUsageDetail_20' ) start [2025-02-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519944', 'tblTempUsageDetail_20' ) end [2025-02-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519944', 'tblTempVendorCDR_20' ) start [2025-02-20 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519944', 'tblTempVendorCDR_20' ) end [2025-02-20 19:42:18] Production.INFO: ProcessCDR(1,14519944,1,1,2) [2025-02-20 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519944', 'tblTempUsageDetail_20' ) start [2025-02-20 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519944', 'tblTempUsageDetail_20' ) end [2025-02-20 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:42:22] Production.INFO: ==17375== Releasing lock... [2025-02-20 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:42:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-20 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:43:04 [end_date_ymd] => 2025-02-20 19:43:04 [RateCDR] => 1 ) [2025-02-20 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:43:04' and `end` < '2025-02-20 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:43:16] Production.INFO: count ==2816 [2025-02-20 19:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 16:43:04 - End Time 2025-02-20 19:43:04 [2025-02-20 19:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519949', 'tblTempUsageDetail_20' ) start [2025-02-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519949', 'tblTempUsageDetail_20' ) end [2025-02-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519949', 'tblTempVendorCDR_20' ) start [2025-02-20 19:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519949', 'tblTempVendorCDR_20' ) end [2025-02-20 19:43:17] Production.INFO: ProcessCDR(1,14519949,1,1,2) [2025-02-20 19:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519949', 'tblTempUsageDetail_20' ) start [2025-02-20 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519949', 'tblTempUsageDetail_20' ) end [2025-02-20 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:43:22] Production.INFO: ==17491== Releasing lock... [2025-02-20 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:43:22] Production.INFO: 49.25 MB #Memory Used# [2025-02-20 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:44:05 [end_date_ymd] => 2025-02-20 19:44:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:44:05' and `end` < '2025-02-20 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-02-20 19:44:17] Production.INFO: count ==2793 [2025-02-20 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:44:05 - End Time 2025-02-20 19:44:05 [2025-02-20 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519954', 'tblTempUsageDetail_20' ) start [2025-02-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519954', 'tblTempUsageDetail_20' ) end [2025-02-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519954', 'tblTempVendorCDR_20' ) start [2025-02-20 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519954', 'tblTempVendorCDR_20' ) end [2025-02-20 19:44:18] Production.INFO: ProcessCDR(1,14519954,1,1,2) [2025-02-20 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519954', 'tblTempUsageDetail_20' ) start [2025-02-20 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519954', 'tblTempUsageDetail_20' ) end [2025-02-20 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:44:22] Production.INFO: ==17576== Releasing lock... [2025-02-20 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:44:22] Production.INFO: 49 MB #Memory Used# [2025-02-20 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:45:06 [end_date_ymd] => 2025-02-20 19:45:06 [RateCDR] => 1 ) [2025-02-20 19: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-02-20 16:45:06' and `end` < '2025-02-20 19: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-02-20 19:45:18] Production.INFO: count ==2789 [2025-02-20 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:45:06 - End Time 2025-02-20 19:45:06 [2025-02-20 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519959', 'tblTempUsageDetail_20' ) start [2025-02-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519959', 'tblTempUsageDetail_20' ) end [2025-02-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519959', 'tblTempVendorCDR_20' ) start [2025-02-20 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519959', 'tblTempVendorCDR_20' ) end [2025-02-20 19:45:19] Production.INFO: ProcessCDR(1,14519959,1,1,2) [2025-02-20 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519959', 'tblTempUsageDetail_20' ) start [2025-02-20 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519959', 'tblTempUsageDetail_20' ) end [2025-02-20 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:45:24] Production.INFO: ==17655== Releasing lock... [2025-02-20 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:45:24] Production.INFO: 49 MB #Memory Used# [2025-02-20 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:46:05 [end_date_ymd] => 2025-02-20 19:46:05 [RateCDR] => 1 ) [2025-02-20 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:46:05' and `end` < '2025-02-20 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:46:17] Production.INFO: count ==2789 [2025-02-20 19:46:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:46:05 - End Time 2025-02-20 19:46:05 [2025-02-20 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519964', 'tblTempUsageDetail_20' ) start [2025-02-20 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519964', 'tblTempUsageDetail_20' ) end [2025-02-20 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519964', 'tblTempVendorCDR_20' ) start [2025-02-20 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519964', 'tblTempVendorCDR_20' ) end [2025-02-20 19:46:18] Production.INFO: ProcessCDR(1,14519964,1,1,2) [2025-02-20 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519964', 'tblTempUsageDetail_20' ) start [2025-02-20 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519964', 'tblTempUsageDetail_20' ) end [2025-02-20 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:46:23] Production.INFO: ==17733== Releasing lock... [2025-02-20 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:46:23] Production.INFO: 49 MB #Memory Used# [2025-02-20 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:47:05 [end_date_ymd] => 2025-02-20 19:47:05 [RateCDR] => 1 ) [2025-02-20 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:47:05' and `end` < '2025-02-20 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:47:17] Production.INFO: count ==2783 [2025-02-20 19:47:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:47:05 - End Time 2025-02-20 19:47:05 [2025-02-20 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519969', 'tblTempUsageDetail_20' ) start [2025-02-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519969', 'tblTempUsageDetail_20' ) end [2025-02-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519969', 'tblTempVendorCDR_20' ) start [2025-02-20 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519969', 'tblTempVendorCDR_20' ) end [2025-02-20 19:47:18] Production.INFO: ProcessCDR(1,14519969,1,1,2) [2025-02-20 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519969', 'tblTempUsageDetail_20' ) start [2025-02-20 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519969', 'tblTempUsageDetail_20' ) end [2025-02-20 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:47:21] Production.INFO: ==17809== Releasing lock... [2025-02-20 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:47:21] Production.INFO: 49 MB #Memory Used# [2025-02-20 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:48:05 [end_date_ymd] => 2025-02-20 19:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:48:05' and `end` < '2025-02-20 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-02-20 19:48:17] Production.INFO: count ==2769 [2025-02-20 19:48:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:48:05 - End Time 2025-02-20 19:48:05 [2025-02-20 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519974', 'tblTempUsageDetail_20' ) start [2025-02-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519974', 'tblTempUsageDetail_20' ) end [2025-02-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519974', 'tblTempVendorCDR_20' ) start [2025-02-20 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519974', 'tblTempVendorCDR_20' ) end [2025-02-20 19:48:18] Production.INFO: ProcessCDR(1,14519974,1,1,2) [2025-02-20 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519974', 'tblTempUsageDetail_20' ) start [2025-02-20 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519974', 'tblTempUsageDetail_20' ) end [2025-02-20 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:48:23] Production.INFO: ==17886== Releasing lock... [2025-02-20 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:48:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-20 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:49:05 [end_date_ymd] => 2025-02-20 19:49:05 [RateCDR] => 1 ) [2025-02-20 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:49:05' and `end` < '2025-02-20 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:49:17] Production.INFO: count ==2769 [2025-02-20 19:49:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:49:05 - End Time 2025-02-20 19:49:05 [2025-02-20 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519979', 'tblTempUsageDetail_20' ) start [2025-02-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519979', 'tblTempUsageDetail_20' ) end [2025-02-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519979', 'tblTempVendorCDR_20' ) start [2025-02-20 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519979', 'tblTempVendorCDR_20' ) end [2025-02-20 19:49:18] Production.INFO: ProcessCDR(1,14519979,1,1,2) [2025-02-20 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519979', 'tblTempUsageDetail_20' ) start [2025-02-20 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519979', 'tblTempUsageDetail_20' ) end [2025-02-20 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:49:21] Production.INFO: ==17966== Releasing lock... [2025-02-20 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:49:21] Production.INFO: 48.75 MB #Memory Used# [2025-02-20 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:50:06 [end_date_ymd] => 2025-02-20 19:50:06 [RateCDR] => 1 ) [2025-02-20 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:50:06' and `end` < '2025-02-20 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:50:18] Production.INFO: count ==2769 [2025-02-20 19:50:19] Production.ERROR: pbx CDR StartTime 2025-02-20 16:50:06 - End Time 2025-02-20 19:50:06 [2025-02-20 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519985', 'tblTempUsageDetail_20' ) start [2025-02-20 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519985', 'tblTempUsageDetail_20' ) end [2025-02-20 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519985', 'tblTempVendorCDR_20' ) start [2025-02-20 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519985', 'tblTempVendorCDR_20' ) end [2025-02-20 19:50:19] Production.INFO: ProcessCDR(1,14519985,1,1,2) [2025-02-20 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519985', 'tblTempUsageDetail_20' ) start [2025-02-20 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519985', 'tblTempUsageDetail_20' ) end [2025-02-20 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:50:24] Production.INFO: ==18045== Releasing lock... [2025-02-20 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:50:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-20 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:51:05 [end_date_ymd] => 2025-02-20 19:51:05 [RateCDR] => 1 ) [2025-02-20 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:51:05' and `end` < '2025-02-20 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:51:18] Production.INFO: count ==2728 [2025-02-20 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:51:05 - End Time 2025-02-20 19:51:05 [2025-02-20 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519990', 'tblTempUsageDetail_20' ) start [2025-02-20 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519990', 'tblTempUsageDetail_20' ) end [2025-02-20 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519990', 'tblTempVendorCDR_20' ) start [2025-02-20 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519990', 'tblTempVendorCDR_20' ) end [2025-02-20 19:51:18] Production.INFO: ProcessCDR(1,14519990,1,1,2) [2025-02-20 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519990', 'tblTempUsageDetail_20' ) start [2025-02-20 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519990', 'tblTempUsageDetail_20' ) end [2025-02-20 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:51:23] Production.INFO: ==18125== Releasing lock... [2025-02-20 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:51:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-20 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:52:05 [end_date_ymd] => 2025-02-20 19:52:05 [RateCDR] => 1 ) [2025-02-20 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:52:05' and `end` < '2025-02-20 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:52:17] Production.INFO: count ==2727 [2025-02-20 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:52:05 - End Time 2025-02-20 19:52:05 [2025-02-20 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519995', 'tblTempUsageDetail_20' ) start [2025-02-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14519995', 'tblTempUsageDetail_20' ) end [2025-02-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519995', 'tblTempVendorCDR_20' ) start [2025-02-20 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14519995', 'tblTempVendorCDR_20' ) end [2025-02-20 19:52:18] Production.INFO: ProcessCDR(1,14519995,1,1,2) [2025-02-20 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14519995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14519995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14519995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14519995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519995', 'tblTempUsageDetail_20' ) start [2025-02-20 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14519995', 'tblTempUsageDetail_20' ) end [2025-02-20 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:52:22] Production.INFO: ==18202== Releasing lock... [2025-02-20 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:52:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-20 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:53:05 [end_date_ymd] => 2025-02-20 19:53:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:53:05' and `end` < '2025-02-20 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-02-20 19:53:17] Production.INFO: count ==2707 [2025-02-20 19:53:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:53:05 - End Time 2025-02-20 19:53:05 [2025-02-20 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520000', 'tblTempUsageDetail_20' ) start [2025-02-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520000', 'tblTempUsageDetail_20' ) end [2025-02-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520000', 'tblTempVendorCDR_20' ) start [2025-02-20 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520000', 'tblTempVendorCDR_20' ) end [2025-02-20 19:53:18] Production.INFO: ProcessCDR(1,14520000,1,1,2) [2025-02-20 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520000', 'tblTempUsageDetail_20' ) start [2025-02-20 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520000', 'tblTempUsageDetail_20' ) end [2025-02-20 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:53:21] Production.INFO: ==18283== Releasing lock... [2025-02-20 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:53:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-20 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:54:05 [end_date_ymd] => 2025-02-20 19:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:54:05' and `end` < '2025-02-20 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-02-20 19:54:17] Production.INFO: count ==2705 [2025-02-20 19:54:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:54:05 - End Time 2025-02-20 19:54:05 [2025-02-20 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520005', 'tblTempUsageDetail_20' ) start [2025-02-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520005', 'tblTempUsageDetail_20' ) end [2025-02-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520005', 'tblTempVendorCDR_20' ) start [2025-02-20 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520005', 'tblTempVendorCDR_20' ) end [2025-02-20 19:54:18] Production.INFO: ProcessCDR(1,14520005,1,1,2) [2025-02-20 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520005', 'tblTempUsageDetail_20' ) start [2025-02-20 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520005', 'tblTempUsageDetail_20' ) end [2025-02-20 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:54:22] Production.INFO: ==18363== Releasing lock... [2025-02-20 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:54:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-20 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:55:05 [end_date_ymd] => 2025-02-20 19:55:05 [RateCDR] => 1 ) [2025-02-20 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:55:05' and `end` < '2025-02-20 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:55:17] Production.INFO: count ==2698 [2025-02-20 19:55:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:55:05 - End Time 2025-02-20 19:55:05 [2025-02-20 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520010', 'tblTempUsageDetail_20' ) start [2025-02-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520010', 'tblTempUsageDetail_20' ) end [2025-02-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520010', 'tblTempVendorCDR_20' ) start [2025-02-20 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520010', 'tblTempVendorCDR_20' ) end [2025-02-20 19:55:18] Production.INFO: ProcessCDR(1,14520010,1,1,2) [2025-02-20 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520010', 'tblTempUsageDetail_20' ) start [2025-02-20 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520010', 'tblTempUsageDetail_20' ) end [2025-02-20 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:55:21] Production.INFO: ==18440== Releasing lock... [2025-02-20 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:55:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-20 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:56:05 [end_date_ymd] => 2025-02-20 19:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 16:56:05' and `end` < '2025-02-20 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-02-20 19:56:17] Production.INFO: count ==2690 [2025-02-20 19:56:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:56:05 - End Time 2025-02-20 19:56:05 [2025-02-20 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520015', 'tblTempUsageDetail_20' ) start [2025-02-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520015', 'tblTempUsageDetail_20' ) end [2025-02-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520015', 'tblTempVendorCDR_20' ) start [2025-02-20 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520015', 'tblTempVendorCDR_20' ) end [2025-02-20 19:56:18] Production.INFO: ProcessCDR(1,14520015,1,1,2) [2025-02-20 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520015', 'tblTempUsageDetail_20' ) start [2025-02-20 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520015', 'tblTempUsageDetail_20' ) end [2025-02-20 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:56:21] Production.INFO: ==18517== Releasing lock... [2025-02-20 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:56:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-20 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:57:05 [end_date_ymd] => 2025-02-20 19:57:05 [RateCDR] => 1 ) [2025-02-20 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:57:05' and `end` < '2025-02-20 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:57:18] Production.INFO: count ==2680 [2025-02-20 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:57:05 - End Time 2025-02-20 19:57:05 [2025-02-20 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520020', 'tblTempUsageDetail_20' ) start [2025-02-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520020', 'tblTempUsageDetail_20' ) end [2025-02-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520020', 'tblTempVendorCDR_20' ) start [2025-02-20 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520020', 'tblTempVendorCDR_20' ) end [2025-02-20 19:57:18] Production.INFO: ProcessCDR(1,14520020,1,1,2) [2025-02-20 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520020', 'tblTempUsageDetail_20' ) start [2025-02-20 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520020', 'tblTempUsageDetail_20' ) end [2025-02-20 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:57:21] Production.INFO: ==18592== Releasing lock... [2025-02-20 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:57:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-20 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:58:05 [end_date_ymd] => 2025-02-20 19:58:05 [RateCDR] => 1 ) [2025-02-20 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:58:05' and `end` < '2025-02-20 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:58:17] Production.INFO: count ==2659 [2025-02-20 19:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 16:58:05 - End Time 2025-02-20 19:58:05 [2025-02-20 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520025', 'tblTempUsageDetail_20' ) start [2025-02-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520025', 'tblTempUsageDetail_20' ) end [2025-02-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520025', 'tblTempVendorCDR_20' ) start [2025-02-20 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520025', 'tblTempVendorCDR_20' ) end [2025-02-20 19:58:17] Production.INFO: ProcessCDR(1,14520025,1,1,2) [2025-02-20 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520025', 'tblTempUsageDetail_20' ) start [2025-02-20 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520025', 'tblTempUsageDetail_20' ) end [2025-02-20 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:58:21] Production.INFO: ==18664== Releasing lock... [2025-02-20 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:58:21] Production.INFO: 48 MB #Memory Used# [2025-02-20 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 16:59:05 [end_date_ymd] => 2025-02-20 19:59:05 [RateCDR] => 1 ) [2025-02-20 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 16:59:05' and `end` < '2025-02-20 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 19:59:17] Production.INFO: count ==2638 [2025-02-20 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 16:59:05 - End Time 2025-02-20 19:59:05 [2025-02-20 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520030', 'tblTempUsageDetail_20' ) start [2025-02-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520030', 'tblTempUsageDetail_20' ) end [2025-02-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520030', 'tblTempVendorCDR_20' ) start [2025-02-20 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520030', 'tblTempVendorCDR_20' ) end [2025-02-20 19:59:18] Production.INFO: ProcessCDR(1,14520030,1,1,2) [2025-02-20 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520030', 'tblTempUsageDetail_20' ) start [2025-02-20 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520030', 'tblTempUsageDetail_20' ) end [2025-02-20 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 19:59:21] Production.INFO: ==18778== Releasing lock... [2025-02-20 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 19:59:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-20 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:00:07 [end_date_ymd] => 2025-02-20 20:00:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:00:07' and `end` < '2025-02-20 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-02-20 20:00:19] Production.INFO: count ==2636 [2025-02-20 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-20 17:00:07 - End Time 2025-02-20 20:00:07 [2025-02-20 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520036', 'tblTempUsageDetail_20' ) start [2025-02-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520036', 'tblTempUsageDetail_20' ) end [2025-02-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520036', 'tblTempVendorCDR_20' ) start [2025-02-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520036', 'tblTempVendorCDR_20' ) end [2025-02-20 20:00:20] Production.INFO: ProcessCDR(1,14520036,1,1,2) [2025-02-20 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520036', 'tblTempUsageDetail_20' ) start [2025-02-20 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520036', 'tblTempUsageDetail_20' ) end [2025-02-20 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:00:25] Production.INFO: ==18854== Releasing lock... [2025-02-20 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:00:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-20 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:01:05 [end_date_ymd] => 2025-02-20 20:01:05 [RateCDR] => 1 ) [2025-02-20 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:01:05' and `end` < '2025-02-20 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:01:17] Production.INFO: count ==2610 [2025-02-20 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:01:05 - End Time 2025-02-20 20:01:05 [2025-02-20 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520041', 'tblTempUsageDetail_20' ) start [2025-02-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520041', 'tblTempUsageDetail_20' ) end [2025-02-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520041', 'tblTempVendorCDR_20' ) start [2025-02-20 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520041', 'tblTempVendorCDR_20' ) end [2025-02-20 20:01:18] Production.INFO: ProcessCDR(1,14520041,1,1,2) [2025-02-20 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520041', 'tblTempUsageDetail_20' ) start [2025-02-20 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520041', 'tblTempUsageDetail_20' ) end [2025-02-20 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:01:21] Production.INFO: ==18980== Releasing lock... [2025-02-20 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:01:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-20 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:02:06 [end_date_ymd] => 2025-02-20 20:02:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:02:06' and `end` < '2025-02-20 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-02-20 20:02:18] Production.INFO: count ==2603 [2025-02-20 20:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:02:06 - End Time 2025-02-20 20:02:06 [2025-02-20 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520046', 'tblTempUsageDetail_20' ) start [2025-02-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520046', 'tblTempUsageDetail_20' ) end [2025-02-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520046', 'tblTempVendorCDR_20' ) start [2025-02-20 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520046', 'tblTempVendorCDR_20' ) end [2025-02-20 20:02:18] Production.INFO: ProcessCDR(1,14520046,1,1,2) [2025-02-20 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520046', 'tblTempUsageDetail_20' ) start [2025-02-20 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520046', 'tblTempUsageDetail_20' ) end [2025-02-20 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:02:23] Production.INFO: ==19053== Releasing lock... [2025-02-20 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:02:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:03:05 [end_date_ymd] => 2025-02-20 20:03:05 [RateCDR] => 1 ) [2025-02-20 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:03:05' and `end` < '2025-02-20 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:03:17] Production.INFO: count ==2613 [2025-02-20 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:03:05 - End Time 2025-02-20 20:03:05 [2025-02-20 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520051', 'tblTempUsageDetail_20' ) start [2025-02-20 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520051', 'tblTempUsageDetail_20' ) end [2025-02-20 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520051', 'tblTempVendorCDR_20' ) start [2025-02-20 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520051', 'tblTempVendorCDR_20' ) end [2025-02-20 20:03:18] Production.INFO: ProcessCDR(1,14520051,1,1,2) [2025-02-20 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520051', 'tblTempUsageDetail_20' ) start [2025-02-20 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520051', 'tblTempUsageDetail_20' ) end [2025-02-20 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:03:24] Production.INFO: ==19134== Releasing lock... [2025-02-20 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:03:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-20 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:04:06 [end_date_ymd] => 2025-02-20 20:04:06 [RateCDR] => 1 ) [2025-02-20 20: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-02-20 17:04:06' and `end` < '2025-02-20 20: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-02-20 20:04:19] Production.INFO: count ==2599 [2025-02-20 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:04:06 - End Time 2025-02-20 20:04:06 [2025-02-20 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520056', 'tblTempUsageDetail_20' ) start [2025-02-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520056', 'tblTempUsageDetail_20' ) end [2025-02-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520056', 'tblTempVendorCDR_20' ) start [2025-02-20 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520056', 'tblTempVendorCDR_20' ) end [2025-02-20 20:04:19] Production.INFO: ProcessCDR(1,14520056,1,1,2) [2025-02-20 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520056', 'tblTempUsageDetail_20' ) start [2025-02-20 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520056', 'tblTempUsageDetail_20' ) end [2025-02-20 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:04:23] Production.INFO: ==19207== Releasing lock... [2025-02-20 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:04:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:05:05 [end_date_ymd] => 2025-02-20 20:05:05 [RateCDR] => 1 ) [2025-02-20 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:05:05' and `end` < '2025-02-20 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:05:17] Production.INFO: count ==2598 [2025-02-20 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:05:05 - End Time 2025-02-20 20:05:05 [2025-02-20 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520061', 'tblTempUsageDetail_20' ) start [2025-02-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520061', 'tblTempUsageDetail_20' ) end [2025-02-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520061', 'tblTempVendorCDR_20' ) start [2025-02-20 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520061', 'tblTempVendorCDR_20' ) end [2025-02-20 20:05:18] Production.INFO: ProcessCDR(1,14520061,1,1,2) [2025-02-20 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520061', 'tblTempUsageDetail_20' ) start [2025-02-20 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520061', 'tblTempUsageDetail_20' ) end [2025-02-20 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:05:24] Production.INFO: ==19281== Releasing lock... [2025-02-20 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:05:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:06:06 [end_date_ymd] => 2025-02-20 20:06:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:06:06' and `end` < '2025-02-20 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-02-20 20:06:18] Production.INFO: count ==2589 [2025-02-20 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:06:06 - End Time 2025-02-20 20:06:06 [2025-02-20 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520066', 'tblTempUsageDetail_20' ) start [2025-02-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520066', 'tblTempUsageDetail_20' ) end [2025-02-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520066', 'tblTempVendorCDR_20' ) start [2025-02-20 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520066', 'tblTempVendorCDR_20' ) end [2025-02-20 20:06:19] Production.INFO: ProcessCDR(1,14520066,1,1,2) [2025-02-20 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520066', 'tblTempUsageDetail_20' ) start [2025-02-20 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520066', 'tblTempUsageDetail_20' ) end [2025-02-20 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:06:23] Production.INFO: ==19354== Releasing lock... [2025-02-20 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:06:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:07:05 [end_date_ymd] => 2025-02-20 20:07:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:07:05' and `end` < '2025-02-20 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-02-20 20:07:18] Production.INFO: count ==2581 [2025-02-20 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:07:05 - End Time 2025-02-20 20:07:05 [2025-02-20 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520071', 'tblTempUsageDetail_20' ) start [2025-02-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520071', 'tblTempUsageDetail_20' ) end [2025-02-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520071', 'tblTempVendorCDR_20' ) start [2025-02-20 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520071', 'tblTempVendorCDR_20' ) end [2025-02-20 20:07:18] Production.INFO: ProcessCDR(1,14520071,1,1,2) [2025-02-20 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520071', 'tblTempUsageDetail_20' ) start [2025-02-20 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520071', 'tblTempUsageDetail_20' ) end [2025-02-20 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:07:22] Production.INFO: ==19431== Releasing lock... [2025-02-20 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:07:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-20 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:08:06 [end_date_ymd] => 2025-02-20 20:08:06 [RateCDR] => 1 ) [2025-02-20 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:08:06' and `end` < '2025-02-20 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:08:19] Production.INFO: count ==2536 [2025-02-20 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:08:06 - End Time 2025-02-20 20:08:06 [2025-02-20 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520076', 'tblTempUsageDetail_20' ) start [2025-02-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520076', 'tblTempUsageDetail_20' ) end [2025-02-20 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520076', 'tblTempVendorCDR_20' ) start [2025-02-20 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520076', 'tblTempVendorCDR_20' ) end [2025-02-20 20:08:20] Production.INFO: ProcessCDR(1,14520076,1,1,2) [2025-02-20 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520076', 'tblTempUsageDetail_20' ) start [2025-02-20 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520076', 'tblTempUsageDetail_20' ) end [2025-02-20 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:08:23] Production.INFO: ==19508== Releasing lock... [2025-02-20 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:08:23] Production.INFO: 47 MB #Memory Used# [2025-02-20 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:09:05 [end_date_ymd] => 2025-02-20 20:09:05 [RateCDR] => 1 ) [2025-02-20 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:09:05' and `end` < '2025-02-20 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:09:17] Production.INFO: count ==2530 [2025-02-20 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:09:05 - End Time 2025-02-20 20:09:05 [2025-02-20 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520081', 'tblTempUsageDetail_20' ) start [2025-02-20 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520081', 'tblTempUsageDetail_20' ) end [2025-02-20 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520081', 'tblTempVendorCDR_20' ) start [2025-02-20 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520081', 'tblTempVendorCDR_20' ) end [2025-02-20 20:09:18] Production.INFO: ProcessCDR(1,14520081,1,1,2) [2025-02-20 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520081', 'tblTempUsageDetail_20' ) start [2025-02-20 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520081', 'tblTempUsageDetail_20' ) end [2025-02-20 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:09:22] Production.INFO: ==19584== Releasing lock... [2025-02-20 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:09:22] Production.INFO: 47 MB #Memory Used# [2025-02-20 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:10:07 [end_date_ymd] => 2025-02-20 20:10:07 [RateCDR] => 1 ) [2025-02-20 20: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-02-20 17:10:07' and `end` < '2025-02-20 20: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-02-20 20:10:19] Production.INFO: count ==2529 [2025-02-20 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-20 17:10:07 - End Time 2025-02-20 20:10:07 [2025-02-20 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520087', 'tblTempUsageDetail_20' ) start [2025-02-20 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520087', 'tblTempUsageDetail_20' ) end [2025-02-20 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520087', 'tblTempVendorCDR_20' ) start [2025-02-20 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520087', 'tblTempVendorCDR_20' ) end [2025-02-20 20:10:21] Production.INFO: ProcessCDR(1,14520087,1,1,2) [2025-02-20 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520087', 'tblTempUsageDetail_20' ) start [2025-02-20 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520087', 'tblTempUsageDetail_20' ) end [2025-02-20 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:10:26] Production.INFO: ==19659== Releasing lock... [2025-02-20 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:10:26] Production.INFO: 47 MB #Memory Used# [2025-02-20 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:11:06 [end_date_ymd] => 2025-02-20 20:11:06 [RateCDR] => 1 ) [2025-02-20 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:11:06' and `end` < '2025-02-20 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:11:18] Production.INFO: count ==2478 [2025-02-20 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:11:06 - End Time 2025-02-20 20:11:06 [2025-02-20 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520092', 'tblTempUsageDetail_20' ) start [2025-02-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520092', 'tblTempUsageDetail_20' ) end [2025-02-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520092', 'tblTempVendorCDR_20' ) start [2025-02-20 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520092', 'tblTempVendorCDR_20' ) end [2025-02-20 20:11:19] Production.INFO: ProcessCDR(1,14520092,1,1,2) [2025-02-20 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520092', 'tblTempUsageDetail_20' ) start [2025-02-20 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520092', 'tblTempUsageDetail_20' ) end [2025-02-20 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:11:24] Production.INFO: ==19734== Releasing lock... [2025-02-20 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:11:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-20 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:12:06 [end_date_ymd] => 2025-02-20 20:12:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:12:06' and `end` < '2025-02-20 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-02-20 20:12:18] Production.INFO: count ==2453 [2025-02-20 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:12:06 - End Time 2025-02-20 20:12:06 [2025-02-20 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520097', 'tblTempUsageDetail_20' ) start [2025-02-20 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520097', 'tblTempUsageDetail_20' ) end [2025-02-20 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520097', 'tblTempVendorCDR_20' ) start [2025-02-20 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520097', 'tblTempVendorCDR_20' ) end [2025-02-20 20:12:18] Production.INFO: ProcessCDR(1,14520097,1,1,2) [2025-02-20 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520097', 'tblTempUsageDetail_20' ) start [2025-02-20 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520097', 'tblTempUsageDetail_20' ) end [2025-02-20 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:12:22] Production.INFO: ==19805== Releasing lock... [2025-02-20 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:12:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-20 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:13:06 [end_date_ymd] => 2025-02-20 20:13:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:13:06' and `end` < '2025-02-20 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-02-20 20:13:18] Production.INFO: count ==2438 [2025-02-20 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:13:06 - End Time 2025-02-20 20:13:06 [2025-02-20 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520102', 'tblTempUsageDetail_20' ) start [2025-02-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520102', 'tblTempUsageDetail_20' ) end [2025-02-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520102', 'tblTempVendorCDR_20' ) start [2025-02-20 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520102', 'tblTempVendorCDR_20' ) end [2025-02-20 20:13:18] Production.INFO: ProcessCDR(1,14520102,1,1,2) [2025-02-20 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520102', 'tblTempUsageDetail_20' ) start [2025-02-20 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520102', 'tblTempUsageDetail_20' ) end [2025-02-20 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:13:22] Production.INFO: ==19875== Releasing lock... [2025-02-20 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:13:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:14:05 [end_date_ymd] => 2025-02-20 20:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:14:05' and `end` < '2025-02-20 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-02-20 20:14:17] Production.INFO: count ==2430 [2025-02-20 20:14:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:14:05 - End Time 2025-02-20 20:14:05 [2025-02-20 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520107', 'tblTempUsageDetail_20' ) start [2025-02-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520107', 'tblTempUsageDetail_20' ) end [2025-02-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520107', 'tblTempVendorCDR_20' ) start [2025-02-20 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520107', 'tblTempVendorCDR_20' ) end [2025-02-20 20:14:18] Production.INFO: ProcessCDR(1,14520107,1,1,2) [2025-02-20 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520107', 'tblTempUsageDetail_20' ) start [2025-02-20 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520107', 'tblTempUsageDetail_20' ) end [2025-02-20 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:14:21] Production.INFO: ==19985== Releasing lock... [2025-02-20 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:14:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:15:05 [end_date_ymd] => 2025-02-20 20:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:15:05' and `end` < '2025-02-20 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-02-20 20:15:18] Production.INFO: count ==2420 [2025-02-20 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:15:05 - End Time 2025-02-20 20:15:05 [2025-02-20 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520112', 'tblTempUsageDetail_20' ) start [2025-02-20 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520112', 'tblTempUsageDetail_20' ) end [2025-02-20 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520112', 'tblTempVendorCDR_20' ) start [2025-02-20 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520112', 'tblTempVendorCDR_20' ) end [2025-02-20 20:15:18] Production.INFO: ProcessCDR(1,14520112,1,1,2) [2025-02-20 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520112', 'tblTempUsageDetail_20' ) start [2025-02-20 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520112', 'tblTempUsageDetail_20' ) end [2025-02-20 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:15:22] Production.INFO: ==20059== Releasing lock... [2025-02-20 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:15:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:16:05 [end_date_ymd] => 2025-02-20 20:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:16:05' and `end` < '2025-02-20 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-02-20 20:16:17] Production.INFO: count ==2424 [2025-02-20 20:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 17:16:05 - End Time 2025-02-20 20:16:05 [2025-02-20 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520117', 'tblTempUsageDetail_20' ) start [2025-02-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520117', 'tblTempUsageDetail_20' ) end [2025-02-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520117', 'tblTempVendorCDR_20' ) start [2025-02-20 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520117', 'tblTempVendorCDR_20' ) end [2025-02-20 20:16:17] Production.INFO: ProcessCDR(1,14520117,1,1,2) [2025-02-20 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520117', 'tblTempUsageDetail_20' ) start [2025-02-20 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520117', 'tblTempUsageDetail_20' ) end [2025-02-20 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:16:23] Production.INFO: ==20129== Releasing lock... [2025-02-20 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:16:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:17:05 [end_date_ymd] => 2025-02-20 20:17:05 [RateCDR] => 1 ) [2025-02-20 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:17:05' and `end` < '2025-02-20 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:17:17] Production.INFO: count ==2422 [2025-02-20 20:17:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:17:05 - End Time 2025-02-20 20:17:05 [2025-02-20 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520122', 'tblTempUsageDetail_20' ) start [2025-02-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520122', 'tblTempUsageDetail_20' ) end [2025-02-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520122', 'tblTempVendorCDR_20' ) start [2025-02-20 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520122', 'tblTempVendorCDR_20' ) end [2025-02-20 20:17:18] Production.INFO: ProcessCDR(1,14520122,1,1,2) [2025-02-20 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520122', 'tblTempUsageDetail_20' ) start [2025-02-20 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520122', 'tblTempUsageDetail_20' ) end [2025-02-20 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:17:22] Production.INFO: ==20200== Releasing lock... [2025-02-20 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:17:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:18:05 [end_date_ymd] => 2025-02-20 20:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:18:05' and `end` < '2025-02-20 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-02-20 20:18:17] Production.INFO: count ==2419 [2025-02-20 20:18:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:18:05 - End Time 2025-02-20 20:18:05 [2025-02-20 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520127', 'tblTempUsageDetail_20' ) start [2025-02-20 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520127', 'tblTempUsageDetail_20' ) end [2025-02-20 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520127', 'tblTempVendorCDR_20' ) start [2025-02-20 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520127', 'tblTempVendorCDR_20' ) end [2025-02-20 20:18:18] Production.INFO: ProcessCDR(1,14520127,1,1,2) [2025-02-20 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520127', 'tblTempUsageDetail_20' ) start [2025-02-20 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520127', 'tblTempUsageDetail_20' ) end [2025-02-20 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:18:22] Production.INFO: ==20281== Releasing lock... [2025-02-20 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:18:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:19:05 [end_date_ymd] => 2025-02-20 20:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:19:05' and `end` < '2025-02-20 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-02-20 20:19:17] Production.INFO: count ==2416 [2025-02-20 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:19:05 - End Time 2025-02-20 20:19:05 [2025-02-20 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520132', 'tblTempUsageDetail_20' ) start [2025-02-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520132', 'tblTempUsageDetail_20' ) end [2025-02-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520132', 'tblTempVendorCDR_20' ) start [2025-02-20 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520132', 'tblTempVendorCDR_20' ) end [2025-02-20 20:19:18] Production.INFO: ProcessCDR(1,14520132,1,1,2) [2025-02-20 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520132', 'tblTempUsageDetail_20' ) start [2025-02-20 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520132', 'tblTempUsageDetail_20' ) end [2025-02-20 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:19:22] Production.INFO: ==20353== Releasing lock... [2025-02-20 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:19:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:20:07 [end_date_ymd] => 2025-02-20 20:20:07 [RateCDR] => 1 ) [2025-02-20 20:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:20:07' and `end` < '2025-02-20 20:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:20:19] Production.INFO: count ==2385 [2025-02-20 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-20 17:20:07 - End Time 2025-02-20 20:20:07 [2025-02-20 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520138', 'tblTempUsageDetail_20' ) start [2025-02-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520138', 'tblTempUsageDetail_20' ) end [2025-02-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520138', 'tblTempVendorCDR_20' ) start [2025-02-20 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520138', 'tblTempVendorCDR_20' ) end [2025-02-20 20:20:20] Production.INFO: ProcessCDR(1,14520138,1,1,2) [2025-02-20 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520138', 'tblTempUsageDetail_20' ) start [2025-02-20 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520138', 'tblTempUsageDetail_20' ) end [2025-02-20 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:20:25] Production.INFO: ==20429== Releasing lock... [2025-02-20 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:20:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-20 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:21:05 [end_date_ymd] => 2025-02-20 20:21:05 [RateCDR] => 1 ) [2025-02-20 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:21:05' and `end` < '2025-02-20 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:21:17] Production.INFO: count ==2391 [2025-02-20 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:21:05 - End Time 2025-02-20 20:21:05 [2025-02-20 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520143', 'tblTempUsageDetail_20' ) start [2025-02-20 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520143', 'tblTempUsageDetail_20' ) end [2025-02-20 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520143', 'tblTempVendorCDR_20' ) start [2025-02-20 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520143', 'tblTempVendorCDR_20' ) end [2025-02-20 20:21:18] Production.INFO: ProcessCDR(1,14520143,1,1,2) [2025-02-20 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520143', 'tblTempUsageDetail_20' ) start [2025-02-20 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520143', 'tblTempUsageDetail_20' ) end [2025-02-20 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:21:21] Production.INFO: ==20502== Releasing lock... [2025-02-20 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:21:21] Production.INFO: 46 MB #Memory Used# [2025-02-20 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:22:06 [end_date_ymd] => 2025-02-20 20:22:06 [RateCDR] => 1 ) [2025-02-20 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:22:06' and `end` < '2025-02-20 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:22:18] Production.INFO: count ==2392 [2025-02-20 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:22:06 - End Time 2025-02-20 20:22:06 [2025-02-20 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520148', 'tblTempUsageDetail_20' ) start [2025-02-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520148', 'tblTempUsageDetail_20' ) end [2025-02-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520148', 'tblTempVendorCDR_20' ) start [2025-02-20 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520148', 'tblTempVendorCDR_20' ) end [2025-02-20 20:22:19] Production.INFO: ProcessCDR(1,14520148,1,1,2) [2025-02-20 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520148', 'tblTempUsageDetail_20' ) start [2025-02-20 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520148', 'tblTempUsageDetail_20' ) end [2025-02-20 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:22:22] Production.INFO: ==20573== Releasing lock... [2025-02-20 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:22:22] Production.INFO: 46 MB #Memory Used# [2025-02-20 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:23:06 [end_date_ymd] => 2025-02-20 20:23:06 [RateCDR] => 1 ) [2025-02-20 20: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-02-20 17:23:06' and `end` < '2025-02-20 20: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-02-20 20:23:18] Production.INFO: count ==2392 [2025-02-20 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:23:06 - End Time 2025-02-20 20:23:06 [2025-02-20 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520153', 'tblTempUsageDetail_20' ) start [2025-02-20 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520153', 'tblTempUsageDetail_20' ) end [2025-02-20 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520153', 'tblTempVendorCDR_20' ) start [2025-02-20 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520153', 'tblTempVendorCDR_20' ) end [2025-02-20 20:23:18] Production.INFO: ProcessCDR(1,14520153,1,1,2) [2025-02-20 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520153', 'tblTempUsageDetail_20' ) start [2025-02-20 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520153', 'tblTempUsageDetail_20' ) end [2025-02-20 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:23:22] Production.INFO: ==20649== Releasing lock... [2025-02-20 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:23:22] Production.INFO: 46 MB #Memory Used# [2025-02-20 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:24:05 [end_date_ymd] => 2025-02-20 20:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:24:05' and `end` < '2025-02-20 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-02-20 20:24:17] Production.INFO: count ==2388 [2025-02-20 20:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:24:05 - End Time 2025-02-20 20:24:05 [2025-02-20 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520158', 'tblTempUsageDetail_20' ) start [2025-02-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520158', 'tblTempUsageDetail_20' ) end [2025-02-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520158', 'tblTempVendorCDR_20' ) start [2025-02-20 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520158', 'tblTempVendorCDR_20' ) end [2025-02-20 20:24:18] Production.INFO: ProcessCDR(1,14520158,1,1,2) [2025-02-20 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520158', 'tblTempUsageDetail_20' ) start [2025-02-20 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520158', 'tblTempUsageDetail_20' ) end [2025-02-20 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:24:23] Production.INFO: ==20719== Releasing lock... [2025-02-20 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:24:23] Production.INFO: 46 MB #Memory Used# [2025-02-20 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:25:06 [end_date_ymd] => 2025-02-20 20:25:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:25:06' and `end` < '2025-02-20 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-02-20 20:25:18] Production.INFO: count ==2381 [2025-02-20 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:25:06 - End Time 2025-02-20 20:25:06 [2025-02-20 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520163', 'tblTempUsageDetail_20' ) start [2025-02-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520163', 'tblTempUsageDetail_20' ) end [2025-02-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520163', 'tblTempVendorCDR_20' ) start [2025-02-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520163', 'tblTempVendorCDR_20' ) end [2025-02-20 20:25:19] Production.INFO: ProcessCDR(1,14520163,1,1,2) [2025-02-20 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520163', 'tblTempUsageDetail_20' ) start [2025-02-20 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520163', 'tblTempUsageDetail_20' ) end [2025-02-20 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:25:24] Production.INFO: ==20789== Releasing lock... [2025-02-20 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:25:24] Production.INFO: 46 MB #Memory Used# [2025-02-20 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:26:05 [end_date_ymd] => 2025-02-20 20:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:26:05' and `end` < '2025-02-20 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-02-20 20:26:17] Production.INFO: count ==2372 [2025-02-20 20:26:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:26:05 - End Time 2025-02-20 20:26:05 [2025-02-20 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520168', 'tblTempUsageDetail_20' ) start [2025-02-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520168', 'tblTempUsageDetail_20' ) end [2025-02-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520168', 'tblTempVendorCDR_20' ) start [2025-02-20 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520168', 'tblTempVendorCDR_20' ) end [2025-02-20 20:26:18] Production.INFO: ProcessCDR(1,14520168,1,1,2) [2025-02-20 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520168', 'tblTempUsageDetail_20' ) start [2025-02-20 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520168', 'tblTempUsageDetail_20' ) end [2025-02-20 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:26:21] Production.INFO: ==20858== Releasing lock... [2025-02-20 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:26:21] Production.INFO: 46 MB #Memory Used# [2025-02-20 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:27:06 [end_date_ymd] => 2025-02-20 20:27:06 [RateCDR] => 1 ) [2025-02-20 20: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-02-20 17:27:06' and `end` < '2025-02-20 20: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-02-20 20:27:18] Production.INFO: count ==2374 [2025-02-20 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:27:06 - End Time 2025-02-20 20:27:06 [2025-02-20 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520173', 'tblTempUsageDetail_20' ) start [2025-02-20 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520173', 'tblTempUsageDetail_20' ) end [2025-02-20 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520173', 'tblTempVendorCDR_20' ) start [2025-02-20 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520173', 'tblTempVendorCDR_20' ) end [2025-02-20 20:27:19] Production.INFO: ProcessCDR(1,14520173,1,1,2) [2025-02-20 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520173', 'tblTempUsageDetail_20' ) start [2025-02-20 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520173', 'tblTempUsageDetail_20' ) end [2025-02-20 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:27:22] Production.INFO: ==20930== Releasing lock... [2025-02-20 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:27:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:28:05 [end_date_ymd] => 2025-02-20 20:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:28:05' and `end` < '2025-02-20 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-02-20 20:28:17] Production.INFO: count ==2362 [2025-02-20 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:28:05 - End Time 2025-02-20 20:28:05 [2025-02-20 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520178', 'tblTempUsageDetail_20' ) start [2025-02-20 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520178', 'tblTempUsageDetail_20' ) end [2025-02-20 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520178', 'tblTempVendorCDR_20' ) start [2025-02-20 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520178', 'tblTempVendorCDR_20' ) end [2025-02-20 20:28:18] Production.INFO: ProcessCDR(1,14520178,1,1,2) [2025-02-20 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520178', 'tblTempUsageDetail_20' ) start [2025-02-20 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520178', 'tblTempUsageDetail_20' ) end [2025-02-20 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:28:21] Production.INFO: ==21002== Releasing lock... [2025-02-20 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:28:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:29:06 [end_date_ymd] => 2025-02-20 20:29:06 [RateCDR] => 1 ) [2025-02-20 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:29:06' and `end` < '2025-02-20 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:29:18] Production.INFO: count ==2356 [2025-02-20 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:29:06 - End Time 2025-02-20 20:29:06 [2025-02-20 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520183', 'tblTempUsageDetail_20' ) start [2025-02-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520183', 'tblTempUsageDetail_20' ) end [2025-02-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520183', 'tblTempVendorCDR_20' ) start [2025-02-20 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520183', 'tblTempVendorCDR_20' ) end [2025-02-20 20:29:19] Production.INFO: ProcessCDR(1,14520183,1,1,2) [2025-02-20 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520183', 'tblTempUsageDetail_20' ) start [2025-02-20 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520183', 'tblTempUsageDetail_20' ) end [2025-02-20 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:29:22] Production.INFO: ==21072== Releasing lock... [2025-02-20 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:29:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:30:07 [end_date_ymd] => 2025-02-20 20:30:07 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:30:07' and `end` < '2025-02-20 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-02-20 20:30:19] Production.INFO: count ==2348 [2025-02-20 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-20 17:30:07 - End Time 2025-02-20 20:30:07 [2025-02-20 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520189', 'tblTempUsageDetail_20' ) start [2025-02-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520189', 'tblTempUsageDetail_20' ) end [2025-02-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520189', 'tblTempVendorCDR_20' ) start [2025-02-20 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520189', 'tblTempVendorCDR_20' ) end [2025-02-20 20:30:20] Production.INFO: ProcessCDR(1,14520189,1,1,2) [2025-02-20 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520189', 'tblTempUsageDetail_20' ) start [2025-02-20 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520189', 'tblTempUsageDetail_20' ) end [2025-02-20 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:30:23] Production.INFO: ==21186== Releasing lock... [2025-02-20 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:30:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:31:05 [end_date_ymd] => 2025-02-20 20:31:05 [RateCDR] => 1 ) [2025-02-20 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:31:05' and `end` < '2025-02-20 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:31:17] Production.INFO: count ==2358 [2025-02-20 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:31:05 - End Time 2025-02-20 20:31:05 [2025-02-20 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520194', 'tblTempUsageDetail_20' ) start [2025-02-20 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520194', 'tblTempUsageDetail_20' ) end [2025-02-20 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520194', 'tblTempVendorCDR_20' ) start [2025-02-20 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520194', 'tblTempVendorCDR_20' ) end [2025-02-20 20:31:18] Production.INFO: ProcessCDR(1,14520194,1,1,2) [2025-02-20 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520194', 'tblTempUsageDetail_20' ) start [2025-02-20 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520194', 'tblTempUsageDetail_20' ) end [2025-02-20 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:31:23] Production.INFO: ==21259== Releasing lock... [2025-02-20 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:31:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:32:06 [end_date_ymd] => 2025-02-20 20:32:06 [RateCDR] => 1 ) [2025-02-20 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:32:06' and `end` < '2025-02-20 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:32:18] Production.INFO: count ==2346 [2025-02-20 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:32:06 - End Time 2025-02-20 20:32:06 [2025-02-20 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520199', 'tblTempUsageDetail_20' ) start [2025-02-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520199', 'tblTempUsageDetail_20' ) end [2025-02-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520199', 'tblTempVendorCDR_20' ) start [2025-02-20 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520199', 'tblTempVendorCDR_20' ) end [2025-02-20 20:32:19] Production.INFO: ProcessCDR(1,14520199,1,1,2) [2025-02-20 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520199', 'tblTempUsageDetail_20' ) start [2025-02-20 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520199', 'tblTempUsageDetail_20' ) end [2025-02-20 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:32:22] Production.INFO: ==21333== Releasing lock... [2025-02-20 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:32:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:33:05 [end_date_ymd] => 2025-02-20 20:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:33:05' and `end` < '2025-02-20 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-02-20 20:33:18] Production.INFO: count ==2344 [2025-02-20 20:33:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:33:05 - End Time 2025-02-20 20:33:05 [2025-02-20 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520204', 'tblTempUsageDetail_20' ) start [2025-02-20 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520204', 'tblTempUsageDetail_20' ) end [2025-02-20 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520204', 'tblTempVendorCDR_20' ) start [2025-02-20 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520204', 'tblTempVendorCDR_20' ) end [2025-02-20 20:33:18] Production.INFO: ProcessCDR(1,14520204,1,1,2) [2025-02-20 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520204', 'tblTempUsageDetail_20' ) start [2025-02-20 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520204', 'tblTempUsageDetail_20' ) end [2025-02-20 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:33:22] Production.INFO: ==21404== Releasing lock... [2025-02-20 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:33:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:34:06 [end_date_ymd] => 2025-02-20 20:34:06 [RateCDR] => 1 ) [2025-02-20 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:34:06' and `end` < '2025-02-20 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:34:18] Production.INFO: count ==2344 [2025-02-20 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:34:06 - End Time 2025-02-20 20:34:06 [2025-02-20 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520209', 'tblTempUsageDetail_20' ) start [2025-02-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520209', 'tblTempUsageDetail_20' ) end [2025-02-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520209', 'tblTempVendorCDR_20' ) start [2025-02-20 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520209', 'tblTempVendorCDR_20' ) end [2025-02-20 20:34:19] Production.INFO: ProcessCDR(1,14520209,1,1,2) [2025-02-20 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520209', 'tblTempUsageDetail_20' ) start [2025-02-20 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520209', 'tblTempUsageDetail_20' ) end [2025-02-20 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:34:22] Production.INFO: ==21479== Releasing lock... [2025-02-20 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:34:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:35:05 [end_date_ymd] => 2025-02-20 20:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:35:05' and `end` < '2025-02-20 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-02-20 20:35:18] Production.INFO: count ==2336 [2025-02-20 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:35:05 - End Time 2025-02-20 20:35:05 [2025-02-20 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520214', 'tblTempUsageDetail_20' ) start [2025-02-20 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520214', 'tblTempUsageDetail_20' ) end [2025-02-20 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520214', 'tblTempVendorCDR_20' ) start [2025-02-20 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520214', 'tblTempVendorCDR_20' ) end [2025-02-20 20:35:18] Production.INFO: ProcessCDR(1,14520214,1,1,2) [2025-02-20 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520214', 'tblTempUsageDetail_20' ) start [2025-02-20 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520214', 'tblTempUsageDetail_20' ) end [2025-02-20 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:35:22] Production.INFO: ==21549== Releasing lock... [2025-02-20 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:35:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:36:05 [end_date_ymd] => 2025-02-20 20:36:05 [RateCDR] => 1 ) [2025-02-20 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:36:05' and `end` < '2025-02-20 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:36:17] Production.INFO: count ==2332 [2025-02-20 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:36:05 - End Time 2025-02-20 20:36:05 [2025-02-20 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520219', 'tblTempUsageDetail_20' ) start [2025-02-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520219', 'tblTempUsageDetail_20' ) end [2025-02-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520219', 'tblTempVendorCDR_20' ) start [2025-02-20 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520219', 'tblTempVendorCDR_20' ) end [2025-02-20 20:36:18] Production.INFO: ProcessCDR(1,14520219,1,1,2) [2025-02-20 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520219', 'tblTempUsageDetail_20' ) start [2025-02-20 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520219', 'tblTempUsageDetail_20' ) end [2025-02-20 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:36:21] Production.INFO: ==21619== Releasing lock... [2025-02-20 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:36:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:37:05 [end_date_ymd] => 2025-02-20 20:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:37:05' and `end` < '2025-02-20 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-02-20 20:37:17] Production.INFO: count ==2331 [2025-02-20 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:37:05 - End Time 2025-02-20 20:37:05 [2025-02-20 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520224', 'tblTempUsageDetail_20' ) start [2025-02-20 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520224', 'tblTempUsageDetail_20' ) end [2025-02-20 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520224', 'tblTempVendorCDR_20' ) start [2025-02-20 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520224', 'tblTempVendorCDR_20' ) end [2025-02-20 20:37:18] Production.INFO: ProcessCDR(1,14520224,1,1,2) [2025-02-20 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520224', 'tblTempUsageDetail_20' ) start [2025-02-20 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520224', 'tblTempUsageDetail_20' ) end [2025-02-20 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:37:23] Production.INFO: ==21689== Releasing lock... [2025-02-20 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:37:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:38:05 [end_date_ymd] => 2025-02-20 20:38:05 [RateCDR] => 1 ) [2025-02-20 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:38:05' and `end` < '2025-02-20 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:38:17] Production.INFO: count ==2348 [2025-02-20 20:38:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:38:05 - End Time 2025-02-20 20:38:05 [2025-02-20 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520229', 'tblTempUsageDetail_20' ) start [2025-02-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520229', 'tblTempUsageDetail_20' ) end [2025-02-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520229', 'tblTempVendorCDR_20' ) start [2025-02-20 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520229', 'tblTempVendorCDR_20' ) end [2025-02-20 20:38:18] Production.INFO: ProcessCDR(1,14520229,1,1,2) [2025-02-20 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520229', 'tblTempUsageDetail_20' ) start [2025-02-20 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520229', 'tblTempUsageDetail_20' ) end [2025-02-20 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:38:23] Production.INFO: ==21760== Releasing lock... [2025-02-20 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:38:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:39:05 [end_date_ymd] => 2025-02-20 20:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:39:05' and `end` < '2025-02-20 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-02-20 20:39:17] Production.INFO: count ==2357 [2025-02-20 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:39:05 - End Time 2025-02-20 20:39:05 [2025-02-20 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520234', 'tblTempUsageDetail_20' ) start [2025-02-20 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520234', 'tblTempUsageDetail_20' ) end [2025-02-20 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520234', 'tblTempVendorCDR_20' ) start [2025-02-20 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520234', 'tblTempVendorCDR_20' ) end [2025-02-20 20:39:18] Production.INFO: ProcessCDR(1,14520234,1,1,2) [2025-02-20 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520234', 'tblTempUsageDetail_20' ) start [2025-02-20 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520234', 'tblTempUsageDetail_20' ) end [2025-02-20 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:39:22] Production.INFO: ==21830== Releasing lock... [2025-02-20 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:39:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:40:05 [end_date_ymd] => 2025-02-20 20:40:05 [RateCDR] => 1 ) [2025-02-20 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:40:05' and `end` < '2025-02-20 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:40:18] Production.INFO: count ==2353 [2025-02-20 20:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:40:05 - End Time 2025-02-20 20:40:05 [2025-02-20 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520240', 'tblTempUsageDetail_20' ) start [2025-02-20 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520240', 'tblTempUsageDetail_20' ) end [2025-02-20 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520240', 'tblTempVendorCDR_20' ) start [2025-02-20 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520240', 'tblTempVendorCDR_20' ) end [2025-02-20 20:40:18] Production.INFO: ProcessCDR(1,14520240,1,1,2) [2025-02-20 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520240', 'tblTempUsageDetail_20' ) start [2025-02-20 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520240', 'tblTempUsageDetail_20' ) end [2025-02-20 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:40:22] Production.INFO: ==21902== Releasing lock... [2025-02-20 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:40:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-20 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:41:05 [end_date_ymd] => 2025-02-20 20:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:41:05' and `end` < '2025-02-20 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-02-20 20:41:17] Production.INFO: count ==2330 [2025-02-20 20:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:41:05 - End Time 2025-02-20 20:41:05 [2025-02-20 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520245', 'tblTempUsageDetail_20' ) start [2025-02-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520245', 'tblTempUsageDetail_20' ) end [2025-02-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520245', 'tblTempVendorCDR_20' ) start [2025-02-20 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520245', 'tblTempVendorCDR_20' ) end [2025-02-20 20:41:18] Production.INFO: ProcessCDR(1,14520245,1,1,2) [2025-02-20 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520245', 'tblTempUsageDetail_20' ) start [2025-02-20 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520245', 'tblTempUsageDetail_20' ) end [2025-02-20 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:41:21] Production.INFO: ==21980== Releasing lock... [2025-02-20 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:41:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:42:05 [end_date_ymd] => 2025-02-20 20:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:42:05' and `end` < '2025-02-20 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-02-20 20:42:17] Production.INFO: count ==2316 [2025-02-20 20:42:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:42:05 - End Time 2025-02-20 20:42:05 [2025-02-20 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520250', 'tblTempUsageDetail_20' ) start [2025-02-20 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520250', 'tblTempUsageDetail_20' ) end [2025-02-20 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520250', 'tblTempVendorCDR_20' ) start [2025-02-20 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520250', 'tblTempVendorCDR_20' ) end [2025-02-20 20:42:18] Production.INFO: ProcessCDR(1,14520250,1,1,2) [2025-02-20 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520250', 'tblTempUsageDetail_20' ) start [2025-02-20 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520250', 'tblTempUsageDetail_20' ) end [2025-02-20 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:42:21] Production.INFO: ==22055== Releasing lock... [2025-02-20 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:42:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-20 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:43:05 [end_date_ymd] => 2025-02-20 20:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:43:05' and `end` < '2025-02-20 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-02-20 20:43:17] Production.INFO: count ==2313 [2025-02-20 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:43:05 - End Time 2025-02-20 20:43:05 [2025-02-20 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520255', 'tblTempUsageDetail_20' ) start [2025-02-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520255', 'tblTempUsageDetail_20' ) end [2025-02-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520255', 'tblTempVendorCDR_20' ) start [2025-02-20 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520255', 'tblTempVendorCDR_20' ) end [2025-02-20 20:43:18] Production.INFO: ProcessCDR(1,14520255,1,1,2) [2025-02-20 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520255', 'tblTempUsageDetail_20' ) start [2025-02-20 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520255', 'tblTempUsageDetail_20' ) end [2025-02-20 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:43:21] Production.INFO: ==22126== Releasing lock... [2025-02-20 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:43:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:44:06 [end_date_ymd] => 2025-02-20 20:44:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:44:06' and `end` < '2025-02-20 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-02-20 20:44:18] Production.INFO: count ==2313 [2025-02-20 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:44:06 - End Time 2025-02-20 20:44:06 [2025-02-20 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520260', 'tblTempUsageDetail_20' ) start [2025-02-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520260', 'tblTempUsageDetail_20' ) end [2025-02-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520260', 'tblTempVendorCDR_20' ) start [2025-02-20 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520260', 'tblTempVendorCDR_20' ) end [2025-02-20 20:44:19] Production.INFO: ProcessCDR(1,14520260,1,1,2) [2025-02-20 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520260', 'tblTempUsageDetail_20' ) start [2025-02-20 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520260', 'tblTempUsageDetail_20' ) end [2025-02-20 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:44:22] Production.INFO: ==22198== Releasing lock... [2025-02-20 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:44:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-20 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:45:05 [end_date_ymd] => 2025-02-20 20:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:45:05' and `end` < '2025-02-20 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-02-20 20:45:17] Production.INFO: count ==2308 [2025-02-20 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:45:05 - End Time 2025-02-20 20:45:05 [2025-02-20 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520265', 'tblTempUsageDetail_20' ) start [2025-02-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520265', 'tblTempUsageDetail_20' ) end [2025-02-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520265', 'tblTempVendorCDR_20' ) start [2025-02-20 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520265', 'tblTempVendorCDR_20' ) end [2025-02-20 20:45:18] Production.INFO: ProcessCDR(1,14520265,1,1,2) [2025-02-20 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520265', 'tblTempUsageDetail_20' ) start [2025-02-20 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520265', 'tblTempUsageDetail_20' ) end [2025-02-20 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:45:23] Production.INFO: ==22308== Releasing lock... [2025-02-20 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:45:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-20 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:46:05 [end_date_ymd] => 2025-02-20 20:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:46:05' and `end` < '2025-02-20 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-02-20 20:46:17] Production.INFO: count ==2302 [2025-02-20 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:46:05 - End Time 2025-02-20 20:46:05 [2025-02-20 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520270', 'tblTempUsageDetail_20' ) start [2025-02-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520270', 'tblTempUsageDetail_20' ) end [2025-02-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520270', 'tblTempVendorCDR_20' ) start [2025-02-20 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520270', 'tblTempVendorCDR_20' ) end [2025-02-20 20:46:18] Production.INFO: ProcessCDR(1,14520270,1,1,2) [2025-02-20 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520270', 'tblTempUsageDetail_20' ) start [2025-02-20 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520270', 'tblTempUsageDetail_20' ) end [2025-02-20 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:46:21] Production.INFO: ==22380== Releasing lock... [2025-02-20 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:46:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-20 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:47:05 [end_date_ymd] => 2025-02-20 20:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:47:05' and `end` < '2025-02-20 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-02-20 20:47:17] Production.INFO: count ==2285 [2025-02-20 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:47:05 - End Time 2025-02-20 20:47:05 [2025-02-20 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520275', 'tblTempUsageDetail_20' ) start [2025-02-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520275', 'tblTempUsageDetail_20' ) end [2025-02-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520275', 'tblTempVendorCDR_20' ) start [2025-02-20 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520275', 'tblTempVendorCDR_20' ) end [2025-02-20 20:47:18] Production.INFO: ProcessCDR(1,14520275,1,1,2) [2025-02-20 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520275', 'tblTempUsageDetail_20' ) start [2025-02-20 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520275', 'tblTempUsageDetail_20' ) end [2025-02-20 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:47:22] Production.INFO: ==22453== Releasing lock... [2025-02-20 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:47:22] Production.INFO: 45 MB #Memory Used# [2025-02-20 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:48:05 [end_date_ymd] => 2025-02-20 20:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:48:05' and `end` < '2025-02-20 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-02-20 20:48:17] Production.INFO: count ==2273 [2025-02-20 20:48:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:48:05 - End Time 2025-02-20 20:48:05 [2025-02-20 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520280', 'tblTempUsageDetail_20' ) start [2025-02-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520280', 'tblTempUsageDetail_20' ) end [2025-02-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520280', 'tblTempVendorCDR_20' ) start [2025-02-20 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520280', 'tblTempVendorCDR_20' ) end [2025-02-20 20:48:18] Production.INFO: ProcessCDR(1,14520280,1,1,2) [2025-02-20 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520280', 'tblTempUsageDetail_20' ) start [2025-02-20 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520280', 'tblTempUsageDetail_20' ) end [2025-02-20 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:48:22] Production.INFO: ==22525== Releasing lock... [2025-02-20 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:48:22] Production.INFO: 45 MB #Memory Used# [2025-02-20 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:49:05 [end_date_ymd] => 2025-02-20 20:49:05 [RateCDR] => 1 ) [2025-02-20 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:49:05' and `end` < '2025-02-20 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:49:17] Production.INFO: count ==2263 [2025-02-20 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:49:05 - End Time 2025-02-20 20:49:05 [2025-02-20 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520285', 'tblTempUsageDetail_20' ) start [2025-02-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520285', 'tblTempUsageDetail_20' ) end [2025-02-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520285', 'tblTempVendorCDR_20' ) start [2025-02-20 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520285', 'tblTempVendorCDR_20' ) end [2025-02-20 20:49:18] Production.INFO: ProcessCDR(1,14520285,1,1,2) [2025-02-20 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520285', 'tblTempUsageDetail_20' ) start [2025-02-20 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520285', 'tblTempUsageDetail_20' ) end [2025-02-20 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:49:21] Production.INFO: ==22596== Releasing lock... [2025-02-20 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:49:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-20 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:50:06 [end_date_ymd] => 2025-02-20 20:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:50:06' and `end` < '2025-02-20 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-02-20 20:50:18] Production.INFO: count ==2259 [2025-02-20 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:50:06 - End Time 2025-02-20 20:50:06 [2025-02-20 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520291', 'tblTempUsageDetail_20' ) start [2025-02-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520291', 'tblTempUsageDetail_20' ) end [2025-02-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520291', 'tblTempVendorCDR_20' ) start [2025-02-20 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520291', 'tblTempVendorCDR_20' ) end [2025-02-20 20:50:19] Production.INFO: ProcessCDR(1,14520291,1,1,2) [2025-02-20 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520291', 'tblTempUsageDetail_20' ) start [2025-02-20 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520291', 'tblTempUsageDetail_20' ) end [2025-02-20 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:50:23] Production.INFO: ==22669== Releasing lock... [2025-02-20 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:50:23] Production.INFO: 45 MB #Memory Used# [2025-02-20 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:51:05 [end_date_ymd] => 2025-02-20 20:51:05 [RateCDR] => 1 ) [2025-02-20 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:51:05' and `end` < '2025-02-20 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:51:17] Production.INFO: count ==2201 [2025-02-20 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:51:05 - End Time 2025-02-20 20:51:05 [2025-02-20 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520296', 'tblTempUsageDetail_20' ) start [2025-02-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520296', 'tblTempUsageDetail_20' ) end [2025-02-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520296', 'tblTempVendorCDR_20' ) start [2025-02-20 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520296', 'tblTempVendorCDR_20' ) end [2025-02-20 20:51:18] Production.INFO: ProcessCDR(1,14520296,1,1,2) [2025-02-20 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520296', 'tblTempUsageDetail_20' ) start [2025-02-20 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520296', 'tblTempUsageDetail_20' ) end [2025-02-20 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:51:22] Production.INFO: ==22741== Releasing lock... [2025-02-20 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:51:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:52:06 [end_date_ymd] => 2025-02-20 20:52:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:52:06' and `end` < '2025-02-20 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-02-20 20:52:18] Production.INFO: count ==2192 [2025-02-20 20:52:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:52:06 - End Time 2025-02-20 20:52:06 [2025-02-20 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520301', 'tblTempUsageDetail_20' ) start [2025-02-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520301', 'tblTempUsageDetail_20' ) end [2025-02-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520301', 'tblTempVendorCDR_20' ) start [2025-02-20 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520301', 'tblTempVendorCDR_20' ) end [2025-02-20 20:52:19] Production.INFO: ProcessCDR(1,14520301,1,1,2) [2025-02-20 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520301', 'tblTempUsageDetail_20' ) start [2025-02-20 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520301', 'tblTempUsageDetail_20' ) end [2025-02-20 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:52:22] Production.INFO: ==22812== Releasing lock... [2025-02-20 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:52:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:53:05 [end_date_ymd] => 2025-02-20 20:53:05 [RateCDR] => 1 ) [2025-02-20 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:53:05' and `end` < '2025-02-20 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:53:17] Production.INFO: count ==2187 [2025-02-20 20:53:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:53:05 - End Time 2025-02-20 20:53:05 [2025-02-20 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520306', 'tblTempUsageDetail_20' ) start [2025-02-20 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520306', 'tblTempUsageDetail_20' ) end [2025-02-20 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520306', 'tblTempVendorCDR_20' ) start [2025-02-20 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520306', 'tblTempVendorCDR_20' ) end [2025-02-20 20:53:18] Production.INFO: ProcessCDR(1,14520306,1,1,2) [2025-02-20 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520306', 'tblTempUsageDetail_20' ) start [2025-02-20 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520306', 'tblTempUsageDetail_20' ) end [2025-02-20 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:53:21] Production.INFO: ==22885== Releasing lock... [2025-02-20 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:53:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:54:05 [end_date_ymd] => 2025-02-20 20:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:54:05' and `end` < '2025-02-20 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-02-20 20:54:17] Production.INFO: count ==2183 [2025-02-20 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:54:05 - End Time 2025-02-20 20:54:05 [2025-02-20 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520311', 'tblTempUsageDetail_20' ) start [2025-02-20 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520311', 'tblTempUsageDetail_20' ) end [2025-02-20 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520311', 'tblTempVendorCDR_20' ) start [2025-02-20 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520311', 'tblTempVendorCDR_20' ) end [2025-02-20 20:54:18] Production.INFO: ProcessCDR(1,14520311,1,1,2) [2025-02-20 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520311', 'tblTempUsageDetail_20' ) start [2025-02-20 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520311', 'tblTempUsageDetail_20' ) end [2025-02-20 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:54:22] Production.INFO: ==22957== Releasing lock... [2025-02-20 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:54:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:55:05 [end_date_ymd] => 2025-02-20 20:55:05 [RateCDR] => 1 ) [2025-02-20 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:55:05' and `end` < '2025-02-20 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:55:17] Production.INFO: count ==2174 [2025-02-20 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:55:05 - End Time 2025-02-20 20:55:05 [2025-02-20 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520316', 'tblTempUsageDetail_20' ) start [2025-02-20 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520316', 'tblTempUsageDetail_20' ) end [2025-02-20 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520316', 'tblTempVendorCDR_20' ) start [2025-02-20 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520316', 'tblTempVendorCDR_20' ) end [2025-02-20 20:55:18] Production.INFO: ProcessCDR(1,14520316,1,1,2) [2025-02-20 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520316', 'tblTempUsageDetail_20' ) start [2025-02-20 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520316', 'tblTempUsageDetail_20' ) end [2025-02-20 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:55:22] Production.INFO: ==23026== Releasing lock... [2025-02-20 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:55:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:56:06 [end_date_ymd] => 2025-02-20 20:56:06 [RateCDR] => 1 ) [2025-02-20 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:56:06' and `end` < '2025-02-20 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:56:18] Production.INFO: count ==2170 [2025-02-20 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-20 17:56:06 - End Time 2025-02-20 20:56:06 [2025-02-20 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520321', 'tblTempUsageDetail_20' ) start [2025-02-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520321', 'tblTempUsageDetail_20' ) end [2025-02-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520321', 'tblTempVendorCDR_20' ) start [2025-02-20 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520321', 'tblTempVendorCDR_20' ) end [2025-02-20 20:56:19] Production.INFO: ProcessCDR(1,14520321,1,1,2) [2025-02-20 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520321', 'tblTempUsageDetail_20' ) start [2025-02-20 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520321', 'tblTempUsageDetail_20' ) end [2025-02-20 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:56:22] Production.INFO: ==23098== Releasing lock... [2025-02-20 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:56:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-20 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:57:06 [end_date_ymd] => 2025-02-20 20:57:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 17:57:06' and `end` < '2025-02-20 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-02-20 20:57:18] Production.INFO: count ==2164 [2025-02-20 20:57:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:57:06 - End Time 2025-02-20 20:57:06 [2025-02-20 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520326', 'tblTempUsageDetail_20' ) start [2025-02-20 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520326', 'tblTempUsageDetail_20' ) end [2025-02-20 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520326', 'tblTempVendorCDR_20' ) start [2025-02-20 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520326', 'tblTempVendorCDR_20' ) end [2025-02-20 20:57:18] Production.INFO: ProcessCDR(1,14520326,1,1,2) [2025-02-20 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520326', 'tblTempUsageDetail_20' ) start [2025-02-20 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520326', 'tblTempUsageDetail_20' ) end [2025-02-20 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:57:23] Production.INFO: ==23170== Releasing lock... [2025-02-20 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:57:23] Production.INFO: 44 MB #Memory Used# [2025-02-20 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:58:06 [end_date_ymd] => 2025-02-20 20:58:06 [RateCDR] => 1 ) [2025-02-20 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 17:58:06' and `end` < '2025-02-20 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 20:58:18] Production.INFO: count ==2148 [2025-02-20 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:58:06 - End Time 2025-02-20 20:58:06 [2025-02-20 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520331', 'tblTempUsageDetail_20' ) start [2025-02-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520331', 'tblTempUsageDetail_20' ) end [2025-02-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520331', 'tblTempVendorCDR_20' ) start [2025-02-20 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520331', 'tblTempVendorCDR_20' ) end [2025-02-20 20:58:19] Production.INFO: ProcessCDR(1,14520331,1,1,2) [2025-02-20 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520331', 'tblTempUsageDetail_20' ) start [2025-02-20 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520331', 'tblTempUsageDetail_20' ) end [2025-02-20 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:58:22] Production.INFO: ==23240== Releasing lock... [2025-02-20 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:58:22] Production.INFO: 44 MB #Memory Used# [2025-02-20 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 17:59:05 [end_date_ymd] => 2025-02-20 20:59:05 [RateCDR] => 1 ) [2025-02-20 20: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-02-20 17:59:05' and `end` < '2025-02-20 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-02-20 20:59:18] Production.INFO: count ==2138 [2025-02-20 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 17:59:05 - End Time 2025-02-20 20:59:05 [2025-02-20 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520336', 'tblTempUsageDetail_20' ) start [2025-02-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520336', 'tblTempUsageDetail_20' ) end [2025-02-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520336', 'tblTempVendorCDR_20' ) start [2025-02-20 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520336', 'tblTempVendorCDR_20' ) end [2025-02-20 20:59:18] Production.INFO: ProcessCDR(1,14520336,1,1,2) [2025-02-20 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520336', 'tblTempUsageDetail_20' ) start [2025-02-20 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520336', 'tblTempUsageDetail_20' ) end [2025-02-20 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 20:59:22] Production.INFO: ==23315== Releasing lock... [2025-02-20 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 20:59:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-20 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:00:07 [end_date_ymd] => 2025-02-20 21:00:07 [RateCDR] => 1 ) [2025-02-20 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:00:07' and `end` < '2025-02-20 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:00:19] Production.INFO: count ==2134 [2025-02-20 21:00:20] Production.ERROR: pbx CDR StartTime 2025-02-20 18:00:07 - End Time 2025-02-20 21:00:07 [2025-02-20 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520342', 'tblTempUsageDetail_20' ) start [2025-02-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520342', 'tblTempUsageDetail_20' ) end [2025-02-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520342', 'tblTempVendorCDR_20' ) start [2025-02-20 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520342', 'tblTempVendorCDR_20' ) end [2025-02-20 21:00:20] Production.INFO: ProcessCDR(1,14520342,1,1,2) [2025-02-20 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520342', 'tblTempUsageDetail_20' ) start [2025-02-20 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520342', 'tblTempUsageDetail_20' ) end [2025-02-20 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:00:25] Production.INFO: ==23391== Releasing lock... [2025-02-20 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:00:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-20 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:01:06 [end_date_ymd] => 2025-02-20 21:01:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:01:06' and `end` < '2025-02-20 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-02-20 21:01:18] Production.INFO: count ==2046 [2025-02-20 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:01:06 - End Time 2025-02-20 21:01:06 [2025-02-20 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520347', 'tblTempUsageDetail_20' ) start [2025-02-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520347', 'tblTempUsageDetail_20' ) end [2025-02-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520347', 'tblTempVendorCDR_20' ) start [2025-02-20 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520347', 'tblTempVendorCDR_20' ) end [2025-02-20 21:01:18] Production.INFO: ProcessCDR(1,14520347,1,1,2) [2025-02-20 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520347', 'tblTempUsageDetail_20' ) start [2025-02-20 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520347', 'tblTempUsageDetail_20' ) end [2025-02-20 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:01:23] Production.INFO: ==23513== Releasing lock... [2025-02-20 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:01:23] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:02:05 [end_date_ymd] => 2025-02-20 21:02:05 [RateCDR] => 1 ) [2025-02-20 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:02:05' and `end` < '2025-02-20 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:02:17] Production.INFO: count ==2035 [2025-02-20 21:02:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:02:05 - End Time 2025-02-20 21:02:05 [2025-02-20 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520352', 'tblTempUsageDetail_20' ) start [2025-02-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520352', 'tblTempUsageDetail_20' ) end [2025-02-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520352', 'tblTempVendorCDR_20' ) start [2025-02-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520352', 'tblTempVendorCDR_20' ) end [2025-02-20 21:02:17] Production.INFO: ProcessCDR(1,14520352,1,1,2) [2025-02-20 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520352', 'tblTempUsageDetail_20' ) start [2025-02-20 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520352', 'tblTempUsageDetail_20' ) end [2025-02-20 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:02:22] Production.INFO: ==23589== Releasing lock... [2025-02-20 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:02:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-20 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:03:06 [end_date_ymd] => 2025-02-20 21:03:06 [RateCDR] => 1 ) [2025-02-20 21: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-02-20 18:03:06' and `end` < '2025-02-20 21: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-02-20 21:03:18] Production.INFO: count ==2028 [2025-02-20 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:03:06 - End Time 2025-02-20 21:03:06 [2025-02-20 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520357', 'tblTempUsageDetail_20' ) start [2025-02-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520357', 'tblTempUsageDetail_20' ) end [2025-02-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520357', 'tblTempVendorCDR_20' ) start [2025-02-20 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520357', 'tblTempVendorCDR_20' ) end [2025-02-20 21:03:18] Production.INFO: ProcessCDR(1,14520357,1,1,2) [2025-02-20 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520357', 'tblTempUsageDetail_20' ) start [2025-02-20 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520357', 'tblTempUsageDetail_20' ) end [2025-02-20 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:03:22] Production.INFO: ==23659== Releasing lock... [2025-02-20 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:03:22] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:04:05 [end_date_ymd] => 2025-02-20 21:04:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:04:05' and `end` < '2025-02-20 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-02-20 21:04:17] Production.INFO: count ==2028 [2025-02-20 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:04:05 - End Time 2025-02-20 21:04:05 [2025-02-20 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520362', 'tblTempUsageDetail_20' ) start [2025-02-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520362', 'tblTempUsageDetail_20' ) end [2025-02-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520362', 'tblTempVendorCDR_20' ) start [2025-02-20 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520362', 'tblTempVendorCDR_20' ) end [2025-02-20 21:04:18] Production.INFO: ProcessCDR(1,14520362,1,1,2) [2025-02-20 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520362', 'tblTempUsageDetail_20' ) start [2025-02-20 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520362', 'tblTempUsageDetail_20' ) end [2025-02-20 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:04:21] Production.INFO: ==23730== Releasing lock... [2025-02-20 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:04:21] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:05:06 [end_date_ymd] => 2025-02-20 21:05:06 [RateCDR] => 1 ) [2025-02-20 21: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-02-20 18:05:06' and `end` < '2025-02-20 21: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-02-20 21:05:18] Production.INFO: count ==2022 [2025-02-20 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:05:06 - End Time 2025-02-20 21:05:06 [2025-02-20 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520367', 'tblTempUsageDetail_20' ) start [2025-02-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520367', 'tblTempUsageDetail_20' ) end [2025-02-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520367', 'tblTempVendorCDR_20' ) start [2025-02-20 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520367', 'tblTempVendorCDR_20' ) end [2025-02-20 21:05:18] Production.INFO: ProcessCDR(1,14520367,1,1,2) [2025-02-20 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520367', 'tblTempUsageDetail_20' ) start [2025-02-20 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520367', 'tblTempUsageDetail_20' ) end [2025-02-20 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:05:22] Production.INFO: ==23801== Releasing lock... [2025-02-20 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:05:22] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:06:05 [end_date_ymd] => 2025-02-20 21:06:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:06:05' and `end` < '2025-02-20 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-02-20 21:06:17] Production.INFO: count ==2021 [2025-02-20 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:06:05 - End Time 2025-02-20 21:06:05 [2025-02-20 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520372', 'tblTempUsageDetail_20' ) start [2025-02-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520372', 'tblTempUsageDetail_20' ) end [2025-02-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520372', 'tblTempVendorCDR_20' ) start [2025-02-20 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520372', 'tblTempVendorCDR_20' ) end [2025-02-20 21:06:18] Production.INFO: ProcessCDR(1,14520372,1,1,2) [2025-02-20 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520372', 'tblTempUsageDetail_20' ) start [2025-02-20 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520372', 'tblTempUsageDetail_20' ) end [2025-02-20 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:06:23] Production.INFO: ==23872== Releasing lock... [2025-02-20 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:06:23] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:07:05 [end_date_ymd] => 2025-02-20 21:07:05 [RateCDR] => 1 ) [2025-02-20 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:07:05' and `end` < '2025-02-20 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:07:17] Production.INFO: count ==2020 [2025-02-20 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:07:05 - End Time 2025-02-20 21:07:05 [2025-02-20 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520377', 'tblTempUsageDetail_20' ) start [2025-02-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520377', 'tblTempUsageDetail_20' ) end [2025-02-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520377', 'tblTempVendorCDR_20' ) start [2025-02-20 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520377', 'tblTempVendorCDR_20' ) end [2025-02-20 21:07:18] Production.INFO: ProcessCDR(1,14520377,1,1,2) [2025-02-20 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520377', 'tblTempUsageDetail_20' ) start [2025-02-20 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520377', 'tblTempUsageDetail_20' ) end [2025-02-20 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:07:23] Production.INFO: ==23941== Releasing lock... [2025-02-20 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:07:23] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:08:05 [end_date_ymd] => 2025-02-20 21:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:08:05' and `end` < '2025-02-20 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-02-20 21:08:17] Production.INFO: count ==2025 [2025-02-20 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:08:05 - End Time 2025-02-20 21:08:05 [2025-02-20 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520382', 'tblTempUsageDetail_20' ) start [2025-02-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520382', 'tblTempUsageDetail_20' ) end [2025-02-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520382', 'tblTempVendorCDR_20' ) start [2025-02-20 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520382', 'tblTempVendorCDR_20' ) end [2025-02-20 21:08:18] Production.INFO: ProcessCDR(1,14520382,1,1,2) [2025-02-20 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520382', 'tblTempUsageDetail_20' ) start [2025-02-20 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520382', 'tblTempUsageDetail_20' ) end [2025-02-20 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:08:23] Production.INFO: ==24012== Releasing lock... [2025-02-20 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:08:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-20 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:09:05 [end_date_ymd] => 2025-02-20 21:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:09:05' and `end` < '2025-02-20 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-02-20 21:09:17] Production.INFO: count ==2009 [2025-02-20 21:09:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:09:05 - End Time 2025-02-20 21:09:05 [2025-02-20 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520387', 'tblTempUsageDetail_20' ) start [2025-02-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520387', 'tblTempUsageDetail_20' ) end [2025-02-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520387', 'tblTempVendorCDR_20' ) start [2025-02-20 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520387', 'tblTempVendorCDR_20' ) end [2025-02-20 21:09:18] Production.INFO: ProcessCDR(1,14520387,1,1,2) [2025-02-20 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520387', 'tblTempUsageDetail_20' ) start [2025-02-20 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520387', 'tblTempUsageDetail_20' ) end [2025-02-20 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:09:21] Production.INFO: ==24083== Releasing lock... [2025-02-20 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:09:21] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:10:06 [end_date_ymd] => 2025-02-20 21:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:10:06' and `end` < '2025-02-20 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-02-20 21:10:18] Production.INFO: count ==2008 [2025-02-20 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-20 18:10:06 - End Time 2025-02-20 21:10:06 [2025-02-20 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520392', 'tblTempUsageDetail_20' ) start [2025-02-20 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520392', 'tblTempUsageDetail_20' ) end [2025-02-20 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520392', 'tblTempVendorCDR_20' ) start [2025-02-20 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520392', 'tblTempVendorCDR_20' ) end [2025-02-20 21:10:19] Production.INFO: ProcessCDR(1,14520392,1,1,2) [2025-02-20 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520392', 'tblTempUsageDetail_20' ) start [2025-02-20 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520392', 'tblTempUsageDetail_20' ) end [2025-02-20 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:10:23] Production.INFO: ==24157== Releasing lock... [2025-02-20 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:10:23] Production.INFO: 43 MB #Memory Used# [2025-02-20 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:11:05 [end_date_ymd] => 2025-02-20 21:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:11:05' and `end` < '2025-02-20 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-02-20 21:11:17] Production.INFO: count ==1952 [2025-02-20 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:11:05 - End Time 2025-02-20 21:11:05 [2025-02-20 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520398', 'tblTempUsageDetail_20' ) start [2025-02-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520398', 'tblTempUsageDetail_20' ) end [2025-02-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520398', 'tblTempVendorCDR_20' ) start [2025-02-20 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520398', 'tblTempVendorCDR_20' ) end [2025-02-20 21:11:18] Production.INFO: ProcessCDR(1,14520398,1,1,2) [2025-02-20 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520398', 'tblTempUsageDetail_20' ) start [2025-02-20 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520398', 'tblTempUsageDetail_20' ) end [2025-02-20 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:11:21] Production.INFO: ==24231== Releasing lock... [2025-02-20 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:11:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-20 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:12:06 [end_date_ymd] => 2025-02-20 21:12:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:12:06' and `end` < '2025-02-20 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-02-20 21:12:18] Production.INFO: count ==1946 [2025-02-20 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-20 18:12:06 - End Time 2025-02-20 21:12:06 [2025-02-20 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520403', 'tblTempUsageDetail_20' ) start [2025-02-20 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520403', 'tblTempUsageDetail_20' ) end [2025-02-20 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520403', 'tblTempVendorCDR_20' ) start [2025-02-20 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520403', 'tblTempVendorCDR_20' ) end [2025-02-20 21:12:19] Production.INFO: ProcessCDR(1,14520403,1,1,2) [2025-02-20 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520403', 'tblTempUsageDetail_20' ) start [2025-02-20 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520403', 'tblTempUsageDetail_20' ) end [2025-02-20 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:12:22] Production.INFO: ==24307== Releasing lock... [2025-02-20 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:12:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-20 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:13:05 [end_date_ymd] => 2025-02-20 21:13:05 [RateCDR] => 1 ) [2025-02-20 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:13:05' and `end` < '2025-02-20 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:13:17] Production.INFO: count ==1943 [2025-02-20 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:13:05 - End Time 2025-02-20 21:13:05 [2025-02-20 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520408', 'tblTempUsageDetail_20' ) start [2025-02-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520408', 'tblTempUsageDetail_20' ) end [2025-02-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520408', 'tblTempVendorCDR_20' ) start [2025-02-20 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520408', 'tblTempVendorCDR_20' ) end [2025-02-20 21:13:18] Production.INFO: ProcessCDR(1,14520408,1,1,2) [2025-02-20 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520408', 'tblTempUsageDetail_20' ) start [2025-02-20 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520408', 'tblTempUsageDetail_20' ) end [2025-02-20 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:13:21] Production.INFO: ==24379== Releasing lock... [2025-02-20 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:13:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-20 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:14:05 [end_date_ymd] => 2025-02-20 21:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:14:05' and `end` < '2025-02-20 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-02-20 21:14:17] Production.INFO: count ==1931 [2025-02-20 21:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:14:05 - End Time 2025-02-20 21:14:05 [2025-02-20 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520413', 'tblTempUsageDetail_20' ) start [2025-02-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520413', 'tblTempUsageDetail_20' ) end [2025-02-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520413', 'tblTempVendorCDR_20' ) start [2025-02-20 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520413', 'tblTempVendorCDR_20' ) end [2025-02-20 21:14:17] Production.INFO: ProcessCDR(1,14520413,1,1,2) [2025-02-20 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520413', 'tblTempUsageDetail_20' ) start [2025-02-20 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520413', 'tblTempUsageDetail_20' ) end [2025-02-20 21:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:14:20] Production.INFO: ==24452== Releasing lock... [2025-02-20 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:14:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-20 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:15:06 [end_date_ymd] => 2025-02-20 21:15:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:15:06' and `end` < '2025-02-20 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-02-20 21:15:18] Production.INFO: count ==1923 [2025-02-20 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:15:06 - End Time 2025-02-20 21:15:06 [2025-02-20 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520418', 'tblTempUsageDetail_20' ) start [2025-02-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520418', 'tblTempUsageDetail_20' ) end [2025-02-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520418', 'tblTempVendorCDR_20' ) start [2025-02-20 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520418', 'tblTempVendorCDR_20' ) end [2025-02-20 21:15:18] Production.INFO: ProcessCDR(1,14520418,1,1,2) [2025-02-20 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520418', 'tblTempUsageDetail_20' ) start [2025-02-20 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520418', 'tblTempUsageDetail_20' ) end [2025-02-20 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:15:21] Production.INFO: ==24523== Releasing lock... [2025-02-20 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:15:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-20 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:16:05 [end_date_ymd] => 2025-02-20 21:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:16:05' and `end` < '2025-02-20 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-02-20 21:16:17] Production.INFO: count ==1925 [2025-02-20 21:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:16:05 - End Time 2025-02-20 21:16:05 [2025-02-20 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520423', 'tblTempUsageDetail_20' ) start [2025-02-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520423', 'tblTempUsageDetail_20' ) end [2025-02-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520423', 'tblTempVendorCDR_20' ) start [2025-02-20 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520423', 'tblTempVendorCDR_20' ) end [2025-02-20 21:16:17] Production.INFO: ProcessCDR(1,14520423,1,1,2) [2025-02-20 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520423', 'tblTempUsageDetail_20' ) start [2025-02-20 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520423', 'tblTempUsageDetail_20' ) end [2025-02-20 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:16:21] Production.INFO: ==24632== Releasing lock... [2025-02-20 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:16:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-20 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:17:05 [end_date_ymd] => 2025-02-20 21:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:17:05' and `end` < '2025-02-20 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-02-20 21:17:17] Production.INFO: count ==1923 [2025-02-20 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:17:05 - End Time 2025-02-20 21:17:05 [2025-02-20 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520428', 'tblTempUsageDetail_20' ) start [2025-02-20 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520428', 'tblTempUsageDetail_20' ) end [2025-02-20 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520428', 'tblTempVendorCDR_20' ) start [2025-02-20 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520428', 'tblTempVendorCDR_20' ) end [2025-02-20 21:17:18] Production.INFO: ProcessCDR(1,14520428,1,1,2) [2025-02-20 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520428', 'tblTempUsageDetail_20' ) start [2025-02-20 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520428', 'tblTempUsageDetail_20' ) end [2025-02-20 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:17:21] Production.INFO: ==24705== Releasing lock... [2025-02-20 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:17:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-20 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:18:06 [end_date_ymd] => 2025-02-20 21:18:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:18:06' and `end` < '2025-02-20 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-02-20 21:18:18] Production.INFO: count ==1906 [2025-02-20 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:18:06 - End Time 2025-02-20 21:18:06 [2025-02-20 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520433', 'tblTempUsageDetail_20' ) start [2025-02-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520433', 'tblTempUsageDetail_20' ) end [2025-02-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520433', 'tblTempVendorCDR_20' ) start [2025-02-20 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520433', 'tblTempVendorCDR_20' ) end [2025-02-20 21:18:18] Production.INFO: ProcessCDR(1,14520433,1,1,2) [2025-02-20 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520433', 'tblTempUsageDetail_20' ) start [2025-02-20 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520433', 'tblTempUsageDetail_20' ) end [2025-02-20 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:18:21] Production.INFO: ==24775== Releasing lock... [2025-02-20 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:18:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-20 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:19:05 [end_date_ymd] => 2025-02-20 21:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:19:05' and `end` < '2025-02-20 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-02-20 21:19:17] Production.INFO: count ==1902 [2025-02-20 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:19:05 - End Time 2025-02-20 21:19:05 [2025-02-20 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520438', 'tblTempUsageDetail_20' ) start [2025-02-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520438', 'tblTempUsageDetail_20' ) end [2025-02-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520438', 'tblTempVendorCDR_20' ) start [2025-02-20 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520438', 'tblTempVendorCDR_20' ) end [2025-02-20 21:19:18] Production.INFO: ProcessCDR(1,14520438,1,1,2) [2025-02-20 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520438', 'tblTempUsageDetail_20' ) start [2025-02-20 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520438', 'tblTempUsageDetail_20' ) end [2025-02-20 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:19:21] Production.INFO: ==24846== Releasing lock... [2025-02-20 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:19:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-20 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:20:06 [end_date_ymd] => 2025-02-20 21:20:06 [RateCDR] => 1 ) [2025-02-20 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:20:06' and `end` < '2025-02-20 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:20:18] Production.INFO: count ==1899 [2025-02-20 21:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:20:06 - End Time 2025-02-20 21:20:06 [2025-02-20 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520443', 'tblTempUsageDetail_20' ) start [2025-02-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520443', 'tblTempUsageDetail_20' ) end [2025-02-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520443', 'tblTempVendorCDR_20' ) start [2025-02-20 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520443', 'tblTempVendorCDR_20' ) end [2025-02-20 21:20:19] Production.INFO: ProcessCDR(1,14520443,1,1,2) [2025-02-20 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520443', 'tblTempUsageDetail_20' ) start [2025-02-20 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520443', 'tblTempUsageDetail_20' ) end [2025-02-20 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:20:23] Production.INFO: ==24918== Releasing lock... [2025-02-20 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:20:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-20 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:21:05 [end_date_ymd] => 2025-02-20 21:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:21:05' and `end` < '2025-02-20 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-02-20 21:21:17] Production.INFO: count ==1856 [2025-02-20 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:21:05 - End Time 2025-02-20 21:21:05 [2025-02-20 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520449', 'tblTempUsageDetail_20' ) start [2025-02-20 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520449', 'tblTempUsageDetail_20' ) end [2025-02-20 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520449', 'tblTempVendorCDR_20' ) start [2025-02-20 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520449', 'tblTempVendorCDR_20' ) end [2025-02-20 21:21:18] Production.INFO: ProcessCDR(1,14520449,1,1,2) [2025-02-20 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520449', 'tblTempUsageDetail_20' ) start [2025-02-20 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520449', 'tblTempUsageDetail_20' ) end [2025-02-20 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:21:21] Production.INFO: ==24995== Releasing lock... [2025-02-20 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:21:21] Production.INFO: 42 MB #Memory Used# [2025-02-20 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:22:05 [end_date_ymd] => 2025-02-20 21:22:05 [RateCDR] => 1 ) [2025-02-20 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:22:05' and `end` < '2025-02-20 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-02-20 21:22:17] Production.INFO: count ==1859 [2025-02-20 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:22:05 - End Time 2025-02-20 21:22:05 [2025-02-20 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520454', 'tblTempUsageDetail_20' ) start [2025-02-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520454', 'tblTempUsageDetail_20' ) end [2025-02-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520454', 'tblTempVendorCDR_20' ) start [2025-02-20 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520454', 'tblTempVendorCDR_20' ) end [2025-02-20 21:22:18] Production.INFO: ProcessCDR(1,14520454,1,1,2) [2025-02-20 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520454', 'tblTempUsageDetail_20' ) start [2025-02-20 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520454', 'tblTempUsageDetail_20' ) end [2025-02-20 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:22:21] Production.INFO: ==25067== Releasing lock... [2025-02-20 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:22:21] Production.INFO: 42 MB #Memory Used# [2025-02-20 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:23:05 [end_date_ymd] => 2025-02-20 21:23:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:23:05' and `end` < '2025-02-20 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-02-20 21:23:17] Production.INFO: count ==1857 [2025-02-20 21:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:23:05 - End Time 2025-02-20 21:23:05 [2025-02-20 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520459', 'tblTempUsageDetail_20' ) start [2025-02-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520459', 'tblTempUsageDetail_20' ) end [2025-02-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520459', 'tblTempVendorCDR_20' ) start [2025-02-20 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520459', 'tblTempVendorCDR_20' ) end [2025-02-20 21:23:17] Production.INFO: ProcessCDR(1,14520459,1,1,2) [2025-02-20 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520459', 'tblTempUsageDetail_20' ) start [2025-02-20 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520459', 'tblTempUsageDetail_20' ) end [2025-02-20 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:23:21] Production.INFO: ==25138== Releasing lock... [2025-02-20 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:23:21] Production.INFO: 42 MB #Memory Used# [2025-02-20 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:24:05 [end_date_ymd] => 2025-02-20 21:24:05 [RateCDR] => 1 ) [2025-02-20 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:24:05' and `end` < '2025-02-20 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:24:17] Production.INFO: count ==1856 [2025-02-20 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:24:05 - End Time 2025-02-20 21:24:05 [2025-02-20 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520464', 'tblTempUsageDetail_20' ) start [2025-02-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520464', 'tblTempUsageDetail_20' ) end [2025-02-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520464', 'tblTempVendorCDR_20' ) start [2025-02-20 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520464', 'tblTempVendorCDR_20' ) end [2025-02-20 21:24:18] Production.INFO: ProcessCDR(1,14520464,1,1,2) [2025-02-20 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520464', 'tblTempUsageDetail_20' ) start [2025-02-20 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520464', 'tblTempUsageDetail_20' ) end [2025-02-20 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:24:21] Production.INFO: ==25209== Releasing lock... [2025-02-20 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:24:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:25:05 [end_date_ymd] => 2025-02-20 21:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:25:05' and `end` < '2025-02-20 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-02-20 21:25:17] Production.INFO: count ==1854 [2025-02-20 21:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:25:05 - End Time 2025-02-20 21:25:05 [2025-02-20 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520469', 'tblTempUsageDetail_20' ) start [2025-02-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520469', 'tblTempUsageDetail_20' ) end [2025-02-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520469', 'tblTempVendorCDR_20' ) start [2025-02-20 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520469', 'tblTempVendorCDR_20' ) end [2025-02-20 21:25:17] Production.INFO: ProcessCDR(1,14520469,1,1,2) [2025-02-20 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520469', 'tblTempUsageDetail_20' ) start [2025-02-20 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520469', 'tblTempUsageDetail_20' ) end [2025-02-20 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:25:21] Production.INFO: ==25281== Releasing lock... [2025-02-20 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:25:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:26:05 [end_date_ymd] => 2025-02-20 21:26:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:26:05' and `end` < '2025-02-20 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-02-20 21:26:17] Production.INFO: count ==1860 [2025-02-20 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:26:05 - End Time 2025-02-20 21:26:05 [2025-02-20 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520474', 'tblTempUsageDetail_20' ) start [2025-02-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520474', 'tblTempUsageDetail_20' ) end [2025-02-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520474', 'tblTempVendorCDR_20' ) start [2025-02-20 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520474', 'tblTempVendorCDR_20' ) end [2025-02-20 21:26:18] Production.INFO: ProcessCDR(1,14520474,1,1,2) [2025-02-20 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520474', 'tblTempUsageDetail_20' ) start [2025-02-20 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520474', 'tblTempUsageDetail_20' ) end [2025-02-20 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:26:22] Production.INFO: ==25357== Releasing lock... [2025-02-20 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:26:22] Production.INFO: 42 MB #Memory Used# [2025-02-20 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:27:05 [end_date_ymd] => 2025-02-20 21:27:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:27:05' and `end` < '2025-02-20 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-02-20 21:27:17] Production.INFO: count ==1860 [2025-02-20 21:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:27:05 - End Time 2025-02-20 21:27:05 [2025-02-20 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520479', 'tblTempUsageDetail_20' ) start [2025-02-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520479', 'tblTempUsageDetail_20' ) end [2025-02-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520479', 'tblTempVendorCDR_20' ) start [2025-02-20 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520479', 'tblTempVendorCDR_20' ) end [2025-02-20 21:27:17] Production.INFO: ProcessCDR(1,14520479,1,1,2) [2025-02-20 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520479', 'tblTempUsageDetail_20' ) start [2025-02-20 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520479', 'tblTempUsageDetail_20' ) end [2025-02-20 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:27:20] Production.INFO: ==25427== Releasing lock... [2025-02-20 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:27:20] Production.INFO: 42 MB #Memory Used# [2025-02-20 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:28:05 [end_date_ymd] => 2025-02-20 21:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:28:05' and `end` < '2025-02-20 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-02-20 21:28:17] Production.INFO: count ==1859 [2025-02-20 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:28:05 - End Time 2025-02-20 21:28:05 [2025-02-20 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520484', 'tblTempUsageDetail_20' ) start [2025-02-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520484', 'tblTempUsageDetail_20' ) end [2025-02-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520484', 'tblTempVendorCDR_20' ) start [2025-02-20 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520484', 'tblTempVendorCDR_20' ) end [2025-02-20 21:28:18] Production.INFO: ProcessCDR(1,14520484,1,1,2) [2025-02-20 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520484', 'tblTempUsageDetail_20' ) start [2025-02-20 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520484', 'tblTempUsageDetail_20' ) end [2025-02-20 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:28:21] Production.INFO: ==25498== Releasing lock... [2025-02-20 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:28:21] Production.INFO: 42 MB #Memory Used# [2025-02-20 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:29:06 [end_date_ymd] => 2025-02-20 21:29:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:29:06' and `end` < '2025-02-20 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-02-20 21:29:18] Production.INFO: count ==1862 [2025-02-20 21:29:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:29:06 - End Time 2025-02-20 21:29:06 [2025-02-20 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520489', 'tblTempUsageDetail_20' ) start [2025-02-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520489', 'tblTempUsageDetail_20' ) end [2025-02-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520489', 'tblTempVendorCDR_20' ) start [2025-02-20 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520489', 'tblTempVendorCDR_20' ) end [2025-02-20 21:29:18] Production.INFO: ProcessCDR(1,14520489,1,1,2) [2025-02-20 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520489', 'tblTempUsageDetail_20' ) start [2025-02-20 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520489', 'tblTempUsageDetail_20' ) end [2025-02-20 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:29:22] Production.INFO: ==25571== Releasing lock... [2025-02-20 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:30:06 [end_date_ymd] => 2025-02-20 21:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:30:06' and `end` < '2025-02-20 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-02-20 21:30:18] Production.INFO: count ==1862 [2025-02-20 21:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:30:06 - End Time 2025-02-20 21:30:06 [2025-02-20 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520495', 'tblTempUsageDetail_20' ) start [2025-02-20 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520495', 'tblTempUsageDetail_20' ) end [2025-02-20 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520495', 'tblTempVendorCDR_20' ) start [2025-02-20 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520495', 'tblTempVendorCDR_20' ) end [2025-02-20 21:30:18] Production.INFO: ProcessCDR(1,14520495,1,1,2) [2025-02-20 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520495', 'tblTempUsageDetail_20' ) start [2025-02-20 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520495', 'tblTempUsageDetail_20' ) end [2025-02-20 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:30:22] Production.INFO: ==25645== Releasing lock... [2025-02-20 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:30:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:31:04 [end_date_ymd] => 2025-02-20 21:31:04 [RateCDR] => 1 ) [2025-02-20 21:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:31:04' and `end` < '2025-02-20 21:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:31:16] Production.INFO: count ==1836 [2025-02-20 21:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:31:04 - End Time 2025-02-20 21:31:04 [2025-02-20 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520500', 'tblTempUsageDetail_20' ) start [2025-02-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520500', 'tblTempUsageDetail_20' ) end [2025-02-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520500', 'tblTempVendorCDR_20' ) start [2025-02-20 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520500', 'tblTempVendorCDR_20' ) end [2025-02-20 21:31:17] Production.INFO: ProcessCDR(1,14520500,1,1,2) [2025-02-20 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520500', 'tblTempUsageDetail_20' ) start [2025-02-20 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520500', 'tblTempUsageDetail_20' ) end [2025-02-20 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:31:21] Production.INFO: ==25758== Releasing lock... [2025-02-20 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:31:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:32:05 [end_date_ymd] => 2025-02-20 21:32:05 [RateCDR] => 1 ) [2025-02-20 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:32:05' and `end` < '2025-02-20 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:32:17] Production.INFO: count ==1835 [2025-02-20 21:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:32:05 - End Time 2025-02-20 21:32:05 [2025-02-20 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520505', 'tblTempUsageDetail_20' ) start [2025-02-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520505', 'tblTempUsageDetail_20' ) end [2025-02-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520505', 'tblTempVendorCDR_20' ) start [2025-02-20 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520505', 'tblTempVendorCDR_20' ) end [2025-02-20 21:32:18] Production.INFO: ProcessCDR(1,14520505,1,1,2) [2025-02-20 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520505', 'tblTempUsageDetail_20' ) start [2025-02-20 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520505', 'tblTempUsageDetail_20' ) end [2025-02-20 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:32:21] Production.INFO: ==25827== Releasing lock... [2025-02-20 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:32:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:33:06 [end_date_ymd] => 2025-02-20 21:33:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:33:06' and `end` < '2025-02-20 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-02-20 21:33:18] Production.INFO: count ==1839 [2025-02-20 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:33:06 - End Time 2025-02-20 21:33:06 [2025-02-20 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520510', 'tblTempUsageDetail_20' ) start [2025-02-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520510', 'tblTempUsageDetail_20' ) end [2025-02-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520510', 'tblTempVendorCDR_20' ) start [2025-02-20 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520510', 'tblTempVendorCDR_20' ) end [2025-02-20 21:33:18] Production.INFO: ProcessCDR(1,14520510,1,1,2) [2025-02-20 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520510', 'tblTempUsageDetail_20' ) start [2025-02-20 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520510', 'tblTempUsageDetail_20' ) end [2025-02-20 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:33:23] Production.INFO: ==25898== Releasing lock... [2025-02-20 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:33:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:34:05 [end_date_ymd] => 2025-02-20 21:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:34:05' and `end` < '2025-02-20 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-02-20 21:34:17] Production.INFO: count ==1841 [2025-02-20 21:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:34:05 - End Time 2025-02-20 21:34:05 [2025-02-20 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520515', 'tblTempUsageDetail_20' ) start [2025-02-20 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520515', 'tblTempUsageDetail_20' ) end [2025-02-20 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520515', 'tblTempVendorCDR_20' ) start [2025-02-20 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520515', 'tblTempVendorCDR_20' ) end [2025-02-20 21:34:17] Production.INFO: ProcessCDR(1,14520515,1,1,2) [2025-02-20 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520515', 'tblTempUsageDetail_20' ) start [2025-02-20 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520515', 'tblTempUsageDetail_20' ) end [2025-02-20 21:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:34:20] Production.INFO: ==25970== Releasing lock... [2025-02-20 21:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:34:20] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:35:05 [end_date_ymd] => 2025-02-20 21:35:05 [RateCDR] => 1 ) [2025-02-20 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:35:05' and `end` < '2025-02-20 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:35:17] Production.INFO: count ==1838 [2025-02-20 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:35:05 - End Time 2025-02-20 21:35:05 [2025-02-20 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520520', 'tblTempUsageDetail_20' ) start [2025-02-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520520', 'tblTempUsageDetail_20' ) end [2025-02-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520520', 'tblTempVendorCDR_20' ) start [2025-02-20 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520520', 'tblTempVendorCDR_20' ) end [2025-02-20 21:35:18] Production.INFO: ProcessCDR(1,14520520,1,1,2) [2025-02-20 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520520', 'tblTempUsageDetail_20' ) start [2025-02-20 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520520', 'tblTempUsageDetail_20' ) end [2025-02-20 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:35:21] Production.INFO: ==26041== Releasing lock... [2025-02-20 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:35:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:36:05 [end_date_ymd] => 2025-02-20 21:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:36:05' and `end` < '2025-02-20 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-02-20 21:36:17] Production.INFO: count ==1837 [2025-02-20 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:36:05 - End Time 2025-02-20 21:36:05 [2025-02-20 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520525', 'tblTempUsageDetail_20' ) start [2025-02-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520525', 'tblTempUsageDetail_20' ) end [2025-02-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520525', 'tblTempVendorCDR_20' ) start [2025-02-20 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520525', 'tblTempVendorCDR_20' ) end [2025-02-20 21:36:18] Production.INFO: ProcessCDR(1,14520525,1,1,2) [2025-02-20 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520525', 'tblTempUsageDetail_20' ) start [2025-02-20 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520525', 'tblTempUsageDetail_20' ) end [2025-02-20 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:36:21] Production.INFO: ==26113== Releasing lock... [2025-02-20 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:36:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:37:06 [end_date_ymd] => 2025-02-20 21:37:06 [RateCDR] => 1 ) [2025-02-20 21:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:37:06' and `end` < '2025-02-20 21:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:37:18] Production.INFO: count ==1836 [2025-02-20 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:37:06 - End Time 2025-02-20 21:37:06 [2025-02-20 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520530', 'tblTempUsageDetail_20' ) start [2025-02-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520530', 'tblTempUsageDetail_20' ) end [2025-02-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520530', 'tblTempVendorCDR_20' ) start [2025-02-20 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520530', 'tblTempVendorCDR_20' ) end [2025-02-20 21:37:18] Production.INFO: ProcessCDR(1,14520530,1,1,2) [2025-02-20 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520530', 'tblTempUsageDetail_20' ) start [2025-02-20 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520530', 'tblTempUsageDetail_20' ) end [2025-02-20 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:37:23] Production.INFO: ==26184== Releasing lock... [2025-02-20 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:37:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:38:04 [end_date_ymd] => 2025-02-20 21:38:04 [RateCDR] => 1 ) [2025-02-20 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:38:04' and `end` < '2025-02-20 21:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:38:16] Production.INFO: count ==1832 [2025-02-20 21:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:38:04 - End Time 2025-02-20 21:38:04 [2025-02-20 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520535', 'tblTempUsageDetail_20' ) start [2025-02-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520535', 'tblTempUsageDetail_20' ) end [2025-02-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520535', 'tblTempVendorCDR_20' ) start [2025-02-20 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520535', 'tblTempVendorCDR_20' ) end [2025-02-20 21:38:17] Production.INFO: ProcessCDR(1,14520535,1,1,2) [2025-02-20 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520535', 'tblTempUsageDetail_20' ) start [2025-02-20 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520535', 'tblTempUsageDetail_20' ) end [2025-02-20 21:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:38:20] Production.INFO: ==26254== Releasing lock... [2025-02-20 21:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:38:20] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:39:05 [end_date_ymd] => 2025-02-20 21:39:05 [RateCDR] => 1 ) [2025-02-20 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:39:05' and `end` < '2025-02-20 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:39:17] Production.INFO: count ==1825 [2025-02-20 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:39:05 - End Time 2025-02-20 21:39:05 [2025-02-20 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520540', 'tblTempUsageDetail_20' ) start [2025-02-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520540', 'tblTempUsageDetail_20' ) end [2025-02-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520540', 'tblTempVendorCDR_20' ) start [2025-02-20 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520540', 'tblTempVendorCDR_20' ) end [2025-02-20 21:39:18] Production.INFO: ProcessCDR(1,14520540,1,1,2) [2025-02-20 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520540', 'tblTempUsageDetail_20' ) start [2025-02-20 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520540', 'tblTempUsageDetail_20' ) end [2025-02-20 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:39:21] Production.INFO: ==26331== Releasing lock... [2025-02-20 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:39:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:40:06 [end_date_ymd] => 2025-02-20 21:40:06 [RateCDR] => 1 ) [2025-02-20 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:40:06' and `end` < '2025-02-20 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:40:18] Production.INFO: count ==1825 [2025-02-20 21:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:40:06 - End Time 2025-02-20 21:40:06 [2025-02-20 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520546', 'tblTempUsageDetail_20' ) start [2025-02-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520546', 'tblTempUsageDetail_20' ) end [2025-02-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520546', 'tblTempVendorCDR_20' ) start [2025-02-20 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520546', 'tblTempVendorCDR_20' ) end [2025-02-20 21:40:18] Production.INFO: ProcessCDR(1,14520546,1,1,2) [2025-02-20 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520546', 'tblTempUsageDetail_20' ) start [2025-02-20 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520546', 'tblTempUsageDetail_20' ) end [2025-02-20 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:40:22] Production.INFO: ==26410== Releasing lock... [2025-02-20 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:40:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-20 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:41:06 [end_date_ymd] => 2025-02-20 21:41:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:41:06' and `end` < '2025-02-20 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-02-20 21:41:17] Production.INFO: count ==1783 [2025-02-20 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:41:06 - End Time 2025-02-20 21:41:06 [2025-02-20 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520551', 'tblTempUsageDetail_20' ) start [2025-02-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520551', 'tblTempUsageDetail_20' ) end [2025-02-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520551', 'tblTempVendorCDR_20' ) start [2025-02-20 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520551', 'tblTempVendorCDR_20' ) end [2025-02-20 21:41:18] Production.INFO: ProcessCDR(1,14520551,1,1,2) [2025-02-20 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520551', 'tblTempUsageDetail_20' ) start [2025-02-20 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520551', 'tblTempUsageDetail_20' ) end [2025-02-20 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:41:21] Production.INFO: ==26487== Releasing lock... [2025-02-20 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:41:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-20 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:42:05 [end_date_ymd] => 2025-02-20 21:42:05 [RateCDR] => 1 ) [2025-02-20 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:42:05' and `end` < '2025-02-20 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:42:17] Production.INFO: count ==1773 [2025-02-20 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:42:05 - End Time 2025-02-20 21:42:05 [2025-02-20 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520556', 'tblTempUsageDetail_20' ) start [2025-02-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520556', 'tblTempUsageDetail_20' ) end [2025-02-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520556', 'tblTempVendorCDR_20' ) start [2025-02-20 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520556', 'tblTempVendorCDR_20' ) end [2025-02-20 21:42:18] Production.INFO: ProcessCDR(1,14520556,1,1,2) [2025-02-20 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520556', 'tblTempUsageDetail_20' ) start [2025-02-20 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520556', 'tblTempUsageDetail_20' ) end [2025-02-20 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:42:21] Production.INFO: ==26556== Releasing lock... [2025-02-20 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:42:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-20 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:43:06 [end_date_ymd] => 2025-02-20 21:43:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:43:06' and `end` < '2025-02-20 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-02-20 21:43:18] Production.INFO: count ==1757 [2025-02-20 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:43:06 - End Time 2025-02-20 21:43:06 [2025-02-20 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520561', 'tblTempUsageDetail_20' ) start [2025-02-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520561', 'tblTempUsageDetail_20' ) end [2025-02-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520561', 'tblTempVendorCDR_20' ) start [2025-02-20 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520561', 'tblTempVendorCDR_20' ) end [2025-02-20 21:43:18] Production.INFO: ProcessCDR(1,14520561,1,1,2) [2025-02-20 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520561', 'tblTempUsageDetail_20' ) start [2025-02-20 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520561', 'tblTempUsageDetail_20' ) end [2025-02-20 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:43:21] Production.INFO: ==26628== Releasing lock... [2025-02-20 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:43:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-20 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:44:05 [end_date_ymd] => 2025-02-20 21:44:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:44:05' and `end` < '2025-02-20 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-02-20 21:44:17] Production.INFO: count ==1746 [2025-02-20 21:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:44:05 - End Time 2025-02-20 21:44:05 [2025-02-20 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520566', 'tblTempUsageDetail_20' ) start [2025-02-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520566', 'tblTempUsageDetail_20' ) end [2025-02-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520566', 'tblTempVendorCDR_20' ) start [2025-02-20 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520566', 'tblTempVendorCDR_20' ) end [2025-02-20 21:44:17] Production.INFO: ProcessCDR(1,14520566,1,1,2) [2025-02-20 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520566', 'tblTempUsageDetail_20' ) start [2025-02-20 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520566', 'tblTempUsageDetail_20' ) end [2025-02-20 21:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:44:20] Production.INFO: ==26698== Releasing lock... [2025-02-20 21:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:44:20] Production.INFO: 41 MB #Memory Used# [2025-02-20 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:45:05 [end_date_ymd] => 2025-02-20 21:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:45:05' and `end` < '2025-02-20 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-02-20 21:45:17] Production.INFO: count ==1732 [2025-02-20 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:45:05 - End Time 2025-02-20 21:45:05 [2025-02-20 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520571', 'tblTempUsageDetail_20' ) start [2025-02-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520571', 'tblTempUsageDetail_20' ) end [2025-02-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520571', 'tblTempVendorCDR_20' ) start [2025-02-20 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520571', 'tblTempVendorCDR_20' ) end [2025-02-20 21:45:18] Production.INFO: ProcessCDR(1,14520571,1,1,2) [2025-02-20 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520571', 'tblTempUsageDetail_20' ) start [2025-02-20 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520571', 'tblTempUsageDetail_20' ) end [2025-02-20 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:45:21] Production.INFO: ==26769== Releasing lock... [2025-02-20 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:45:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-20 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:46:05 [end_date_ymd] => 2025-02-20 21:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:46:05' and `end` < '2025-02-20 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-02-20 21:46:17] Production.INFO: count ==1727 [2025-02-20 21:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:46:05 - End Time 2025-02-20 21:46:05 [2025-02-20 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520576', 'tblTempUsageDetail_20' ) start [2025-02-20 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520576', 'tblTempUsageDetail_20' ) end [2025-02-20 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520576', 'tblTempVendorCDR_20' ) start [2025-02-20 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520576', 'tblTempVendorCDR_20' ) end [2025-02-20 21:46:17] Production.INFO: ProcessCDR(1,14520576,1,1,2) [2025-02-20 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520576', 'tblTempUsageDetail_20' ) start [2025-02-20 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520576', 'tblTempUsageDetail_20' ) end [2025-02-20 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:46:21] Production.INFO: ==26838== Releasing lock... [2025-02-20 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:46:21] Production.INFO: 41 MB #Memory Used# [2025-02-20 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:47:05 [end_date_ymd] => 2025-02-20 21:47:05 [RateCDR] => 1 ) [2025-02-20 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:47:05' and `end` < '2025-02-20 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:47:17] Production.INFO: count ==1702 [2025-02-20 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:47:05 - End Time 2025-02-20 21:47:05 [2025-02-20 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520581', 'tblTempUsageDetail_20' ) start [2025-02-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520581', 'tblTempUsageDetail_20' ) end [2025-02-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520581', 'tblTempVendorCDR_20' ) start [2025-02-20 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520581', 'tblTempVendorCDR_20' ) end [2025-02-20 21:47:18] Production.INFO: ProcessCDR(1,14520581,1,1,2) [2025-02-20 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520581', 'tblTempUsageDetail_20' ) start [2025-02-20 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520581', 'tblTempUsageDetail_20' ) end [2025-02-20 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:47:21] Production.INFO: ==26949== Releasing lock... [2025-02-20 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:47:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-20 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:48:05 [end_date_ymd] => 2025-02-20 21:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:48:05' and `end` < '2025-02-20 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-02-20 21:48:17] Production.INFO: count ==1690 [2025-02-20 21:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:48:05 - End Time 2025-02-20 21:48:05 [2025-02-20 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520586', 'tblTempUsageDetail_20' ) start [2025-02-20 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520586', 'tblTempUsageDetail_20' ) end [2025-02-20 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520586', 'tblTempVendorCDR_20' ) start [2025-02-20 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520586', 'tblTempVendorCDR_20' ) end [2025-02-20 21:48:17] Production.INFO: ProcessCDR(1,14520586,1,1,2) [2025-02-20 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520586', 'tblTempUsageDetail_20' ) start [2025-02-20 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520586', 'tblTempUsageDetail_20' ) end [2025-02-20 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:48:22] Production.INFO: ==27025== Releasing lock... [2025-02-20 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-20 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:49:05 [end_date_ymd] => 2025-02-20 21:49:05 [RateCDR] => 1 ) [2025-02-20 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:49:05' and `end` < '2025-02-20 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:49:17] Production.INFO: count ==1682 [2025-02-20 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:49:05 - End Time 2025-02-20 21:49:05 [2025-02-20 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520591', 'tblTempUsageDetail_20' ) start [2025-02-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520591', 'tblTempUsageDetail_20' ) end [2025-02-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520591', 'tblTempVendorCDR_20' ) start [2025-02-20 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520591', 'tblTempVendorCDR_20' ) end [2025-02-20 21:49:18] Production.INFO: ProcessCDR(1,14520591,1,1,2) [2025-02-20 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520591', 'tblTempUsageDetail_20' ) start [2025-02-20 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520591', 'tblTempUsageDetail_20' ) end [2025-02-20 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:49:21] Production.INFO: ==27097== Releasing lock... [2025-02-20 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:49:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-20 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:50:06 [end_date_ymd] => 2025-02-20 21:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:50:06' and `end` < '2025-02-20 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-02-20 21:50:18] Production.INFO: count ==1673 [2025-02-20 21:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:50:06 - End Time 2025-02-20 21:50:06 [2025-02-20 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520597', 'tblTempUsageDetail_20' ) start [2025-02-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520597', 'tblTempUsageDetail_20' ) end [2025-02-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520597', 'tblTempVendorCDR_20' ) start [2025-02-20 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520597', 'tblTempVendorCDR_20' ) end [2025-02-20 21:50:18] Production.INFO: ProcessCDR(1,14520597,1,1,2) [2025-02-20 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520597', 'tblTempUsageDetail_20' ) start [2025-02-20 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520597', 'tblTempUsageDetail_20' ) end [2025-02-20 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:50:22] Production.INFO: ==27169== Releasing lock... [2025-02-20 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:50:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-20 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:51:05 [end_date_ymd] => 2025-02-20 21:51:05 [RateCDR] => 1 ) [2025-02-20 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:51:05' and `end` < '2025-02-20 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:51:17] Production.INFO: count ==1607 [2025-02-20 21:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:51:05 - End Time 2025-02-20 21:51:05 [2025-02-20 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520602', 'tblTempUsageDetail_20' ) start [2025-02-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520602', 'tblTempUsageDetail_20' ) end [2025-02-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520602', 'tblTempVendorCDR_20' ) start [2025-02-20 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520602', 'tblTempVendorCDR_20' ) end [2025-02-20 21:51:17] Production.INFO: ProcessCDR(1,14520602,1,1,2) [2025-02-20 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520602', 'tblTempUsageDetail_20' ) start [2025-02-20 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520602', 'tblTempUsageDetail_20' ) end [2025-02-20 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:51:22] Production.INFO: ==27242== Releasing lock... [2025-02-20 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:51:22] Production.INFO: 40 MB #Memory Used# [2025-02-20 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:52:05 [end_date_ymd] => 2025-02-20 21:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:52:05' and `end` < '2025-02-20 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-02-20 21:52:17] Production.INFO: count ==1598 [2025-02-20 21:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:52:05 - End Time 2025-02-20 21:52:05 [2025-02-20 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520607', 'tblTempUsageDetail_20' ) start [2025-02-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520607', 'tblTempUsageDetail_20' ) end [2025-02-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520607', 'tblTempVendorCDR_20' ) start [2025-02-20 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520607', 'tblTempVendorCDR_20' ) end [2025-02-20 21:52:17] Production.INFO: ProcessCDR(1,14520607,1,1,2) [2025-02-20 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520607', 'tblTempUsageDetail_20' ) start [2025-02-20 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520607', 'tblTempUsageDetail_20' ) end [2025-02-20 21:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:52:20] Production.INFO: ==27316== Releasing lock... [2025-02-20 21:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:52:20] Production.INFO: 39.75 MB #Memory Used# [2025-02-20 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:53:05 [end_date_ymd] => 2025-02-20 21:53:05 [RateCDR] => 1 ) [2025-02-20 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:53:05' and `end` < '2025-02-20 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:53:17] Production.INFO: count ==1592 [2025-02-20 21:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:53:05 - End Time 2025-02-20 21:53:05 [2025-02-20 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520612', 'tblTempUsageDetail_20' ) start [2025-02-20 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520612', 'tblTempUsageDetail_20' ) end [2025-02-20 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520612', 'tblTempVendorCDR_20' ) start [2025-02-20 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520612', 'tblTempVendorCDR_20' ) end [2025-02-20 21:53:17] Production.INFO: ProcessCDR(1,14520612,1,1,2) [2025-02-20 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520612', 'tblTempUsageDetail_20' ) start [2025-02-20 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520612', 'tblTempUsageDetail_20' ) end [2025-02-20 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:53:21] Production.INFO: ==27391== Releasing lock... [2025-02-20 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:53:21] Production.INFO: 40 MB #Memory Used# [2025-02-20 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:54:05 [end_date_ymd] => 2025-02-20 21:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:54:05' and `end` < '2025-02-20 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-02-20 21:54:17] Production.INFO: count ==1589 [2025-02-20 21:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:54:05 - End Time 2025-02-20 21:54:05 [2025-02-20 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520617', 'tblTempUsageDetail_20' ) start [2025-02-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520617', 'tblTempUsageDetail_20' ) end [2025-02-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520617', 'tblTempVendorCDR_20' ) start [2025-02-20 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520617', 'tblTempVendorCDR_20' ) end [2025-02-20 21:54:17] Production.INFO: ProcessCDR(1,14520617,1,1,2) [2025-02-20 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520617', 'tblTempUsageDetail_20' ) start [2025-02-20 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520617', 'tblTempUsageDetail_20' ) end [2025-02-20 21:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:54:20] Production.INFO: ==27461== Releasing lock... [2025-02-20 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:54:20] Production.INFO: 40 MB #Memory Used# [2025-02-20 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:55:06 [end_date_ymd] => 2025-02-20 21:55:06 [RateCDR] => 1 ) [2025-02-20 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:55:06' and `end` < '2025-02-20 21:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:55:18] Production.INFO: count ==1583 [2025-02-20 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:55:06 - End Time 2025-02-20 21:55:06 [2025-02-20 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520622', 'tblTempUsageDetail_20' ) start [2025-02-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520622', 'tblTempUsageDetail_20' ) end [2025-02-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520622', 'tblTempVendorCDR_20' ) start [2025-02-20 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520622', 'tblTempVendorCDR_20' ) end [2025-02-20 21:55:18] Production.INFO: ProcessCDR(1,14520622,1,1,2) [2025-02-20 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520622', 'tblTempUsageDetail_20' ) start [2025-02-20 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520622', 'tblTempUsageDetail_20' ) end [2025-02-20 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:55:21] Production.INFO: ==27533== Releasing lock... [2025-02-20 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:55:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-20 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:56:05 [end_date_ymd] => 2025-02-20 21:56:05 [RateCDR] => 1 ) [2025-02-20 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:56:05' and `end` < '2025-02-20 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:56:17] Production.INFO: count ==1578 [2025-02-20 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:56:05 - End Time 2025-02-20 21:56:05 [2025-02-20 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520627', 'tblTempUsageDetail_20' ) start [2025-02-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520627', 'tblTempUsageDetail_20' ) end [2025-02-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520627', 'tblTempVendorCDR_20' ) start [2025-02-20 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520627', 'tblTempVendorCDR_20' ) end [2025-02-20 21:56:18] Production.INFO: ProcessCDR(1,14520627,1,1,2) [2025-02-20 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520627', 'tblTempUsageDetail_20' ) start [2025-02-20 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520627', 'tblTempUsageDetail_20' ) end [2025-02-20 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:56:21] Production.INFO: ==27603== Releasing lock... [2025-02-20 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:56:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-20 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:57:05 [end_date_ymd] => 2025-02-20 21:57:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:57:05' and `end` < '2025-02-20 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-02-20 21:57:17] Production.INFO: count ==1575 [2025-02-20 21:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:57:05 - End Time 2025-02-20 21:57:05 [2025-02-20 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520632', 'tblTempUsageDetail_20' ) start [2025-02-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520632', 'tblTempUsageDetail_20' ) end [2025-02-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520632', 'tblTempVendorCDR_20' ) start [2025-02-20 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520632', 'tblTempVendorCDR_20' ) end [2025-02-20 21:57:17] Production.INFO: ProcessCDR(1,14520632,1,1,2) [2025-02-20 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520632', 'tblTempUsageDetail_20' ) start [2025-02-20 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520632', 'tblTempUsageDetail_20' ) end [2025-02-20 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:57:21] Production.INFO: ==27672== Releasing lock... [2025-02-20 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:57:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-20 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:58:05 [end_date_ymd] => 2025-02-20 21:58:05 [RateCDR] => 1 ) [2025-02-20 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 18:58:05' and `end` < '2025-02-20 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 21:58:17] Production.INFO: count ==1558 [2025-02-20 21:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 18:58:05 - End Time 2025-02-20 21:58:05 [2025-02-20 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520637', 'tblTempUsageDetail_20' ) start [2025-02-20 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520637', 'tblTempUsageDetail_20' ) end [2025-02-20 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520637', 'tblTempVendorCDR_20' ) start [2025-02-20 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520637', 'tblTempVendorCDR_20' ) end [2025-02-20 21:58:17] Production.INFO: ProcessCDR(1,14520637,1,1,2) [2025-02-20 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520637', 'tblTempUsageDetail_20' ) start [2025-02-20 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520637', 'tblTempUsageDetail_20' ) end [2025-02-20 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:58:22] Production.INFO: ==27743== Releasing lock... [2025-02-20 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:58:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-20 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 18:59:05 [end_date_ymd] => 2025-02-20 21:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 18:59:05' and `end` < '2025-02-20 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-02-20 21:59:17] Production.INFO: count ==1552 [2025-02-20 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 18:59:05 - End Time 2025-02-20 21:59:05 [2025-02-20 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520642', 'tblTempUsageDetail_20' ) start [2025-02-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520642', 'tblTempUsageDetail_20' ) end [2025-02-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520642', 'tblTempVendorCDR_20' ) start [2025-02-20 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520642', 'tblTempVendorCDR_20' ) end [2025-02-20 21:59:18] Production.INFO: ProcessCDR(1,14520642,1,1,2) [2025-02-20 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520642', 'tblTempUsageDetail_20' ) start [2025-02-20 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520642', 'tblTempUsageDetail_20' ) end [2025-02-20 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 21:59:22] Production.INFO: ==27813== Releasing lock... [2025-02-20 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 21:59:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-20 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:00:06 [end_date_ymd] => 2025-02-20 22:00:06 [RateCDR] => 1 ) [2025-02-20 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:00:06' and `end` < '2025-02-20 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:00:18] Production.INFO: count ==1546 [2025-02-20 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-20 19:00:06 - End Time 2025-02-20 22:00:06 [2025-02-20 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520648', 'tblTempUsageDetail_20' ) start [2025-02-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520648', 'tblTempUsageDetail_20' ) end [2025-02-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520648', 'tblTempVendorCDR_20' ) start [2025-02-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520648', 'tblTempVendorCDR_20' ) end [2025-02-20 22:00:19] Production.INFO: ProcessCDR(1,14520648,1,1,2) [2025-02-20 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520648', 'tblTempUsageDetail_20' ) start [2025-02-20 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520648', 'tblTempUsageDetail_20' ) end [2025-02-20 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:00:22] Production.INFO: ==27895== Releasing lock... [2025-02-20 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:00:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-20 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:01:05 [end_date_ymd] => 2025-02-20 22:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:01:05' and `end` < '2025-02-20 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-02-20 22:01:17] Production.INFO: count ==1501 [2025-02-20 22:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:01:05 - End Time 2025-02-20 22:01:05 [2025-02-20 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520653', 'tblTempUsageDetail_20' ) start [2025-02-20 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520653', 'tblTempUsageDetail_20' ) end [2025-02-20 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520653', 'tblTempVendorCDR_20' ) start [2025-02-20 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520653', 'tblTempVendorCDR_20' ) end [2025-02-20 22:01:17] Production.INFO: ProcessCDR(1,14520653,1,1,2) [2025-02-20 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520653', 'tblTempUsageDetail_20' ) start [2025-02-20 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520653', 'tblTempUsageDetail_20' ) end [2025-02-20 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:01:22] Production.INFO: ==27982== Releasing lock... [2025-02-20 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-20 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:02:06 [end_date_ymd] => 2025-02-20 22:02:06 [RateCDR] => 1 ) [2025-02-20 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:02:06' and `end` < '2025-02-20 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:02:18] Production.INFO: count ==1507 [2025-02-20 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:02:06 - End Time 2025-02-20 22:02:06 [2025-02-20 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520658', 'tblTempUsageDetail_20' ) start [2025-02-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520658', 'tblTempUsageDetail_20' ) end [2025-02-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520658', 'tblTempVendorCDR_20' ) start [2025-02-20 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520658', 'tblTempVendorCDR_20' ) end [2025-02-20 22:02:18] Production.INFO: ProcessCDR(1,14520658,1,1,2) [2025-02-20 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520658', 'tblTempUsageDetail_20' ) start [2025-02-20 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520658', 'tblTempUsageDetail_20' ) end [2025-02-20 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:02:23] Production.INFO: ==28098== Releasing lock... [2025-02-20 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:02:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-20 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:03:05 [end_date_ymd] => 2025-02-20 22:03:05 [RateCDR] => 1 ) [2025-02-20 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:03:05' and `end` < '2025-02-20 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:03:17] Production.INFO: count ==1486 [2025-02-20 22:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:03:05 - End Time 2025-02-20 22:03:05 [2025-02-20 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520663', 'tblTempUsageDetail_20' ) start [2025-02-20 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520663', 'tblTempUsageDetail_20' ) end [2025-02-20 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520663', 'tblTempVendorCDR_20' ) start [2025-02-20 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520663', 'tblTempVendorCDR_20' ) end [2025-02-20 22:03:17] Production.INFO: ProcessCDR(1,14520663,1,1,2) [2025-02-20 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520663', 'tblTempUsageDetail_20' ) start [2025-02-20 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520663', 'tblTempUsageDetail_20' ) end [2025-02-20 22:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:03:21] Production.INFO: ==28168== Releasing lock... [2025-02-20 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:03:21] Production.INFO: 39 MB #Memory Used# [2025-02-20 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:04:06 [end_date_ymd] => 2025-02-20 22:04:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:04:06' and `end` < '2025-02-20 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-02-20 22:04:18] Production.INFO: count ==1479 [2025-02-20 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:04:06 - End Time 2025-02-20 22:04:06 [2025-02-20 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520668', 'tblTempUsageDetail_20' ) start [2025-02-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520668', 'tblTempUsageDetail_20' ) end [2025-02-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520668', 'tblTempVendorCDR_20' ) start [2025-02-20 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520668', 'tblTempVendorCDR_20' ) end [2025-02-20 22:04:18] Production.INFO: ProcessCDR(1,14520668,1,1,2) [2025-02-20 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520668', 'tblTempUsageDetail_20' ) start [2025-02-20 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520668', 'tblTempUsageDetail_20' ) end [2025-02-20 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:04:23] Production.INFO: ==28242== Releasing lock... [2025-02-20 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:04:23] Production.INFO: 39 MB #Memory Used# [2025-02-20 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:05:05 [end_date_ymd] => 2025-02-20 22:05:05 [RateCDR] => 1 ) [2025-02-20 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:05:05' and `end` < '2025-02-20 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:05:17] Production.INFO: count ==1473 [2025-02-20 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:05:05 - End Time 2025-02-20 22:05:05 [2025-02-20 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520673', 'tblTempUsageDetail_20' ) start [2025-02-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520673', 'tblTempUsageDetail_20' ) end [2025-02-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520673', 'tblTempVendorCDR_20' ) start [2025-02-20 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520673', 'tblTempVendorCDR_20' ) end [2025-02-20 22:05:18] Production.INFO: ProcessCDR(1,14520673,1,1,2) [2025-02-20 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520673', 'tblTempUsageDetail_20' ) start [2025-02-20 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520673', 'tblTempUsageDetail_20' ) end [2025-02-20 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:05:22] Production.INFO: ==28318== Releasing lock... [2025-02-20 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:05:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-20 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:06:06 [end_date_ymd] => 2025-02-20 22:06:06 [RateCDR] => 1 ) [2025-02-20 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:06:06' and `end` < '2025-02-20 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:06:18] Production.INFO: count ==1463 [2025-02-20 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:06:06 - End Time 2025-02-20 22:06:06 [2025-02-20 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520678', 'tblTempUsageDetail_20' ) start [2025-02-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520678', 'tblTempUsageDetail_20' ) end [2025-02-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520678', 'tblTempVendorCDR_20' ) start [2025-02-20 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520678', 'tblTempVendorCDR_20' ) end [2025-02-20 22:06:18] Production.INFO: ProcessCDR(1,14520678,1,1,2) [2025-02-20 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520678', 'tblTempUsageDetail_20' ) start [2025-02-20 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520678', 'tblTempUsageDetail_20' ) end [2025-02-20 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:06:21] Production.INFO: ==28395== Releasing lock... [2025-02-20 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:06:21] Production.INFO: 39 MB #Memory Used# [2025-02-20 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:07:05 [end_date_ymd] => 2025-02-20 22:07:05 [RateCDR] => 1 ) [2025-02-20 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:07:05' and `end` < '2025-02-20 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:07:17] Production.INFO: count ==1460 [2025-02-20 22:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:07:05 - End Time 2025-02-20 22:07:05 [2025-02-20 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520683', 'tblTempUsageDetail_20' ) start [2025-02-20 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520683', 'tblTempUsageDetail_20' ) end [2025-02-20 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520683', 'tblTempVendorCDR_20' ) start [2025-02-20 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520683', 'tblTempVendorCDR_20' ) end [2025-02-20 22:07:17] Production.INFO: ProcessCDR(1,14520683,1,1,2) [2025-02-20 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520683', 'tblTempUsageDetail_20' ) start [2025-02-20 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520683', 'tblTempUsageDetail_20' ) end [2025-02-20 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:07:22] Production.INFO: ==28468== Releasing lock... [2025-02-20 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:07:22] Production.INFO: 39 MB #Memory Used# [2025-02-20 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:08:05 [end_date_ymd] => 2025-02-20 22:08:05 [RateCDR] => 1 ) [2025-02-20 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:08:05' and `end` < '2025-02-20 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:08:17] Production.INFO: count ==1454 [2025-02-20 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:08:05 - End Time 2025-02-20 22:08:05 [2025-02-20 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520688', 'tblTempUsageDetail_20' ) start [2025-02-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520688', 'tblTempUsageDetail_20' ) end [2025-02-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520688', 'tblTempVendorCDR_20' ) start [2025-02-20 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520688', 'tblTempVendorCDR_20' ) end [2025-02-20 22:08:18] Production.INFO: ProcessCDR(1,14520688,1,1,2) [2025-02-20 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520688', 'tblTempUsageDetail_20' ) start [2025-02-20 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520688', 'tblTempUsageDetail_20' ) end [2025-02-20 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:08:21] Production.INFO: ==28544== Releasing lock... [2025-02-20 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:08:21] Production.INFO: 39 MB #Memory Used# [2025-02-20 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:09:05 [end_date_ymd] => 2025-02-20 22:09:05 [RateCDR] => 1 ) [2025-02-20 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:09:05' and `end` < '2025-02-20 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-02-20 22:09:17] Production.INFO: count ==1444 [2025-02-20 22:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:09:05 - End Time 2025-02-20 22:09:05 [2025-02-20 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520693', 'tblTempUsageDetail_20' ) start [2025-02-20 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520693', 'tblTempUsageDetail_20' ) end [2025-02-20 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520693', 'tblTempVendorCDR_20' ) start [2025-02-20 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520693', 'tblTempVendorCDR_20' ) end [2025-02-20 22:09:17] Production.INFO: ProcessCDR(1,14520693,1,1,2) [2025-02-20 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520693', 'tblTempUsageDetail_20' ) start [2025-02-20 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520693', 'tblTempUsageDetail_20' ) end [2025-02-20 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:09:20] Production.INFO: ==28616== Releasing lock... [2025-02-20 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:09:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-20 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:10:05 [end_date_ymd] => 2025-02-20 22:10:05 [RateCDR] => 1 ) [2025-02-20 22: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-02-20 19:10:05' and `end` < '2025-02-20 22: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-02-20 22:10:17] Production.INFO: count ==1421 [2025-02-20 22:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:10:05 - End Time 2025-02-20 22:10:05 [2025-02-20 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520698', 'tblTempUsageDetail_20' ) start [2025-02-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520698', 'tblTempUsageDetail_20' ) end [2025-02-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520698', 'tblTempVendorCDR_20' ) start [2025-02-20 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520698', 'tblTempVendorCDR_20' ) end [2025-02-20 22:10:18] Production.INFO: ProcessCDR(1,14520698,1,1,2) [2025-02-20 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520698', 'tblTempUsageDetail_20' ) start [2025-02-20 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520698', 'tblTempUsageDetail_20' ) end [2025-02-20 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:10:21] Production.INFO: ==28694== Releasing lock... [2025-02-20 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:10:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-20 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:11:05 [end_date_ymd] => 2025-02-20 22:11:05 [RateCDR] => 1 ) [2025-02-20 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:11:05' and `end` < '2025-02-20 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:11:17] Production.INFO: count ==1326 [2025-02-20 22:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:11:05 - End Time 2025-02-20 22:11:05 [2025-02-20 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520704', 'tblTempUsageDetail_20' ) start [2025-02-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520704', 'tblTempUsageDetail_20' ) end [2025-02-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520704', 'tblTempVendorCDR_20' ) start [2025-02-20 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520704', 'tblTempVendorCDR_20' ) end [2025-02-20 22:11:17] Production.INFO: ProcessCDR(1,14520704,1,1,2) [2025-02-20 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520704', 'tblTempUsageDetail_20' ) start [2025-02-20 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520704', 'tblTempUsageDetail_20' ) end [2025-02-20 22:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:11:20] Production.INFO: ==28769== Releasing lock... [2025-02-20 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:11:20] Production.INFO: 38 MB #Memory Used# [2025-02-20 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:12:05 [end_date_ymd] => 2025-02-20 22:12:05 [RateCDR] => 1 ) [2025-02-20 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:12:05' and `end` < '2025-02-20 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:12:17] Production.INFO: count ==1324 [2025-02-20 22:12:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:12:05 - End Time 2025-02-20 22:12:05 [2025-02-20 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520709', 'tblTempUsageDetail_20' ) start [2025-02-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520709', 'tblTempUsageDetail_20' ) end [2025-02-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520709', 'tblTempVendorCDR_20' ) start [2025-02-20 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520709', 'tblTempVendorCDR_20' ) end [2025-02-20 22:12:17] Production.INFO: ProcessCDR(1,14520709,1,1,2) [2025-02-20 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520709', 'tblTempUsageDetail_20' ) start [2025-02-20 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520709', 'tblTempUsageDetail_20' ) end [2025-02-20 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:12:21] Production.INFO: ==28847== Releasing lock... [2025-02-20 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:12:21] Production.INFO: 38 MB #Memory Used# [2025-02-20 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:13:05 [end_date_ymd] => 2025-02-20 22:13:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:13:05' and `end` < '2025-02-20 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-02-20 22:13:17] Production.INFO: count ==1323 [2025-02-20 22:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:13:05 - End Time 2025-02-20 22:13:05 [2025-02-20 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520714', 'tblTempUsageDetail_20' ) start [2025-02-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520714', 'tblTempUsageDetail_20' ) end [2025-02-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520714', 'tblTempVendorCDR_20' ) start [2025-02-20 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520714', 'tblTempVendorCDR_20' ) end [2025-02-20 22:13:17] Production.INFO: ProcessCDR(1,14520714,1,1,2) [2025-02-20 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520714', 'tblTempUsageDetail_20' ) start [2025-02-20 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520714', 'tblTempUsageDetail_20' ) end [2025-02-20 22:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:13:20] Production.INFO: ==28920== Releasing lock... [2025-02-20 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:13:20] Production.INFO: 38.25 MB #Memory Used# [2025-02-20 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:14:05 [end_date_ymd] => 2025-02-20 22:14:05 [RateCDR] => 1 ) [2025-02-20 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:14:05' and `end` < '2025-02-20 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:14:17] Production.INFO: count ==1307 [2025-02-20 22:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:14:05 - End Time 2025-02-20 22:14:05 [2025-02-20 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520719', 'tblTempUsageDetail_20' ) start [2025-02-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520719', 'tblTempUsageDetail_20' ) end [2025-02-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520719', 'tblTempVendorCDR_20' ) start [2025-02-20 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520719', 'tblTempVendorCDR_20' ) end [2025-02-20 22:14:17] Production.INFO: ProcessCDR(1,14520719,1,1,2) [2025-02-20 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520719', 'tblTempUsageDetail_20' ) start [2025-02-20 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520719', 'tblTempUsageDetail_20' ) end [2025-02-20 22:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:14:20] Production.INFO: ==28994== Releasing lock... [2025-02-20 22:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:14:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:15:05 [end_date_ymd] => 2025-02-20 22:15:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:15:05' and `end` < '2025-02-20 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-02-20 22:15:17] Production.INFO: count ==1305 [2025-02-20 22:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:15:05 - End Time 2025-02-20 22:15:05 [2025-02-20 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520724', 'tblTempUsageDetail_20' ) start [2025-02-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520724', 'tblTempUsageDetail_20' ) end [2025-02-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520724', 'tblTempVendorCDR_20' ) start [2025-02-20 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520724', 'tblTempVendorCDR_20' ) end [2025-02-20 22:15:17] Production.INFO: ProcessCDR(1,14520724,1,1,2) [2025-02-20 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520724', 'tblTempUsageDetail_20' ) start [2025-02-20 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520724', 'tblTempUsageDetail_20' ) end [2025-02-20 22:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:15:20] Production.INFO: ==29074== Releasing lock... [2025-02-20 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:15:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:16:05 [end_date_ymd] => 2025-02-20 22:16:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:16:05' and `end` < '2025-02-20 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-02-20 22:16:17] Production.INFO: count ==1302 [2025-02-20 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:16:05 - End Time 2025-02-20 22:16:05 [2025-02-20 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520729', 'tblTempUsageDetail_20' ) start [2025-02-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520729', 'tblTempUsageDetail_20' ) end [2025-02-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520729', 'tblTempVendorCDR_20' ) start [2025-02-20 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520729', 'tblTempVendorCDR_20' ) end [2025-02-20 22:16:18] Production.INFO: ProcessCDR(1,14520729,1,1,2) [2025-02-20 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520729', 'tblTempUsageDetail_20' ) start [2025-02-20 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520729', 'tblTempUsageDetail_20' ) end [2025-02-20 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:16:21] Production.INFO: ==29147== Releasing lock... [2025-02-20 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:16:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:17:05 [end_date_ymd] => 2025-02-20 22:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:17:05' and `end` < '2025-02-20 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-02-20 22:17:16] Production.INFO: count ==1300 [2025-02-20 22:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:17:05 - End Time 2025-02-20 22:17:05 [2025-02-20 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520734', 'tblTempUsageDetail_20' ) start [2025-02-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520734', 'tblTempUsageDetail_20' ) end [2025-02-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520734', 'tblTempVendorCDR_20' ) start [2025-02-20 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520734', 'tblTempVendorCDR_20' ) end [2025-02-20 22:17:17] Production.INFO: ProcessCDR(1,14520734,1,1,2) [2025-02-20 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520734', 'tblTempUsageDetail_20' ) start [2025-02-20 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520734', 'tblTempUsageDetail_20' ) end [2025-02-20 22:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:17:20] Production.INFO: ==29244== Releasing lock... [2025-02-20 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:17:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:18:05 [end_date_ymd] => 2025-02-20 22:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:18:05' and `end` < '2025-02-20 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-02-20 22:18:17] Production.INFO: count ==1301 [2025-02-20 22:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:18:05 - End Time 2025-02-20 22:18:05 [2025-02-20 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520739', 'tblTempUsageDetail_20' ) start [2025-02-20 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520739', 'tblTempUsageDetail_20' ) end [2025-02-20 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520739', 'tblTempVendorCDR_20' ) start [2025-02-20 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520739', 'tblTempVendorCDR_20' ) end [2025-02-20 22:18:17] Production.INFO: ProcessCDR(1,14520739,1,1,2) [2025-02-20 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520739', 'tblTempUsageDetail_20' ) start [2025-02-20 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520739', 'tblTempUsageDetail_20' ) end [2025-02-20 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:18:22] Production.INFO: ==29361== Releasing lock... [2025-02-20 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:19:05 [end_date_ymd] => 2025-02-20 22:19:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:19:05' and `end` < '2025-02-20 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-02-20 22:19:17] Production.INFO: count ==1301 [2025-02-20 22:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:19:05 - End Time 2025-02-20 22:19:05 [2025-02-20 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520744', 'tblTempUsageDetail_20' ) start [2025-02-20 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520744', 'tblTempUsageDetail_20' ) end [2025-02-20 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520744', 'tblTempVendorCDR_20' ) start [2025-02-20 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520744', 'tblTempVendorCDR_20' ) end [2025-02-20 22:19:17] Production.INFO: ProcessCDR(1,14520744,1,1,2) [2025-02-20 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520744', 'tblTempUsageDetail_20' ) start [2025-02-20 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520744', 'tblTempUsageDetail_20' ) end [2025-02-20 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:19:20] Production.INFO: ==29441== Releasing lock... [2025-02-20 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:19:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:20:06 [end_date_ymd] => 2025-02-20 22:20:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:20:06' and `end` < '2025-02-20 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-02-20 22:20:18] Production.INFO: count ==1299 [2025-02-20 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:20:06 - End Time 2025-02-20 22:20:06 [2025-02-20 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520750', 'tblTempUsageDetail_20' ) start [2025-02-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520750', 'tblTempUsageDetail_20' ) end [2025-02-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520750', 'tblTempVendorCDR_20' ) start [2025-02-20 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520750', 'tblTempVendorCDR_20' ) end [2025-02-20 22:20:18] Production.INFO: ProcessCDR(1,14520750,1,1,2) [2025-02-20 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520750', 'tblTempUsageDetail_20' ) start [2025-02-20 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520750', 'tblTempUsageDetail_20' ) end [2025-02-20 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:20:23] Production.INFO: ==29521== Releasing lock... [2025-02-20 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:21:05 [end_date_ymd] => 2025-02-20 22:21:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:21:05' and `end` < '2025-02-20 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-02-20 22:21:17] Production.INFO: count ==1259 [2025-02-20 22:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:21:05 - End Time 2025-02-20 22:21:05 [2025-02-20 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520755', 'tblTempUsageDetail_20' ) start [2025-02-20 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520755', 'tblTempUsageDetail_20' ) end [2025-02-20 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520755', 'tblTempVendorCDR_20' ) start [2025-02-20 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520755', 'tblTempVendorCDR_20' ) end [2025-02-20 22:21:17] Production.INFO: ProcessCDR(1,14520755,1,1,2) [2025-02-20 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520755', 'tblTempUsageDetail_20' ) start [2025-02-20 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520755', 'tblTempUsageDetail_20' ) end [2025-02-20 22:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:21:20] Production.INFO: ==29597== Releasing lock... [2025-02-20 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:21:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-20 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:22:05 [end_date_ymd] => 2025-02-20 22:22:05 [RateCDR] => 1 ) [2025-02-20 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:22:05' and `end` < '2025-02-20 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:22:17] Production.INFO: count ==1261 [2025-02-20 22:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:22:05 - End Time 2025-02-20 22:22:05 [2025-02-20 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520760', 'tblTempUsageDetail_20' ) start [2025-02-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520760', 'tblTempUsageDetail_20' ) end [2025-02-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520760', 'tblTempVendorCDR_20' ) start [2025-02-20 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520760', 'tblTempVendorCDR_20' ) end [2025-02-20 22:22:18] Production.INFO: ProcessCDR(1,14520760,1,1,2) [2025-02-20 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520760', 'tblTempUsageDetail_20' ) start [2025-02-20 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520760', 'tblTempUsageDetail_20' ) end [2025-02-20 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:22:21] Production.INFO: ==29672== Releasing lock... [2025-02-20 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:22:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-20 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:23:04 [end_date_ymd] => 2025-02-20 22:23:04 [RateCDR] => 1 ) [2025-02-20 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:23:04' and `end` < '2025-02-20 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:23:16] Production.INFO: count ==1253 [2025-02-20 22:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:23:04 - End Time 2025-02-20 22:23:04 [2025-02-20 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520765', 'tblTempUsageDetail_20' ) start [2025-02-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520765', 'tblTempUsageDetail_20' ) end [2025-02-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520765', 'tblTempVendorCDR_20' ) start [2025-02-20 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520765', 'tblTempVendorCDR_20' ) end [2025-02-20 22:23:17] Production.INFO: ProcessCDR(1,14520765,1,1,2) [2025-02-20 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520765', 'tblTempUsageDetail_20' ) start [2025-02-20 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520765', 'tblTempUsageDetail_20' ) end [2025-02-20 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:23:20] Production.INFO: ==29745== Releasing lock... [2025-02-20 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:23:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-20 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:24:05 [end_date_ymd] => 2025-02-20 22:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:24:05' and `end` < '2025-02-20 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-02-20 22:24:17] Production.INFO: count ==1253 [2025-02-20 22:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:24:05 - End Time 2025-02-20 22:24:05 [2025-02-20 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520770', 'tblTempUsageDetail_20' ) start [2025-02-20 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520770', 'tblTempUsageDetail_20' ) end [2025-02-20 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520770', 'tblTempVendorCDR_20' ) start [2025-02-20 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520770', 'tblTempVendorCDR_20' ) end [2025-02-20 22:24:17] Production.INFO: ProcessCDR(1,14520770,1,1,2) [2025-02-20 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520770', 'tblTempUsageDetail_20' ) start [2025-02-20 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520770', 'tblTempUsageDetail_20' ) end [2025-02-20 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:24:21] Production.INFO: ==29825== Releasing lock... [2025-02-20 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:24:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-20 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:25:05 [end_date_ymd] => 2025-02-20 22:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:25:05' and `end` < '2025-02-20 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-02-20 22:25:17] Production.INFO: count ==1235 [2025-02-20 22:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:25:05 - End Time 2025-02-20 22:25:05 [2025-02-20 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520775', 'tblTempUsageDetail_20' ) start [2025-02-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520775', 'tblTempUsageDetail_20' ) end [2025-02-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520775', 'tblTempVendorCDR_20' ) start [2025-02-20 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520775', 'tblTempVendorCDR_20' ) end [2025-02-20 22:25:17] Production.INFO: ProcessCDR(1,14520775,1,1,2) [2025-02-20 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520775', 'tblTempUsageDetail_20' ) start [2025-02-20 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520775', 'tblTempUsageDetail_20' ) end [2025-02-20 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:25:21] Production.INFO: ==29903== Releasing lock... [2025-02-20 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:25:21] Production.INFO: 37 MB #Memory Used# [2025-02-20 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:26:05 [end_date_ymd] => 2025-02-20 22:26:05 [RateCDR] => 1 ) [2025-02-20 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:26:05' and `end` < '2025-02-20 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:26:17] Production.INFO: count ==1218 [2025-02-20 22:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:26:05 - End Time 2025-02-20 22:26:05 [2025-02-20 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520780', 'tblTempUsageDetail_20' ) start [2025-02-20 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520780', 'tblTempUsageDetail_20' ) end [2025-02-20 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520780', 'tblTempVendorCDR_20' ) start [2025-02-20 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520780', 'tblTempVendorCDR_20' ) end [2025-02-20 22:26:17] Production.INFO: ProcessCDR(1,14520780,1,1,2) [2025-02-20 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520780', 'tblTempUsageDetail_20' ) start [2025-02-20 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520780', 'tblTempUsageDetail_20' ) end [2025-02-20 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:26:22] Production.INFO: ==29977== Releasing lock... [2025-02-20 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-20 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:27:06 [end_date_ymd] => 2025-02-20 22:27:06 [RateCDR] => 1 ) [2025-02-20 22: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-02-20 19:27:06' and `end` < '2025-02-20 22: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-02-20 22:27:18] Production.INFO: count ==1212 [2025-02-20 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:27:06 - End Time 2025-02-20 22:27:06 [2025-02-20 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520785', 'tblTempUsageDetail_20' ) start [2025-02-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520785', 'tblTempUsageDetail_20' ) end [2025-02-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520785', 'tblTempVendorCDR_20' ) start [2025-02-20 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520785', 'tblTempVendorCDR_20' ) end [2025-02-20 22:27:18] Production.INFO: ProcessCDR(1,14520785,1,1,2) [2025-02-20 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520785', 'tblTempUsageDetail_20' ) start [2025-02-20 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520785', 'tblTempUsageDetail_20' ) end [2025-02-20 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:27:21] Production.INFO: ==30055== Releasing lock... [2025-02-20 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:27:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-20 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:28:05 [end_date_ymd] => 2025-02-20 22:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:28:05' and `end` < '2025-02-20 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-02-20 22:28:17] Production.INFO: count ==1211 [2025-02-20 22:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:28:05 - End Time 2025-02-20 22:28:05 [2025-02-20 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520790', 'tblTempUsageDetail_20' ) start [2025-02-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520790', 'tblTempUsageDetail_20' ) end [2025-02-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520790', 'tblTempVendorCDR_20' ) start [2025-02-20 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520790', 'tblTempVendorCDR_20' ) end [2025-02-20 22:28:17] Production.INFO: ProcessCDR(1,14520790,1,1,2) [2025-02-20 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520790', 'tblTempUsageDetail_20' ) start [2025-02-20 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520790', 'tblTempUsageDetail_20' ) end [2025-02-20 22:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:28:20] Production.INFO: ==30129== Releasing lock... [2025-02-20 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:28:20] Production.INFO: 36.75 MB #Memory Used# [2025-02-20 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:29:05 [end_date_ymd] => 2025-02-20 22:29:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:29:05' and `end` < '2025-02-20 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-02-20 22:29:18] Production.INFO: count ==1210 [2025-02-20 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:29:05 - End Time 2025-02-20 22:29:05 [2025-02-20 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520795', 'tblTempUsageDetail_20' ) start [2025-02-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520795', 'tblTempUsageDetail_20' ) end [2025-02-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520795', 'tblTempVendorCDR_20' ) start [2025-02-20 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520795', 'tblTempVendorCDR_20' ) end [2025-02-20 22:29:18] Production.INFO: ProcessCDR(1,14520795,1,1,2) [2025-02-20 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520795', 'tblTempUsageDetail_20' ) start [2025-02-20 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520795', 'tblTempUsageDetail_20' ) end [2025-02-20 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:29:21] Production.INFO: ==30207== Releasing lock... [2025-02-20 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-20 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:30:06 [end_date_ymd] => 2025-02-20 22:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:30:06' and `end` < '2025-02-20 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-02-20 22:30:18] Production.INFO: count ==1198 [2025-02-20 22:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:30:06 - End Time 2025-02-20 22:30:06 [2025-02-20 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520801', 'tblTempUsageDetail_20' ) start [2025-02-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520801', 'tblTempUsageDetail_20' ) end [2025-02-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520801', 'tblTempVendorCDR_20' ) start [2025-02-20 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520801', 'tblTempVendorCDR_20' ) end [2025-02-20 22:30:18] Production.INFO: ProcessCDR(1,14520801,1,1,2) [2025-02-20 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520801', 'tblTempUsageDetail_20' ) start [2025-02-20 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520801', 'tblTempUsageDetail_20' ) end [2025-02-20 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:30:21] Production.INFO: ==30284== Releasing lock... [2025-02-20 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:30:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-20 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:31:05 [end_date_ymd] => 2025-02-20 22:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:31:05' and `end` < '2025-02-20 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-02-20 22:31:17] Production.INFO: count ==1128 [2025-02-20 22:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:31:05 - End Time 2025-02-20 22:31:05 [2025-02-20 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520806', 'tblTempUsageDetail_20' ) start [2025-02-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520806', 'tblTempUsageDetail_20' ) end [2025-02-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520806', 'tblTempVendorCDR_20' ) start [2025-02-20 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520806', 'tblTempVendorCDR_20' ) end [2025-02-20 22:31:17] Production.INFO: ProcessCDR(1,14520806,1,1,2) [2025-02-20 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520806', 'tblTempUsageDetail_20' ) start [2025-02-20 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520806', 'tblTempUsageDetail_20' ) end [2025-02-20 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:31:20] Production.INFO: ==30362== Releasing lock... [2025-02-20 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:31:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:32:05 [end_date_ymd] => 2025-02-20 22:32:05 [RateCDR] => 1 ) [2025-02-20 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:32:05' and `end` < '2025-02-20 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:32:17] Production.INFO: count ==1129 [2025-02-20 22:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:32:05 - End Time 2025-02-20 22:32:05 [2025-02-20 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520811', 'tblTempUsageDetail_20' ) start [2025-02-20 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520811', 'tblTempUsageDetail_20' ) end [2025-02-20 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520811', 'tblTempVendorCDR_20' ) start [2025-02-20 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520811', 'tblTempVendorCDR_20' ) end [2025-02-20 22:32:17] Production.INFO: ProcessCDR(1,14520811,1,1,2) [2025-02-20 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520811', 'tblTempUsageDetail_20' ) start [2025-02-20 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520811', 'tblTempUsageDetail_20' ) end [2025-02-20 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:32:22] Production.INFO: ==30445== Releasing lock... [2025-02-20 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:32:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:33:05 [end_date_ymd] => 2025-02-20 22:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:33:05' and `end` < '2025-02-20 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-02-20 22:33:17] Production.INFO: count ==1121 [2025-02-20 22:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:33:05 - End Time 2025-02-20 22:33:05 [2025-02-20 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520816', 'tblTempUsageDetail_20' ) start [2025-02-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520816', 'tblTempUsageDetail_20' ) end [2025-02-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520816', 'tblTempVendorCDR_20' ) start [2025-02-20 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520816', 'tblTempVendorCDR_20' ) end [2025-02-20 22:33:17] Production.INFO: ProcessCDR(1,14520816,1,1,2) [2025-02-20 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520816', 'tblTempUsageDetail_20' ) start [2025-02-20 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520816', 'tblTempUsageDetail_20' ) end [2025-02-20 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:33:21] Production.INFO: ==30559== Releasing lock... [2025-02-20 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:33:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:34:05 [end_date_ymd] => 2025-02-20 22:34:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:34:05' and `end` < '2025-02-20 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-02-20 22:34:17] Production.INFO: count ==1124 [2025-02-20 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:34:05 - End Time 2025-02-20 22:34:05 [2025-02-20 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520821', 'tblTempUsageDetail_20' ) start [2025-02-20 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520821', 'tblTempUsageDetail_20' ) end [2025-02-20 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520821', 'tblTempVendorCDR_20' ) start [2025-02-20 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520821', 'tblTempVendorCDR_20' ) end [2025-02-20 22:34:17] Production.INFO: ProcessCDR(1,14520821,1,1,2) [2025-02-20 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520821', 'tblTempUsageDetail_20' ) start [2025-02-20 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520821', 'tblTempUsageDetail_20' ) end [2025-02-20 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:34:20] Production.INFO: ==30638== Releasing lock... [2025-02-20 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:34:20] Production.INFO: 36.5 MB #Memory Used# [2025-02-20 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:35:05 [end_date_ymd] => 2025-02-20 22:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:35:05' and `end` < '2025-02-20 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-02-20 22:35:17] Production.INFO: count ==1119 [2025-02-20 22:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:35:05 - End Time 2025-02-20 22:35:05 [2025-02-20 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520826', 'tblTempUsageDetail_20' ) start [2025-02-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520826', 'tblTempUsageDetail_20' ) end [2025-02-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520826', 'tblTempVendorCDR_20' ) start [2025-02-20 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520826', 'tblTempVendorCDR_20' ) end [2025-02-20 22:35:17] Production.INFO: ProcessCDR(1,14520826,1,1,2) [2025-02-20 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520826', 'tblTempUsageDetail_20' ) start [2025-02-20 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520826', 'tblTempUsageDetail_20' ) end [2025-02-20 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:35:20] Production.INFO: ==30711== Releasing lock... [2025-02-20 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:35:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:36:05 [end_date_ymd] => 2025-02-20 22:36:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:36:05' and `end` < '2025-02-20 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-02-20 22:36:17] Production.INFO: count ==1118 [2025-02-20 22:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:36:05 - End Time 2025-02-20 22:36:05 [2025-02-20 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520831', 'tblTempUsageDetail_20' ) start [2025-02-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520831', 'tblTempUsageDetail_20' ) end [2025-02-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520831', 'tblTempVendorCDR_20' ) start [2025-02-20 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520831', 'tblTempVendorCDR_20' ) end [2025-02-20 22:36:17] Production.INFO: ProcessCDR(1,14520831,1,1,2) [2025-02-20 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520831', 'tblTempUsageDetail_20' ) start [2025-02-20 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520831', 'tblTempUsageDetail_20' ) end [2025-02-20 22:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:36:20] Production.INFO: ==30788== Releasing lock... [2025-02-20 22:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:36:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-20 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:37:05 [end_date_ymd] => 2025-02-20 22:37:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:37:05' and `end` < '2025-02-20 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-02-20 22:37:17] Production.INFO: count ==1110 [2025-02-20 22:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:37:05 - End Time 2025-02-20 22:37:05 [2025-02-20 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520836', 'tblTempUsageDetail_20' ) start [2025-02-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520836', 'tblTempUsageDetail_20' ) end [2025-02-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520836', 'tblTempVendorCDR_20' ) start [2025-02-20 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520836', 'tblTempVendorCDR_20' ) end [2025-02-20 22:37:17] Production.INFO: ProcessCDR(1,14520836,1,1,2) [2025-02-20 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520836', 'tblTempUsageDetail_20' ) start [2025-02-20 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520836', 'tblTempUsageDetail_20' ) end [2025-02-20 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:37:20] Production.INFO: ==30868== Releasing lock... [2025-02-20 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:37:20] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:38:05 [end_date_ymd] => 2025-02-20 22:38:05 [RateCDR] => 1 ) [2025-02-20 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:38:05' and `end` < '2025-02-20 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:38:17] Production.INFO: count ==1113 [2025-02-20 22:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:38:05 - End Time 2025-02-20 22:38:05 [2025-02-20 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520841', 'tblTempUsageDetail_20' ) start [2025-02-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520841', 'tblTempUsageDetail_20' ) end [2025-02-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520841', 'tblTempVendorCDR_20' ) start [2025-02-20 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520841', 'tblTempVendorCDR_20' ) end [2025-02-20 22:38:17] Production.INFO: ProcessCDR(1,14520841,1,1,2) [2025-02-20 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520841', 'tblTempUsageDetail_20' ) start [2025-02-20 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520841', 'tblTempUsageDetail_20' ) end [2025-02-20 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:38:20] Production.INFO: ==30945== Releasing lock... [2025-02-20 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:38:20] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:39:05 [end_date_ymd] => 2025-02-20 22:39:05 [RateCDR] => 1 ) [2025-02-20 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:39:05' and `end` < '2025-02-20 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:39:17] Production.INFO: count ==1114 [2025-02-20 22:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:39:05 - End Time 2025-02-20 22:39:05 [2025-02-20 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520846', 'tblTempUsageDetail_20' ) start [2025-02-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520846', 'tblTempUsageDetail_20' ) end [2025-02-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520846', 'tblTempVendorCDR_20' ) start [2025-02-20 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520846', 'tblTempVendorCDR_20' ) end [2025-02-20 22:39:17] Production.INFO: ProcessCDR(1,14520846,1,1,2) [2025-02-20 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520846', 'tblTempUsageDetail_20' ) start [2025-02-20 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520846', 'tblTempUsageDetail_20' ) end [2025-02-20 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:39:22] Production.INFO: ==31024== Releasing lock... [2025-02-20 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:39:22] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:40:06 [end_date_ymd] => 2025-02-20 22:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:40:06' and `end` < '2025-02-20 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-02-20 22:40:18] Production.INFO: count ==1114 [2025-02-20 22:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:40:06 - End Time 2025-02-20 22:40:06 [2025-02-20 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520851', 'tblTempUsageDetail_20' ) start [2025-02-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520851', 'tblTempUsageDetail_20' ) end [2025-02-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520851', 'tblTempVendorCDR_20' ) start [2025-02-20 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520851', 'tblTempVendorCDR_20' ) end [2025-02-20 22:40:18] Production.INFO: ProcessCDR(1,14520851,1,1,2) [2025-02-20 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520851', 'tblTempUsageDetail_20' ) start [2025-02-20 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520851', 'tblTempUsageDetail_20' ) end [2025-02-20 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:40:21] Production.INFO: ==31103== Releasing lock... [2025-02-20 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:40:21] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:41:05 [end_date_ymd] => 2025-02-20 22:41:05 [RateCDR] => 1 ) [2025-02-20 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:41:05' and `end` < '2025-02-20 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:41:17] Production.INFO: count ==1080 [2025-02-20 22:41:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:41:05 - End Time 2025-02-20 22:41:05 [2025-02-20 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520857', 'tblTempUsageDetail_20' ) start [2025-02-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520857', 'tblTempUsageDetail_20' ) end [2025-02-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520857', 'tblTempVendorCDR_20' ) start [2025-02-20 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520857', 'tblTempVendorCDR_20' ) end [2025-02-20 22:41:18] Production.INFO: ProcessCDR(1,14520857,1,1,2) [2025-02-20 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520857', 'tblTempUsageDetail_20' ) start [2025-02-20 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520857', 'tblTempUsageDetail_20' ) end [2025-02-20 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:41:21] Production.INFO: ==31181== Releasing lock... [2025-02-20 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:41:21] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:42:05 [end_date_ymd] => 2025-02-20 22:42:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:42:05' and `end` < '2025-02-20 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-02-20 22:42:17] Production.INFO: count ==1079 [2025-02-20 22:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:42:05 - End Time 2025-02-20 22:42:05 [2025-02-20 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520862', 'tblTempUsageDetail_20' ) start [2025-02-20 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520862', 'tblTempUsageDetail_20' ) end [2025-02-20 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520862', 'tblTempVendorCDR_20' ) start [2025-02-20 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520862', 'tblTempVendorCDR_20' ) end [2025-02-20 22:42:17] Production.INFO: ProcessCDR(1,14520862,1,1,2) [2025-02-20 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520862', 'tblTempUsageDetail_20' ) start [2025-02-20 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520862', 'tblTempUsageDetail_20' ) end [2025-02-20 22:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:42:20] Production.INFO: ==31251== Releasing lock... [2025-02-20 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:42:20] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:43:05 [end_date_ymd] => 2025-02-20 22:43:05 [RateCDR] => 1 ) [2025-02-20 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:43:05' and `end` < '2025-02-20 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:43:17] Production.INFO: count ==1078 [2025-02-20 22:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:43:05 - End Time 2025-02-20 22:43:05 [2025-02-20 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520867', 'tblTempUsageDetail_20' ) start [2025-02-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520867', 'tblTempUsageDetail_20' ) end [2025-02-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520867', 'tblTempVendorCDR_20' ) start [2025-02-20 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520867', 'tblTempVendorCDR_20' ) end [2025-02-20 22:43:17] Production.INFO: ProcessCDR(1,14520867,1,1,2) [2025-02-20 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520867', 'tblTempUsageDetail_20' ) start [2025-02-20 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520867', 'tblTempUsageDetail_20' ) end [2025-02-20 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:43:22] Production.INFO: ==31324== Releasing lock... [2025-02-20 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:43:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:44:05 [end_date_ymd] => 2025-02-20 22:44:05 [RateCDR] => 1 ) [2025-02-20 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:44:05' and `end` < '2025-02-20 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:44:17] Production.INFO: count ==1080 [2025-02-20 22:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:44:05 - End Time 2025-02-20 22:44:05 [2025-02-20 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520872', 'tblTempUsageDetail_20' ) start [2025-02-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520872', 'tblTempUsageDetail_20' ) end [2025-02-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520872', 'tblTempVendorCDR_20' ) start [2025-02-20 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520872', 'tblTempVendorCDR_20' ) end [2025-02-20 22:44:17] Production.INFO: ProcessCDR(1,14520872,1,1,2) [2025-02-20 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520872', 'tblTempUsageDetail_20' ) start [2025-02-20 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520872', 'tblTempUsageDetail_20' ) end [2025-02-20 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:44:21] Production.INFO: ==31400== Releasing lock... [2025-02-20 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:44:21] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:45:05 [end_date_ymd] => 2025-02-20 22:45:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:45:05' and `end` < '2025-02-20 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-02-20 22:45:17] Production.INFO: count ==1077 [2025-02-20 22:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:45:05 - End Time 2025-02-20 22:45:05 [2025-02-20 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520877', 'tblTempUsageDetail_20' ) start [2025-02-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520877', 'tblTempUsageDetail_20' ) end [2025-02-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520877', 'tblTempVendorCDR_20' ) start [2025-02-20 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520877', 'tblTempVendorCDR_20' ) end [2025-02-20 22:45:17] Production.INFO: ProcessCDR(1,14520877,1,1,2) [2025-02-20 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520877', 'tblTempUsageDetail_20' ) start [2025-02-20 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520877', 'tblTempUsageDetail_20' ) end [2025-02-20 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:45:20] Production.INFO: ==31484== Releasing lock... [2025-02-20 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:45:20] Production.INFO: 36 MB #Memory Used# [2025-02-20 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:46:06 [end_date_ymd] => 2025-02-20 22:46:06 [RateCDR] => 1 ) [2025-02-20 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:46:06' and `end` < '2025-02-20 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:46:18] Production.INFO: count ==1075 [2025-02-20 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:46:06 - End Time 2025-02-20 22:46:06 [2025-02-20 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520882', 'tblTempUsageDetail_20' ) start [2025-02-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520882', 'tblTempUsageDetail_20' ) end [2025-02-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520882', 'tblTempVendorCDR_20' ) start [2025-02-20 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520882', 'tblTempVendorCDR_20' ) end [2025-02-20 22:46:18] Production.INFO: ProcessCDR(1,14520882,1,1,2) [2025-02-20 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520882', 'tblTempUsageDetail_20' ) start [2025-02-20 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520882', 'tblTempUsageDetail_20' ) end [2025-02-20 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:46:21] Production.INFO: ==31557== Releasing lock... [2025-02-20 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:46:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:47:05 [end_date_ymd] => 2025-02-20 22:47:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:47:05' and `end` < '2025-02-20 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-02-20 22:47:17] Production.INFO: count ==1068 [2025-02-20 22:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:47:05 - End Time 2025-02-20 22:47:05 [2025-02-20 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520887', 'tblTempUsageDetail_20' ) start [2025-02-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520887', 'tblTempUsageDetail_20' ) end [2025-02-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520887', 'tblTempVendorCDR_20' ) start [2025-02-20 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520887', 'tblTempVendorCDR_20' ) end [2025-02-20 22:47:17] Production.INFO: ProcessCDR(1,14520887,1,1,2) [2025-02-20 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520887', 'tblTempUsageDetail_20' ) start [2025-02-20 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520887', 'tblTempUsageDetail_20' ) end [2025-02-20 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:47:21] Production.INFO: ==31629== Releasing lock... [2025-02-20 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:47:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:48:06 [end_date_ymd] => 2025-02-20 22:48:06 [RateCDR] => 1 ) [2025-02-20 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:48:06' and `end` < '2025-02-20 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:48:17] Production.INFO: count ==1064 [2025-02-20 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:48:06 - End Time 2025-02-20 22:48:06 [2025-02-20 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520892', 'tblTempUsageDetail_20' ) start [2025-02-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520892', 'tblTempUsageDetail_20' ) end [2025-02-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520892', 'tblTempVendorCDR_20' ) start [2025-02-20 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520892', 'tblTempVendorCDR_20' ) end [2025-02-20 22:48:18] Production.INFO: ProcessCDR(1,14520892,1,1,2) [2025-02-20 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520892', 'tblTempUsageDetail_20' ) start [2025-02-20 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520892', 'tblTempUsageDetail_20' ) end [2025-02-20 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:48:21] Production.INFO: ==31708== Releasing lock... [2025-02-20 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:48:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:49:05 [end_date_ymd] => 2025-02-20 22:49:05 [RateCDR] => 1 ) [2025-02-20 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:49:05' and `end` < '2025-02-20 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:49:17] Production.INFO: count ==1061 [2025-02-20 22:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:49:05 - End Time 2025-02-20 22:49:05 [2025-02-20 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520897', 'tblTempUsageDetail_20' ) start [2025-02-20 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520897', 'tblTempUsageDetail_20' ) end [2025-02-20 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520897', 'tblTempVendorCDR_20' ) start [2025-02-20 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520897', 'tblTempVendorCDR_20' ) end [2025-02-20 22:49:17] Production.INFO: ProcessCDR(1,14520897,1,1,2) [2025-02-20 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520897', 'tblTempUsageDetail_20' ) start [2025-02-20 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520897', 'tblTempUsageDetail_20' ) end [2025-02-20 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:49:20] Production.INFO: ==31822== Releasing lock... [2025-02-20 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:49:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:50:06 [end_date_ymd] => 2025-02-20 22:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:50:06' and `end` < '2025-02-20 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-02-20 22:50:18] Production.INFO: count ==1059 [2025-02-20 22:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:50:06 - End Time 2025-02-20 22:50:06 [2025-02-20 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520903', 'tblTempUsageDetail_20' ) start [2025-02-20 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520903', 'tblTempUsageDetail_20' ) end [2025-02-20 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520903', 'tblTempVendorCDR_20' ) start [2025-02-20 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520903', 'tblTempVendorCDR_20' ) end [2025-02-20 22:50:18] Production.INFO: ProcessCDR(1,14520903,1,1,2) [2025-02-20 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520903', 'tblTempUsageDetail_20' ) start [2025-02-20 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520903', 'tblTempUsageDetail_20' ) end [2025-02-20 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:50:21] Production.INFO: ==31902== Releasing lock... [2025-02-20 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:50:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-20 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:51:05 [end_date_ymd] => 2025-02-20 22:51:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:51:05' and `end` < '2025-02-20 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-02-20 22:51:17] Production.INFO: count ==995 [2025-02-20 22:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:51:05 - End Time 2025-02-20 22:51:05 [2025-02-20 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520908', 'tblTempUsageDetail_20' ) start [2025-02-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520908', 'tblTempUsageDetail_20' ) end [2025-02-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520908', 'tblTempVendorCDR_20' ) start [2025-02-20 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520908', 'tblTempVendorCDR_20' ) end [2025-02-20 22:51:17] Production.INFO: ProcessCDR(1,14520908,1,1,2) [2025-02-20 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520908', 'tblTempUsageDetail_20' ) start [2025-02-20 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520908', 'tblTempUsageDetail_20' ) end [2025-02-20 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:51:22] Production.INFO: ==31980== Releasing lock... [2025-02-20 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:51:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:52:05 [end_date_ymd] => 2025-02-20 22:52:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:52:05' and `end` < '2025-02-20 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-02-20 22:52:17] Production.INFO: count ==986 [2025-02-20 22:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:52:05 - End Time 2025-02-20 22:52:05 [2025-02-20 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520913', 'tblTempUsageDetail_20' ) start [2025-02-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520913', 'tblTempUsageDetail_20' ) end [2025-02-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520913', 'tblTempVendorCDR_20' ) start [2025-02-20 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520913', 'tblTempVendorCDR_20' ) end [2025-02-20 22:52:17] Production.INFO: ProcessCDR(1,14520913,1,1,2) [2025-02-20 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520913', 'tblTempUsageDetail_20' ) start [2025-02-20 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520913', 'tblTempUsageDetail_20' ) end [2025-02-20 22:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:52:20] Production.INFO: ==32082== Releasing lock... [2025-02-20 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:52:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:53:05 [end_date_ymd] => 2025-02-20 22:53:05 [RateCDR] => 1 ) [2025-02-20 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:53:05' and `end` < '2025-02-20 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:53:17] Production.INFO: count ==986 [2025-02-20 22:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:53:05 - End Time 2025-02-20 22:53:05 [2025-02-20 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520918', 'tblTempUsageDetail_20' ) start [2025-02-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520918', 'tblTempUsageDetail_20' ) end [2025-02-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520918', 'tblTempVendorCDR_20' ) start [2025-02-20 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520918', 'tblTempVendorCDR_20' ) end [2025-02-20 22:53:17] Production.INFO: ProcessCDR(1,14520918,1,1,2) [2025-02-20 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520918', 'tblTempUsageDetail_20' ) start [2025-02-20 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520918', 'tblTempUsageDetail_20' ) end [2025-02-20 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:53:20] Production.INFO: ==32166== Releasing lock... [2025-02-20 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:53:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:54:05 [end_date_ymd] => 2025-02-20 22:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:54:05' and `end` < '2025-02-20 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-02-20 22:54:17] Production.INFO: count ==986 [2025-02-20 22:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:54:05 - End Time 2025-02-20 22:54:05 [2025-02-20 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520923', 'tblTempUsageDetail_20' ) start [2025-02-20 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520923', 'tblTempUsageDetail_20' ) end [2025-02-20 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520923', 'tblTempVendorCDR_20' ) start [2025-02-20 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520923', 'tblTempVendorCDR_20' ) end [2025-02-20 22:54:17] Production.INFO: ProcessCDR(1,14520923,1,1,2) [2025-02-20 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520923', 'tblTempUsageDetail_20' ) start [2025-02-20 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520923', 'tblTempUsageDetail_20' ) end [2025-02-20 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:54:22] Production.INFO: ==32251== Releasing lock... [2025-02-20 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:54:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:55:04 [end_date_ymd] => 2025-02-20 22:55:04 [RateCDR] => 1 ) [2025-02-20 22: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-02-20 19:55:04' and `end` < '2025-02-20 22: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-02-20 22:55:16] Production.INFO: count ==991 [2025-02-20 22:55:16] Production.ERROR: pbx CDR StartTime 2025-02-20 19:55:04 - End Time 2025-02-20 22:55:04 [2025-02-20 22:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520928', 'tblTempUsageDetail_20' ) start [2025-02-20 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520928', 'tblTempUsageDetail_20' ) end [2025-02-20 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520928', 'tblTempVendorCDR_20' ) start [2025-02-20 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520928', 'tblTempVendorCDR_20' ) end [2025-02-20 22:55:16] Production.INFO: ProcessCDR(1,14520928,1,1,2) [2025-02-20 22:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520928', 'tblTempUsageDetail_20' ) start [2025-02-20 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520928', 'tblTempUsageDetail_20' ) end [2025-02-20 22:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:55:20] Production.INFO: ==32332== Releasing lock... [2025-02-20 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:55:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:56:05 [end_date_ymd] => 2025-02-20 22:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:56:05' and `end` < '2025-02-20 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-02-20 22:56:17] Production.INFO: count ==994 [2025-02-20 22:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:56:05 - End Time 2025-02-20 22:56:05 [2025-02-20 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520933', 'tblTempUsageDetail_20' ) start [2025-02-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520933', 'tblTempUsageDetail_20' ) end [2025-02-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520933', 'tblTempVendorCDR_20' ) start [2025-02-20 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520933', 'tblTempVendorCDR_20' ) end [2025-02-20 22:56:17] Production.INFO: ProcessCDR(1,14520933,1,1,2) [2025-02-20 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520933', 'tblTempUsageDetail_20' ) start [2025-02-20 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520933', 'tblTempUsageDetail_20' ) end [2025-02-20 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:56:21] Production.INFO: ==32415== Releasing lock... [2025-02-20 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:57:04 [end_date_ymd] => 2025-02-20 22:57:04 [RateCDR] => 1 ) [2025-02-20 22:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 19:57:04' and `end` < '2025-02-20 22:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 22:57:16] Production.INFO: count ==990 [2025-02-20 22:57:16] Production.ERROR: pbx CDR StartTime 2025-02-20 19:57:04 - End Time 2025-02-20 22:57:04 [2025-02-20 22:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520938', 'tblTempUsageDetail_20' ) start [2025-02-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520938', 'tblTempUsageDetail_20' ) end [2025-02-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520938', 'tblTempVendorCDR_20' ) start [2025-02-20 22:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520938', 'tblTempVendorCDR_20' ) end [2025-02-20 22:57:16] Production.INFO: ProcessCDR(1,14520938,1,1,2) [2025-02-20 22:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520938', 'tblTempUsageDetail_20' ) start [2025-02-20 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520938', 'tblTempUsageDetail_20' ) end [2025-02-20 22:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:57:20] Production.INFO: ==32495== Releasing lock... [2025-02-20 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:57:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:58:05 [end_date_ymd] => 2025-02-20 22:58:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 19:58:05' and `end` < '2025-02-20 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-02-20 22:58:17] Production.INFO: count ==990 [2025-02-20 22:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 19:58:05 - End Time 2025-02-20 22:58:05 [2025-02-20 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520943', 'tblTempUsageDetail_20' ) start [2025-02-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520943', 'tblTempUsageDetail_20' ) end [2025-02-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520943', 'tblTempVendorCDR_20' ) start [2025-02-20 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520943', 'tblTempVendorCDR_20' ) end [2025-02-20 22:58:17] Production.INFO: ProcessCDR(1,14520943,1,1,2) [2025-02-20 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520943', 'tblTempUsageDetail_20' ) start [2025-02-20 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520943', 'tblTempUsageDetail_20' ) end [2025-02-20 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:58:20] Production.INFO: ==32588== Releasing lock... [2025-02-20 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:58:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 19:59:06 [end_date_ymd] => 2025-02-20 22:59:06 [RateCDR] => 1 ) [2025-02-20 22: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-02-20 19:59:06' and `end` < '2025-02-20 22: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-02-20 22:59:17] Production.INFO: count ==982 [2025-02-20 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-20 19:59:06 - End Time 2025-02-20 22:59:06 [2025-02-20 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520948', 'tblTempUsageDetail_20' ) start [2025-02-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520948', 'tblTempUsageDetail_20' ) end [2025-02-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520948', 'tblTempVendorCDR_20' ) start [2025-02-20 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520948', 'tblTempVendorCDR_20' ) end [2025-02-20 22:59:18] Production.INFO: ProcessCDR(1,14520948,1,1,2) [2025-02-20 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520948', 'tblTempUsageDetail_20' ) start [2025-02-20 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520948', 'tblTempUsageDetail_20' ) end [2025-02-20 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 22:59:21] Production.INFO: ==32671== Releasing lock... [2025-02-20 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 22:59:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:00:06 [end_date_ymd] => 2025-02-20 23:00:06 [RateCDR] => 1 ) [2025-02-20 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:00:06' and `end` < '2025-02-20 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:00:18] Production.INFO: count ==975 [2025-02-20 23:00:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:00:06 - End Time 2025-02-20 23:00:06 [2025-02-20 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520953', 'tblTempUsageDetail_20' ) start [2025-02-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520953', 'tblTempUsageDetail_20' ) end [2025-02-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520953', 'tblTempVendorCDR_20' ) start [2025-02-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520953', 'tblTempVendorCDR_20' ) end [2025-02-20 23:00:18] Production.INFO: ProcessCDR(1,14520953,1,1,2) [2025-02-20 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520953', 'tblTempUsageDetail_20' ) start [2025-02-20 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520953', 'tblTempUsageDetail_20' ) end [2025-02-20 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:00:23] Production.INFO: ==32757== Releasing lock... [2025-02-20 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:00:23] Production.INFO: 35 MB #Memory Used# [2025-02-20 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:01:05 [end_date_ymd] => 2025-02-20 23:01:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:01:05' and `end` < '2025-02-20 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-02-20 23:01:17] Production.INFO: count ==960 [2025-02-20 23:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:01:05 - End Time 2025-02-20 23:01:05 [2025-02-20 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520959', 'tblTempUsageDetail_20' ) start [2025-02-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520959', 'tblTempUsageDetail_20' ) end [2025-02-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520959', 'tblTempVendorCDR_20' ) start [2025-02-20 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520959', 'tblTempVendorCDR_20' ) end [2025-02-20 23:01:17] Production.INFO: ProcessCDR(1,14520959,1,1,2) [2025-02-20 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520959', 'tblTempUsageDetail_20' ) start [2025-02-20 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520959', 'tblTempUsageDetail_20' ) end [2025-02-20 23:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:01:20] Production.INFO: ==403== Releasing lock... [2025-02-20 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:01:21] Production.INFO: 35 MB #Memory Used# [2025-02-20 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:02:05 [end_date_ymd] => 2025-02-20 23:02:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:02:05' and `end` < '2025-02-20 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-02-20 23:02:16] Production.INFO: count ==951 [2025-02-20 23:02:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:02:05 - End Time 2025-02-20 23:02:05 [2025-02-20 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520964', 'tblTempUsageDetail_20' ) start [2025-02-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520964', 'tblTempUsageDetail_20' ) end [2025-02-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520964', 'tblTempVendorCDR_20' ) start [2025-02-20 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520964', 'tblTempVendorCDR_20' ) end [2025-02-20 23:02:17] Production.INFO: ProcessCDR(1,14520964,1,1,2) [2025-02-20 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520964', 'tblTempUsageDetail_20' ) start [2025-02-20 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520964', 'tblTempUsageDetail_20' ) end [2025-02-20 23:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:02:20] Production.INFO: ==564== Releasing lock... [2025-02-20 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:02:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-20 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:03:05 [end_date_ymd] => 2025-02-20 23:03:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:03:05' and `end` < '2025-02-20 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-02-20 23:03:17] Production.INFO: count ==952 [2025-02-20 23:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:03:05 - End Time 2025-02-20 23:03:05 [2025-02-20 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520969', 'tblTempUsageDetail_20' ) start [2025-02-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520969', 'tblTempUsageDetail_20' ) end [2025-02-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520969', 'tblTempVendorCDR_20' ) start [2025-02-20 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520969', 'tblTempVendorCDR_20' ) end [2025-02-20 23:03:17] Production.INFO: ProcessCDR(1,14520969,1,1,2) [2025-02-20 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520969', 'tblTempUsageDetail_20' ) start [2025-02-20 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520969', 'tblTempUsageDetail_20' ) end [2025-02-20 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:03:22] Production.INFO: ==663== Releasing lock... [2025-02-20 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:03:22] Production.INFO: 35 MB #Memory Used# [2025-02-20 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:04:05 [end_date_ymd] => 2025-02-20 23:04:05 [RateCDR] => 1 ) [2025-02-20 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:04:05' and `end` < '2025-02-20 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:04:17] Production.INFO: count ==955 [2025-02-20 23:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:04:05 - End Time 2025-02-20 23:04:05 [2025-02-20 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520974', 'tblTempUsageDetail_20' ) start [2025-02-20 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520974', 'tblTempUsageDetail_20' ) end [2025-02-20 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520974', 'tblTempVendorCDR_20' ) start [2025-02-20 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520974', 'tblTempVendorCDR_20' ) end [2025-02-20 23:04:17] Production.INFO: ProcessCDR(1,14520974,1,1,2) [2025-02-20 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520974', 'tblTempUsageDetail_20' ) start [2025-02-20 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520974', 'tblTempUsageDetail_20' ) end [2025-02-20 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:04:21] Production.INFO: ==804== Releasing lock... [2025-02-20 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:04:21] Production.INFO: 35 MB #Memory Used# [2025-02-20 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:05:05 [end_date_ymd] => 2025-02-20 23:05:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:05:05' and `end` < '2025-02-20 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-02-20 23:05:17] Production.INFO: count ==953 [2025-02-20 23:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:05:05 - End Time 2025-02-20 23:05:05 [2025-02-20 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520979', 'tblTempUsageDetail_20' ) start [2025-02-20 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520979', 'tblTempUsageDetail_20' ) end [2025-02-20 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520979', 'tblTempVendorCDR_20' ) start [2025-02-20 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520979', 'tblTempVendorCDR_20' ) end [2025-02-20 23:05:17] Production.INFO: ProcessCDR(1,14520979,1,1,2) [2025-02-20 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520979', 'tblTempUsageDetail_20' ) start [2025-02-20 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520979', 'tblTempUsageDetail_20' ) end [2025-02-20 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:05:21] Production.INFO: ==965== Releasing lock... [2025-02-20 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:05:21] Production.INFO: 35 MB #Memory Used# [2025-02-20 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:06:05 [end_date_ymd] => 2025-02-20 23:06:05 [RateCDR] => 1 ) [2025-02-20 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:06:05' and `end` < '2025-02-20 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:06:17] Production.INFO: count ==951 [2025-02-20 23:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:06:05 - End Time 2025-02-20 23:06:05 [2025-02-20 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520984', 'tblTempUsageDetail_20' ) start [2025-02-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520984', 'tblTempUsageDetail_20' ) end [2025-02-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520984', 'tblTempVendorCDR_20' ) start [2025-02-20 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520984', 'tblTempVendorCDR_20' ) end [2025-02-20 23:06:17] Production.INFO: ProcessCDR(1,14520984,1,1,2) [2025-02-20 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520984', 'tblTempUsageDetail_20' ) start [2025-02-20 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520984', 'tblTempUsageDetail_20' ) end [2025-02-20 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:06:21] Production.INFO: ==1050== Releasing lock... [2025-02-20 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:06:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:07:05 [end_date_ymd] => 2025-02-20 23:07:05 [RateCDR] => 1 ) [2025-02-20 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:07:05' and `end` < '2025-02-20 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:07:17] Production.INFO: count ==951 [2025-02-20 23:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:07:05 - End Time 2025-02-20 23:07:05 [2025-02-20 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520989', 'tblTempUsageDetail_20' ) start [2025-02-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520989', 'tblTempUsageDetail_20' ) end [2025-02-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520989', 'tblTempVendorCDR_20' ) start [2025-02-20 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520989', 'tblTempVendorCDR_20' ) end [2025-02-20 23:07:17] Production.INFO: ProcessCDR(1,14520989,1,1,2) [2025-02-20 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520989', 'tblTempUsageDetail_20' ) start [2025-02-20 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520989', 'tblTempUsageDetail_20' ) end [2025-02-20 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:07:21] Production.INFO: ==1134== Releasing lock... [2025-02-20 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:07:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:08:05 [end_date_ymd] => 2025-02-20 23:08:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:08:05' and `end` < '2025-02-20 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-02-20 23:08:17] Production.INFO: count ==951 [2025-02-20 23:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:08:05 - End Time 2025-02-20 23:08:05 [2025-02-20 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520994', 'tblTempUsageDetail_20' ) start [2025-02-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520994', 'tblTempUsageDetail_20' ) end [2025-02-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520994', 'tblTempVendorCDR_20' ) start [2025-02-20 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520994', 'tblTempVendorCDR_20' ) end [2025-02-20 23:08:17] Production.INFO: ProcessCDR(1,14520994,1,1,2) [2025-02-20 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520994', 'tblTempUsageDetail_20' ) start [2025-02-20 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520994', 'tblTempUsageDetail_20' ) end [2025-02-20 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:08:20] Production.INFO: ==1268== Releasing lock... [2025-02-20 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:08:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-20 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:09:05 [end_date_ymd] => 2025-02-20 23:09:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:09:05' and `end` < '2025-02-20 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-02-20 23:09:16] Production.INFO: count ==954 [2025-02-20 23:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:09:05 - End Time 2025-02-20 23:09:05 [2025-02-20 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520999', 'tblTempUsageDetail_20' ) start [2025-02-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14520999', 'tblTempUsageDetail_20' ) end [2025-02-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520999', 'tblTempVendorCDR_20' ) start [2025-02-20 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14520999', 'tblTempVendorCDR_20' ) end [2025-02-20 23:09:17] Production.INFO: ProcessCDR(1,14520999,1,1,2) [2025-02-20 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14520999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14520999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14520999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14520999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520999', 'tblTempUsageDetail_20' ) start [2025-02-20 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14520999', 'tblTempUsageDetail_20' ) end [2025-02-20 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:09:20] Production.INFO: ==1394== Releasing lock... [2025-02-20 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:09:20] Production.INFO: 35 MB #Memory Used# [2025-02-20 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:10:06 [end_date_ymd] => 2025-02-20 23:10:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:10:06' and `end` < '2025-02-20 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-02-20 23:10:18] Production.INFO: count ==950 [2025-02-20 23:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:10:06 - End Time 2025-02-20 23:10:06 [2025-02-20 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521005', 'tblTempUsageDetail_20' ) start [2025-02-20 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521005', 'tblTempUsageDetail_20' ) end [2025-02-20 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521005', 'tblTempVendorCDR_20' ) start [2025-02-20 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521005', 'tblTempVendorCDR_20' ) end [2025-02-20 23:10:19] Production.INFO: ProcessCDR(1,14521005,1,1,2) [2025-02-20 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521005', 'tblTempUsageDetail_20' ) start [2025-02-20 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521005', 'tblTempUsageDetail_20' ) end [2025-02-20 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:10:22] Production.INFO: ==1477== Releasing lock... [2025-02-20 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:10:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-20 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:11:05 [end_date_ymd] => 2025-02-20 23:11:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:11:05' and `end` < '2025-02-20 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-02-20 23:11:16] Production.INFO: count ==911 [2025-02-20 23:11:16] Production.ERROR: pbx CDR StartTime 2025-02-20 20:11:05 - End Time 2025-02-20 23:11:05 [2025-02-20 23:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521010', 'tblTempUsageDetail_20' ) start [2025-02-20 23:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521010', 'tblTempUsageDetail_20' ) end [2025-02-20 23:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521010', 'tblTempVendorCDR_20' ) start [2025-02-20 23:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521010', 'tblTempVendorCDR_20' ) end [2025-02-20 23:11:16] Production.INFO: ProcessCDR(1,14521010,1,1,2) [2025-02-20 23:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521010', 'tblTempUsageDetail_20' ) start [2025-02-20 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521010', 'tblTempUsageDetail_20' ) end [2025-02-20 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:11:21] Production.INFO: ==1598== Releasing lock... [2025-02-20 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:11:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:12:05 [end_date_ymd] => 2025-02-20 23:12:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:12:05' and `end` < '2025-02-20 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-02-20 23:12:17] Production.INFO: count ==912 [2025-02-20 23:12:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:12:05 - End Time 2025-02-20 23:12:05 [2025-02-20 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521015', 'tblTempUsageDetail_20' ) start [2025-02-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521015', 'tblTempUsageDetail_20' ) end [2025-02-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521015', 'tblTempVendorCDR_20' ) start [2025-02-20 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521015', 'tblTempVendorCDR_20' ) end [2025-02-20 23:12:18] Production.INFO: ProcessCDR(1,14521015,1,1,2) [2025-02-20 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521015', 'tblTempUsageDetail_20' ) start [2025-02-20 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521015', 'tblTempUsageDetail_20' ) end [2025-02-20 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:12:22] Production.INFO: ==1769== Releasing lock... [2025-02-20 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:13:05 [end_date_ymd] => 2025-02-20 23:13:05 [RateCDR] => 1 ) [2025-02-20 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:13:05' and `end` < '2025-02-20 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:13:17] Production.INFO: count ==912 [2025-02-20 23:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:13:05 - End Time 2025-02-20 23:13:05 [2025-02-20 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521020', 'tblTempUsageDetail_20' ) start [2025-02-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521020', 'tblTempUsageDetail_20' ) end [2025-02-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521020', 'tblTempVendorCDR_20' ) start [2025-02-20 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521020', 'tblTempVendorCDR_20' ) end [2025-02-20 23:13:17] Production.INFO: ProcessCDR(1,14521020,1,1,2) [2025-02-20 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521020', 'tblTempUsageDetail_20' ) start [2025-02-20 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521020', 'tblTempUsageDetail_20' ) end [2025-02-20 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:13:20] Production.INFO: ==1852== Releasing lock... [2025-02-20 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:13:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:14:05 [end_date_ymd] => 2025-02-20 23:14:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:14:05' and `end` < '2025-02-20 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-02-20 23:14:17] Production.INFO: count ==912 [2025-02-20 23:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:14:05 - End Time 2025-02-20 23:14:05 [2025-02-20 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521025', 'tblTempUsageDetail_20' ) start [2025-02-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521025', 'tblTempUsageDetail_20' ) end [2025-02-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521025', 'tblTempVendorCDR_20' ) start [2025-02-20 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521025', 'tblTempVendorCDR_20' ) end [2025-02-20 23:14:17] Production.INFO: ProcessCDR(1,14521025,1,1,2) [2025-02-20 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521025', 'tblTempUsageDetail_20' ) start [2025-02-20 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521025', 'tblTempUsageDetail_20' ) end [2025-02-20 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:14:21] Production.INFO: ==1933== Releasing lock... [2025-02-20 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:15:05 [end_date_ymd] => 2025-02-20 23:15:05 [RateCDR] => 1 ) [2025-02-20 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:15:05' and `end` < '2025-02-20 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:15:17] Production.INFO: count ==910 [2025-02-20 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:15:05 - End Time 2025-02-20 23:15:05 [2025-02-20 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521030', 'tblTempUsageDetail_20' ) start [2025-02-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521030', 'tblTempUsageDetail_20' ) end [2025-02-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521030', 'tblTempVendorCDR_20' ) start [2025-02-20 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521030', 'tblTempVendorCDR_20' ) end [2025-02-20 23:15:17] Production.INFO: ProcessCDR(1,14521030,1,1,2) [2025-02-20 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521030', 'tblTempUsageDetail_20' ) start [2025-02-20 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521030', 'tblTempUsageDetail_20' ) end [2025-02-20 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:15:21] Production.INFO: ==2092== Releasing lock... [2025-02-20 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:15:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:16:05 [end_date_ymd] => 2025-02-20 23:16:05 [RateCDR] => 1 ) [2025-02-20 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:16:05' and `end` < '2025-02-20 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:16:17] Production.INFO: count ==907 [2025-02-20 23:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:16:05 - End Time 2025-02-20 23:16:05 [2025-02-20 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521035', 'tblTempUsageDetail_20' ) start [2025-02-20 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521035', 'tblTempUsageDetail_20' ) end [2025-02-20 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521035', 'tblTempVendorCDR_20' ) start [2025-02-20 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521035', 'tblTempVendorCDR_20' ) end [2025-02-20 23:16:17] Production.INFO: ProcessCDR(1,14521035,1,1,2) [2025-02-20 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521035', 'tblTempUsageDetail_20' ) start [2025-02-20 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521035', 'tblTempUsageDetail_20' ) end [2025-02-20 23:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:16:20] Production.INFO: ==2172== Releasing lock... [2025-02-20 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:16:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-20 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:17:05 [end_date_ymd] => 2025-02-20 23:17:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:17:05' and `end` < '2025-02-20 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-02-20 23:17:17] Production.INFO: count ==905 [2025-02-20 23:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:17:05 - End Time 2025-02-20 23:17:05 [2025-02-20 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521040', 'tblTempUsageDetail_20' ) start [2025-02-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521040', 'tblTempUsageDetail_20' ) end [2025-02-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521040', 'tblTempVendorCDR_20' ) start [2025-02-20 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521040', 'tblTempVendorCDR_20' ) end [2025-02-20 23:17:17] Production.INFO: ProcessCDR(1,14521040,1,1,2) [2025-02-20 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521040', 'tblTempUsageDetail_20' ) start [2025-02-20 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521040', 'tblTempUsageDetail_20' ) end [2025-02-20 23:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:17:20] Production.INFO: ==2258== Releasing lock... [2025-02-20 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:17:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:18:05 [end_date_ymd] => 2025-02-20 23:18:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:18:05' and `end` < '2025-02-20 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-02-20 23:18:17] Production.INFO: count ==904 [2025-02-20 23:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:18:05 - End Time 2025-02-20 23:18:05 [2025-02-20 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521045', 'tblTempUsageDetail_20' ) start [2025-02-20 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521045', 'tblTempUsageDetail_20' ) end [2025-02-20 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521045', 'tblTempVendorCDR_20' ) start [2025-02-20 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521045', 'tblTempVendorCDR_20' ) end [2025-02-20 23:18:17] Production.INFO: ProcessCDR(1,14521045,1,1,2) [2025-02-20 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521045', 'tblTempUsageDetail_20' ) start [2025-02-20 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521045', 'tblTempUsageDetail_20' ) end [2025-02-20 23:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:18:20] Production.INFO: ==2342== Releasing lock... [2025-02-20 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:18:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:19:04 [end_date_ymd] => 2025-02-20 23:19:04 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:19:04' and `end` < '2025-02-20 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-02-20 23:19:16] Production.INFO: count ==900 [2025-02-20 23:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:19:04 - End Time 2025-02-20 23:19:04 [2025-02-20 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521050', 'tblTempUsageDetail_20' ) start [2025-02-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521050', 'tblTempUsageDetail_20' ) end [2025-02-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521050', 'tblTempVendorCDR_20' ) start [2025-02-20 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521050', 'tblTempVendorCDR_20' ) end [2025-02-20 23:19:17] Production.INFO: ProcessCDR(1,14521050,1,1,2) [2025-02-20 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521050', 'tblTempUsageDetail_20' ) start [2025-02-20 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521050', 'tblTempUsageDetail_20' ) end [2025-02-20 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:19:20] Production.INFO: ==2442== Releasing lock... [2025-02-20 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:19:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:20:05 [end_date_ymd] => 2025-02-20 23:20:05 [RateCDR] => 1 ) [2025-02-20 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:20:05' and `end` < '2025-02-20 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:20:17] Production.INFO: count ==898 [2025-02-20 23:20:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:20:05 - End Time 2025-02-20 23:20:05 [2025-02-20 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521055', 'tblTempUsageDetail_20' ) start [2025-02-20 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521055', 'tblTempUsageDetail_20' ) end [2025-02-20 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521055', 'tblTempVendorCDR_20' ) start [2025-02-20 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521055', 'tblTempVendorCDR_20' ) end [2025-02-20 23:20:17] Production.INFO: ProcessCDR(1,14521055,1,1,2) [2025-02-20 23:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521055', 'tblTempUsageDetail_20' ) start [2025-02-20 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521055', 'tblTempUsageDetail_20' ) end [2025-02-20 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:20:21] Production.INFO: ==2546== Releasing lock... [2025-02-20 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:20:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-20 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:21:06 [end_date_ymd] => 2025-02-20 23:21:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:21:06' and `end` < '2025-02-20 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-02-20 23:21:17] Production.INFO: count ==853 [2025-02-20 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:21:06 - End Time 2025-02-20 23:21:06 [2025-02-20 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521061', 'tblTempUsageDetail_20' ) start [2025-02-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521061', 'tblTempUsageDetail_20' ) end [2025-02-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521061', 'tblTempVendorCDR_20' ) start [2025-02-20 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521061', 'tblTempVendorCDR_20' ) end [2025-02-20 23:21:18] Production.INFO: ProcessCDR(1,14521061,1,1,2) [2025-02-20 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521061', 'tblTempUsageDetail_20' ) start [2025-02-20 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521061', 'tblTempUsageDetail_20' ) end [2025-02-20 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:21:21] Production.INFO: ==2631== Releasing lock... [2025-02-20 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:21:21] Production.INFO: 34 MB #Memory Used# [2025-02-20 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:22:05 [end_date_ymd] => 2025-02-20 23:22:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:22:05' and `end` < '2025-02-20 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-02-20 23:22:17] Production.INFO: count ==849 [2025-02-20 23:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:22:05 - End Time 2025-02-20 23:22:05 [2025-02-20 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521066', 'tblTempUsageDetail_20' ) start [2025-02-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521066', 'tblTempUsageDetail_20' ) end [2025-02-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521066', 'tblTempVendorCDR_20' ) start [2025-02-20 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521066', 'tblTempVendorCDR_20' ) end [2025-02-20 23:22:17] Production.INFO: ProcessCDR(1,14521066,1,1,2) [2025-02-20 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521066', 'tblTempUsageDetail_20' ) start [2025-02-20 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521066', 'tblTempUsageDetail_20' ) end [2025-02-20 23:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:22:20] Production.INFO: ==2709== Releasing lock... [2025-02-20 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:22:20] Production.INFO: 34 MB #Memory Used# [2025-02-20 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:23:06 [end_date_ymd] => 2025-02-20 23:23:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:23:06' and `end` < '2025-02-20 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-02-20 23:23:18] Production.INFO: count ==849 [2025-02-20 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:23:06 - End Time 2025-02-20 23:23:06 [2025-02-20 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521071', 'tblTempUsageDetail_20' ) start [2025-02-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521071', 'tblTempUsageDetail_20' ) end [2025-02-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521071', 'tblTempVendorCDR_20' ) start [2025-02-20 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521071', 'tblTempVendorCDR_20' ) end [2025-02-20 23:23:18] Production.INFO: ProcessCDR(1,14521071,1,1,2) [2025-02-20 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521071', 'tblTempUsageDetail_20' ) start [2025-02-20 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521071', 'tblTempUsageDetail_20' ) end [2025-02-20 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:23:21] Production.INFO: ==2791== Releasing lock... [2025-02-20 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:23:21] Production.INFO: 34 MB #Memory Used# [2025-02-20 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:24:05 [end_date_ymd] => 2025-02-20 23:24:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:24:05' and `end` < '2025-02-20 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-02-20 23:24:17] Production.INFO: count ==848 [2025-02-20 23:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:24:05 - End Time 2025-02-20 23:24:05 [2025-02-20 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521076', 'tblTempUsageDetail_20' ) start [2025-02-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521076', 'tblTempUsageDetail_20' ) end [2025-02-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521076', 'tblTempVendorCDR_20' ) start [2025-02-20 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521076', 'tblTempVendorCDR_20' ) end [2025-02-20 23:24:17] Production.INFO: ProcessCDR(1,14521076,1,1,2) [2025-02-20 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521076', 'tblTempUsageDetail_20' ) start [2025-02-20 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521076', 'tblTempUsageDetail_20' ) end [2025-02-20 23:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:24:20] Production.INFO: ==2867== Releasing lock... [2025-02-20 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:24:20] Production.INFO: 34 MB #Memory Used# [2025-02-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:25:05 [end_date_ymd] => 2025-02-20 23:25:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:25:05' and `end` < '2025-02-20 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-02-20 23:25:17] Production.INFO: count ==847 [2025-02-20 23:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:25:05 - End Time 2025-02-20 23:25:05 [2025-02-20 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521081', 'tblTempUsageDetail_20' ) start [2025-02-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521081', 'tblTempUsageDetail_20' ) end [2025-02-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521081', 'tblTempVendorCDR_20' ) start [2025-02-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521081', 'tblTempVendorCDR_20' ) end [2025-02-20 23:25:17] Production.INFO: ProcessCDR(1,14521081,1,1,2) [2025-02-20 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521081', 'tblTempUsageDetail_20' ) start [2025-02-20 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521081', 'tblTempUsageDetail_20' ) end [2025-02-20 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:25:20] Production.INFO: ==2945== Releasing lock... [2025-02-20 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:25:20] Production.INFO: 34 MB #Memory Used# [2025-02-20 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:26:05 [end_date_ymd] => 2025-02-20 23:26:05 [RateCDR] => 1 ) [2025-02-20 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:26:05' and `end` < '2025-02-20 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:26:17] Production.INFO: count ==838 [2025-02-20 23:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:26:05 - End Time 2025-02-20 23:26:05 [2025-02-20 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521086', 'tblTempUsageDetail_20' ) start [2025-02-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521086', 'tblTempUsageDetail_20' ) end [2025-02-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521086', 'tblTempVendorCDR_20' ) start [2025-02-20 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521086', 'tblTempVendorCDR_20' ) end [2025-02-20 23:26:17] Production.INFO: ProcessCDR(1,14521086,1,1,2) [2025-02-20 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521086', 'tblTempUsageDetail_20' ) start [2025-02-20 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521086', 'tblTempUsageDetail_20' ) end [2025-02-20 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:26:20] Production.INFO: ==3020== Releasing lock... [2025-02-20 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:26:20] Production.INFO: 34 MB #Memory Used# [2025-02-20 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:27:06 [end_date_ymd] => 2025-02-20 23:27:06 [RateCDR] => 1 ) [2025-02-20 23: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-02-20 20:27:06' and `end` < '2025-02-20 23: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-02-20 23:27:17] Production.INFO: count ==827 [2025-02-20 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:27:06 - End Time 2025-02-20 23:27:06 [2025-02-20 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521091', 'tblTempUsageDetail_20' ) start [2025-02-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521091', 'tblTempUsageDetail_20' ) end [2025-02-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521091', 'tblTempVendorCDR_20' ) start [2025-02-20 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521091', 'tblTempVendorCDR_20' ) end [2025-02-20 23:27:18] Production.INFO: ProcessCDR(1,14521091,1,1,2) [2025-02-20 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521091', 'tblTempUsageDetail_20' ) start [2025-02-20 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521091', 'tblTempUsageDetail_20' ) end [2025-02-20 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:27:21] Production.INFO: ==3100== Releasing lock... [2025-02-20 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:27:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-20 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:28:05 [end_date_ymd] => 2025-02-20 23:28:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:28:05' and `end` < '2025-02-20 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-02-20 23:28:17] Production.INFO: count ==826 [2025-02-20 23:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:28:05 - End Time 2025-02-20 23:28:05 [2025-02-20 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521096', 'tblTempUsageDetail_20' ) start [2025-02-20 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521096', 'tblTempUsageDetail_20' ) end [2025-02-20 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521096', 'tblTempVendorCDR_20' ) start [2025-02-20 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521096', 'tblTempVendorCDR_20' ) end [2025-02-20 23:28:17] Production.INFO: ProcessCDR(1,14521096,1,1,2) [2025-02-20 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521096', 'tblTempUsageDetail_20' ) start [2025-02-20 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521096', 'tblTempUsageDetail_20' ) end [2025-02-20 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:28:20] Production.INFO: ==3176== Releasing lock... [2025-02-20 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:28:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-20 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:29:05 [end_date_ymd] => 2025-02-20 23:29:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:29:05' and `end` < '2025-02-20 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-02-20 23:29:17] Production.INFO: count ==828 [2025-02-20 23:29:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:29:05 - End Time 2025-02-20 23:29:05 [2025-02-20 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521101', 'tblTempUsageDetail_20' ) start [2025-02-20 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521101', 'tblTempUsageDetail_20' ) end [2025-02-20 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521101', 'tblTempVendorCDR_20' ) start [2025-02-20 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521101', 'tblTempVendorCDR_20' ) end [2025-02-20 23:29:17] Production.INFO: ProcessCDR(1,14521101,1,1,2) [2025-02-20 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521101', 'tblTempUsageDetail_20' ) start [2025-02-20 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521101', 'tblTempUsageDetail_20' ) end [2025-02-20 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:29:20] Production.INFO: ==3255== Releasing lock... [2025-02-20 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:29:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:30:06 [end_date_ymd] => 2025-02-20 23:30:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:30:06' and `end` < '2025-02-20 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-02-20 23:30:18] Production.INFO: count ==830 [2025-02-20 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:30:06 - End Time 2025-02-20 23:30:06 [2025-02-20 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521107', 'tblTempUsageDetail_20' ) start [2025-02-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521107', 'tblTempUsageDetail_20' ) end [2025-02-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521107', 'tblTempVendorCDR_20' ) start [2025-02-20 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521107', 'tblTempVendorCDR_20' ) end [2025-02-20 23:30:18] Production.INFO: ProcessCDR(1,14521107,1,1,2) [2025-02-20 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521107', 'tblTempUsageDetail_20' ) start [2025-02-20 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521107', 'tblTempUsageDetail_20' ) end [2025-02-20 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:30:21] Production.INFO: ==3336== Releasing lock... [2025-02-20 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:30:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-20 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:31:05 [end_date_ymd] => 2025-02-20 23:31:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:31:05' and `end` < '2025-02-20 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-02-20 23:31:17] Production.INFO: count ==791 [2025-02-20 23:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:31:05 - End Time 2025-02-20 23:31:05 [2025-02-20 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521112', 'tblTempUsageDetail_20' ) start [2025-02-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521112', 'tblTempUsageDetail_20' ) end [2025-02-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521112', 'tblTempVendorCDR_20' ) start [2025-02-20 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521112', 'tblTempVendorCDR_20' ) end [2025-02-20 23:31:17] Production.INFO: ProcessCDR(1,14521112,1,1,2) [2025-02-20 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521112', 'tblTempUsageDetail_20' ) start [2025-02-20 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521112', 'tblTempUsageDetail_20' ) end [2025-02-20 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:31:20] Production.INFO: ==3410== Releasing lock... [2025-02-20 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:31:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-20 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:32:05 [end_date_ymd] => 2025-02-20 23:32:05 [RateCDR] => 1 ) [2025-02-20 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:32:05' and `end` < '2025-02-20 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:32:17] Production.INFO: count ==790 [2025-02-20 23:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:32:05 - End Time 2025-02-20 23:32:05 [2025-02-20 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521117', 'tblTempUsageDetail_20' ) start [2025-02-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521117', 'tblTempUsageDetail_20' ) end [2025-02-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521117', 'tblTempVendorCDR_20' ) start [2025-02-20 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521117', 'tblTempVendorCDR_20' ) end [2025-02-20 23:32:17] Production.INFO: ProcessCDR(1,14521117,1,1,2) [2025-02-20 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521117', 'tblTempUsageDetail_20' ) start [2025-02-20 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521117', 'tblTempUsageDetail_20' ) end [2025-02-20 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:32:20] Production.INFO: ==3483== Releasing lock... [2025-02-20 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:32:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:33:05 [end_date_ymd] => 2025-02-20 23:33:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:33:05' and `end` < '2025-02-20 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-02-20 23:33:16] Production.INFO: count ==790 [2025-02-20 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:33:05 - End Time 2025-02-20 23:33:05 [2025-02-20 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521122', 'tblTempUsageDetail_20' ) start [2025-02-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521122', 'tblTempUsageDetail_20' ) end [2025-02-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521122', 'tblTempVendorCDR_20' ) start [2025-02-20 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521122', 'tblTempVendorCDR_20' ) end [2025-02-20 23:33:17] Production.INFO: ProcessCDR(1,14521122,1,1,2) [2025-02-20 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521122', 'tblTempUsageDetail_20' ) start [2025-02-20 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521122', 'tblTempUsageDetail_20' ) end [2025-02-20 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:33:20] Production.INFO: ==3559== Releasing lock... [2025-02-20 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:33:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:34:05 [end_date_ymd] => 2025-02-20 23:34:05 [RateCDR] => 1 ) [2025-02-20 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:34:05' and `end` < '2025-02-20 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:34:17] Production.INFO: count ==790 [2025-02-20 23:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:34:05 - End Time 2025-02-20 23:34:05 [2025-02-20 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521127', 'tblTempUsageDetail_20' ) start [2025-02-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521127', 'tblTempUsageDetail_20' ) end [2025-02-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521127', 'tblTempVendorCDR_20' ) start [2025-02-20 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521127', 'tblTempVendorCDR_20' ) end [2025-02-20 23:34:18] Production.INFO: ProcessCDR(1,14521127,1,1,2) [2025-02-20 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521127', 'tblTempUsageDetail_20' ) start [2025-02-20 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521127', 'tblTempUsageDetail_20' ) end [2025-02-20 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:34:21] Production.INFO: ==3635== Releasing lock... [2025-02-20 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:35:05 [end_date_ymd] => 2025-02-20 23:35:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:35:05' and `end` < '2025-02-20 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-02-20 23:35:16] Production.INFO: count ==789 [2025-02-20 23:35:16] Production.ERROR: pbx CDR StartTime 2025-02-20 20:35:05 - End Time 2025-02-20 23:35:05 [2025-02-20 23:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521132', 'tblTempUsageDetail_20' ) start [2025-02-20 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521132', 'tblTempUsageDetail_20' ) end [2025-02-20 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521132', 'tblTempVendorCDR_20' ) start [2025-02-20 23:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521132', 'tblTempVendorCDR_20' ) end [2025-02-20 23:35:16] Production.INFO: ProcessCDR(1,14521132,1,1,2) [2025-02-20 23:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521132', 'tblTempUsageDetail_20' ) start [2025-02-20 23:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521132', 'tblTempUsageDetail_20' ) end [2025-02-20 23:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:35:19] Production.INFO: ==3746== Releasing lock... [2025-02-20 23:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:35:19] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:36:05 [end_date_ymd] => 2025-02-20 23:36:05 [RateCDR] => 1 ) [2025-02-20 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:36:05' and `end` < '2025-02-20 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:36:17] Production.INFO: count ==789 [2025-02-20 23:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:36:05 - End Time 2025-02-20 23:36:05 [2025-02-20 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521137', 'tblTempUsageDetail_20' ) start [2025-02-20 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521137', 'tblTempUsageDetail_20' ) end [2025-02-20 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521137', 'tblTempVendorCDR_20' ) start [2025-02-20 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521137', 'tblTempVendorCDR_20' ) end [2025-02-20 23:36:17] Production.INFO: ProcessCDR(1,14521137,1,1,2) [2025-02-20 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521137', 'tblTempUsageDetail_20' ) start [2025-02-20 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521137', 'tblTempUsageDetail_20' ) end [2025-02-20 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:36:20] Production.INFO: ==3822== Releasing lock... [2025-02-20 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:36:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:37:04 [end_date_ymd] => 2025-02-20 23:37:04 [RateCDR] => 1 ) [2025-02-20 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:37:04' and `end` < '2025-02-20 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:37:16] Production.INFO: count ==790 [2025-02-20 23:37:16] Production.ERROR: pbx CDR StartTime 2025-02-20 20:37:04 - End Time 2025-02-20 23:37:04 [2025-02-20 23:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521142', 'tblTempUsageDetail_20' ) start [2025-02-20 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521142', 'tblTempUsageDetail_20' ) end [2025-02-20 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521142', 'tblTempVendorCDR_20' ) start [2025-02-20 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521142', 'tblTempVendorCDR_20' ) end [2025-02-20 23:37:16] Production.INFO: ProcessCDR(1,14521142,1,1,2) [2025-02-20 23:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521142', 'tblTempUsageDetail_20' ) start [2025-02-20 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521142', 'tblTempUsageDetail_20' ) end [2025-02-20 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:37:20] Production.INFO: ==3893== Releasing lock... [2025-02-20 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:37:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-20 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:38:05 [end_date_ymd] => 2025-02-20 23:38:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:38:05' and `end` < '2025-02-20 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-02-20 23:38:17] Production.INFO: count ==769 [2025-02-20 23:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:38:05 - End Time 2025-02-20 23:38:05 [2025-02-20 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521147', 'tblTempUsageDetail_20' ) start [2025-02-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521147', 'tblTempUsageDetail_20' ) end [2025-02-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521147', 'tblTempVendorCDR_20' ) start [2025-02-20 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521147', 'tblTempVendorCDR_20' ) end [2025-02-20 23:38:17] Production.INFO: ProcessCDR(1,14521147,1,1,2) [2025-02-20 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521147', 'tblTempUsageDetail_20' ) start [2025-02-20 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521147', 'tblTempUsageDetail_20' ) end [2025-02-20 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:38:20] Production.INFO: ==3970== Releasing lock... [2025-02-20 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:38:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:39:05 [end_date_ymd] => 2025-02-20 23:39:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:39:05' and `end` < '2025-02-20 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-02-20 23:39:17] Production.INFO: count ==754 [2025-02-20 23:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:39:05 - End Time 2025-02-20 23:39:05 [2025-02-20 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521152', 'tblTempUsageDetail_20' ) start [2025-02-20 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521152', 'tblTempUsageDetail_20' ) end [2025-02-20 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521152', 'tblTempVendorCDR_20' ) start [2025-02-20 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521152', 'tblTempVendorCDR_20' ) end [2025-02-20 23:39:17] Production.INFO: ProcessCDR(1,14521152,1,1,2) [2025-02-20 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521152', 'tblTempUsageDetail_20' ) start [2025-02-20 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521152', 'tblTempUsageDetail_20' ) end [2025-02-20 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:39:20] Production.INFO: ==4043== Releasing lock... [2025-02-20 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:39:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:40:06 [end_date_ymd] => 2025-02-20 23:40:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:40:06' and `end` < '2025-02-20 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-02-20 23:40:18] Production.INFO: count ==757 [2025-02-20 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:40:06 - End Time 2025-02-20 23:40:06 [2025-02-20 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521158', 'tblTempUsageDetail_20' ) start [2025-02-20 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521158', 'tblTempUsageDetail_20' ) end [2025-02-20 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521158', 'tblTempVendorCDR_20' ) start [2025-02-20 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521158', 'tblTempVendorCDR_20' ) end [2025-02-20 23:40:18] Production.INFO: ProcessCDR(1,14521158,1,1,2) [2025-02-20 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521158', 'tblTempUsageDetail_20' ) start [2025-02-20 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521158', 'tblTempUsageDetail_20' ) end [2025-02-20 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:40:22] Production.INFO: ==4118== Releasing lock... [2025-02-20 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:40:22] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:41:05 [end_date_ymd] => 2025-02-20 23:41:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:41:05' and `end` < '2025-02-20 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-02-20 23:41:17] Production.INFO: count ==748 [2025-02-20 23:41:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:41:05 - End Time 2025-02-20 23:41:05 [2025-02-20 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521163', 'tblTempUsageDetail_20' ) start [2025-02-20 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521163', 'tblTempUsageDetail_20' ) end [2025-02-20 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521163', 'tblTempVendorCDR_20' ) start [2025-02-20 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521163', 'tblTempVendorCDR_20' ) end [2025-02-20 23:41:17] Production.INFO: ProcessCDR(1,14521163,1,1,2) [2025-02-20 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521163', 'tblTempUsageDetail_20' ) start [2025-02-20 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521163', 'tblTempUsageDetail_20' ) end [2025-02-20 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:41:20] Production.INFO: ==4191== Releasing lock... [2025-02-20 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:41:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:42:05 [end_date_ymd] => 2025-02-20 23:42:05 [RateCDR] => 1 ) [2025-02-20 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:42:05' and `end` < '2025-02-20 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:42:17] Production.INFO: count ==748 [2025-02-20 23:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:42:05 - End Time 2025-02-20 23:42:05 [2025-02-20 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521168', 'tblTempUsageDetail_20' ) start [2025-02-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521168', 'tblTempUsageDetail_20' ) end [2025-02-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521168', 'tblTempVendorCDR_20' ) start [2025-02-20 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521168', 'tblTempVendorCDR_20' ) end [2025-02-20 23:42:17] Production.INFO: ProcessCDR(1,14521168,1,1,2) [2025-02-20 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521168', 'tblTempUsageDetail_20' ) start [2025-02-20 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521168', 'tblTempUsageDetail_20' ) end [2025-02-20 23:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:42:20] Production.INFO: ==4263== Releasing lock... [2025-02-20 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:42:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:43:05 [end_date_ymd] => 2025-02-20 23:43:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:43:05' and `end` < '2025-02-20 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-02-20 23:43:17] Production.INFO: count ==748 [2025-02-20 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:43:05 - End Time 2025-02-20 23:43:05 [2025-02-20 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521173', 'tblTempUsageDetail_20' ) start [2025-02-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521173', 'tblTempUsageDetail_20' ) end [2025-02-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521173', 'tblTempVendorCDR_20' ) start [2025-02-20 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521173', 'tblTempVendorCDR_20' ) end [2025-02-20 23:43:17] Production.INFO: ProcessCDR(1,14521173,1,1,2) [2025-02-20 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521173', 'tblTempUsageDetail_20' ) start [2025-02-20 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521173', 'tblTempUsageDetail_20' ) end [2025-02-20 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:43:20] Production.INFO: ==4333== Releasing lock... [2025-02-20 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:43:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:44:05 [end_date_ymd] => 2025-02-20 23:44:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:44:05' and `end` < '2025-02-20 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-02-20 23:44:17] Production.INFO: count ==748 [2025-02-20 23:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:44:05 - End Time 2025-02-20 23:44:05 [2025-02-20 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521178', 'tblTempUsageDetail_20' ) start [2025-02-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521178', 'tblTempUsageDetail_20' ) end [2025-02-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521178', 'tblTempVendorCDR_20' ) start [2025-02-20 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521178', 'tblTempVendorCDR_20' ) end [2025-02-20 23:44:17] Production.INFO: ProcessCDR(1,14521178,1,1,2) [2025-02-20 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521178', 'tblTempUsageDetail_20' ) start [2025-02-20 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521178', 'tblTempUsageDetail_20' ) end [2025-02-20 23:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:44:20] Production.INFO: ==4407== Releasing lock... [2025-02-20 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:44:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:45:05 [end_date_ymd] => 2025-02-20 23:45:05 [RateCDR] => 1 ) [2025-02-20 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:45:05' and `end` < '2025-02-20 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:45:17] Production.INFO: count ==743 [2025-02-20 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:45:05 - End Time 2025-02-20 23:45:05 [2025-02-20 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521183', 'tblTempUsageDetail_20' ) start [2025-02-20 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521183', 'tblTempUsageDetail_20' ) end [2025-02-20 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521183', 'tblTempVendorCDR_20' ) start [2025-02-20 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521183', 'tblTempVendorCDR_20' ) end [2025-02-20 23:45:17] Production.INFO: ProcessCDR(1,14521183,1,1,2) [2025-02-20 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521183', 'tblTempUsageDetail_20' ) start [2025-02-20 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521183', 'tblTempUsageDetail_20' ) end [2025-02-20 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:45:21] Production.INFO: ==4478== Releasing lock... [2025-02-20 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:46:05 [end_date_ymd] => 2025-02-20 23:46:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:46:05' and `end` < '2025-02-20 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-02-20 23:46:17] Production.INFO: count ==740 [2025-02-20 23:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:46:05 - End Time 2025-02-20 23:46:05 [2025-02-20 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521188', 'tblTempUsageDetail_20' ) start [2025-02-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521188', 'tblTempUsageDetail_20' ) end [2025-02-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521188', 'tblTempVendorCDR_20' ) start [2025-02-20 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521188', 'tblTempVendorCDR_20' ) end [2025-02-20 23:46:17] Production.INFO: ProcessCDR(1,14521188,1,1,2) [2025-02-20 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521188', 'tblTempUsageDetail_20' ) start [2025-02-20 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521188', 'tblTempUsageDetail_20' ) end [2025-02-20 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:46:20] Production.INFO: ==4554== Releasing lock... [2025-02-20 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:46:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:47:05 [end_date_ymd] => 2025-02-20 23:47:05 [RateCDR] => 1 ) [2025-02-20 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:47:05' and `end` < '2025-02-20 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:47:17] Production.INFO: count ==735 [2025-02-20 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:47:05 - End Time 2025-02-20 23:47:05 [2025-02-20 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521193', 'tblTempUsageDetail_20' ) start [2025-02-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521193', 'tblTempUsageDetail_20' ) end [2025-02-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521193', 'tblTempVendorCDR_20' ) start [2025-02-20 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521193', 'tblTempVendorCDR_20' ) end [2025-02-20 23:47:17] Production.INFO: ProcessCDR(1,14521193,1,1,2) [2025-02-20 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521193', 'tblTempUsageDetail_20' ) start [2025-02-20 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521193', 'tblTempUsageDetail_20' ) end [2025-02-20 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:47:20] Production.INFO: ==4634== Releasing lock... [2025-02-20 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:47:20] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:48:05 [end_date_ymd] => 2025-02-20 23:48:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:48:05' and `end` < '2025-02-20 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-02-20 23:48:16] Production.INFO: count ==732 [2025-02-20 23:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:48:05 - End Time 2025-02-20 23:48:05 [2025-02-20 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521198', 'tblTempUsageDetail_20' ) start [2025-02-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521198', 'tblTempUsageDetail_20' ) end [2025-02-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521198', 'tblTempVendorCDR_20' ) start [2025-02-20 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521198', 'tblTempVendorCDR_20' ) end [2025-02-20 23:48:17] Production.INFO: ProcessCDR(1,14521198,1,1,2) [2025-02-20 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521198', 'tblTempUsageDetail_20' ) start [2025-02-20 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521198', 'tblTempUsageDetail_20' ) end [2025-02-20 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:48:20] Production.INFO: ==4707== Releasing lock... [2025-02-20 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:48:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:49:05 [end_date_ymd] => 2025-02-20 23:49:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:49:05' and `end` < '2025-02-20 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-02-20 23:49:17] Production.INFO: count ==731 [2025-02-20 23:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:49:05 - End Time 2025-02-20 23:49:05 [2025-02-20 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521203', 'tblTempUsageDetail_20' ) start [2025-02-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521203', 'tblTempUsageDetail_20' ) end [2025-02-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521203', 'tblTempVendorCDR_20' ) start [2025-02-20 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521203', 'tblTempVendorCDR_20' ) end [2025-02-20 23:49:17] Production.INFO: ProcessCDR(1,14521203,1,1,2) [2025-02-20 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521203', 'tblTempUsageDetail_20' ) start [2025-02-20 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521203', 'tblTempUsageDetail_20' ) end [2025-02-20 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:49:20] Production.INFO: ==4781== Releasing lock... [2025-02-20 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:49:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:50:06 [end_date_ymd] => 2025-02-20 23:50:06 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:50:06' and `end` < '2025-02-20 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-02-20 23:50:18] Production.INFO: count ==730 [2025-02-20 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:50:06 - End Time 2025-02-20 23:50:06 [2025-02-20 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521209', 'tblTempUsageDetail_20' ) start [2025-02-20 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521209', 'tblTempUsageDetail_20' ) end [2025-02-20 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521209', 'tblTempVendorCDR_20' ) start [2025-02-20 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521209', 'tblTempVendorCDR_20' ) end [2025-02-20 23:50:18] Production.INFO: ProcessCDR(1,14521209,1,1,2) [2025-02-20 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521209', 'tblTempUsageDetail_20' ) start [2025-02-20 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521209', 'tblTempUsageDetail_20' ) end [2025-02-20 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:50:22] Production.INFO: ==4896== Releasing lock... [2025-02-20 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:50:22] Production.INFO: 33 MB #Memory Used# [2025-02-20 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:51:05 [end_date_ymd] => 2025-02-20 23:51:05 [RateCDR] => 1 ) [2025-02-20 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:51:05' and `end` < '2025-02-20 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:51:17] Production.INFO: count ==711 [2025-02-20 23:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:51:05 - End Time 2025-02-20 23:51:05 [2025-02-20 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521214', 'tblTempUsageDetail_20' ) start [2025-02-20 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521214', 'tblTempUsageDetail_20' ) end [2025-02-20 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521214', 'tblTempVendorCDR_20' ) start [2025-02-20 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521214', 'tblTempVendorCDR_20' ) end [2025-02-20 23:51:17] Production.INFO: ProcessCDR(1,14521214,1,1,2) [2025-02-20 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521214', 'tblTempUsageDetail_20' ) start [2025-02-20 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521214', 'tblTempUsageDetail_20' ) end [2025-02-20 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:51:20] Production.INFO: ==4971== Releasing lock... [2025-02-20 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:51:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:52:06 [end_date_ymd] => 2025-02-20 23:52:06 [RateCDR] => 1 ) [2025-02-20 23: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-02-20 20:52:06' and `end` < '2025-02-20 23: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-02-20 23:52:18] Production.INFO: count ==711 [2025-02-20 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-20 20:52:06 - End Time 2025-02-20 23:52:06 [2025-02-20 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521219', 'tblTempUsageDetail_20' ) start [2025-02-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521219', 'tblTempUsageDetail_20' ) end [2025-02-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521219', 'tblTempVendorCDR_20' ) start [2025-02-20 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521219', 'tblTempVendorCDR_20' ) end [2025-02-20 23:52:18] Production.INFO: ProcessCDR(1,14521219,1,1,2) [2025-02-20 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521219', 'tblTempUsageDetail_20' ) start [2025-02-20 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521219', 'tblTempUsageDetail_20' ) end [2025-02-20 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:52:21] Production.INFO: ==5049== Releasing lock... [2025-02-20 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:53:04 [end_date_ymd] => 2025-02-20 23:53:04 [RateCDR] => 1 ) [2025-02-20 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:53:04' and `end` < '2025-02-20 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:53:16] Production.INFO: count ==711 [2025-02-20 23:53:16] Production.ERROR: pbx CDR StartTime 2025-02-20 20:53:04 - End Time 2025-02-20 23:53:04 [2025-02-20 23:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521224', 'tblTempUsageDetail_20' ) start [2025-02-20 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521224', 'tblTempUsageDetail_20' ) end [2025-02-20 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521224', 'tblTempVendorCDR_20' ) start [2025-02-20 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521224', 'tblTempVendorCDR_20' ) end [2025-02-20 23:53:16] Production.INFO: ProcessCDR(1,14521224,1,1,2) [2025-02-20 23:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521224', 'tblTempUsageDetail_20' ) start [2025-02-20 23:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521224', 'tblTempUsageDetail_20' ) end [2025-02-20 23:53:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:53:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:53:19] Production.INFO: ==5123== Releasing lock... [2025-02-20 23:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:53:19] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:54:05 [end_date_ymd] => 2025-02-20 23:54:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:54:05' and `end` < '2025-02-20 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-02-20 23:54:17] Production.INFO: count ==708 [2025-02-20 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:54:05 - End Time 2025-02-20 23:54:05 [2025-02-20 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521229', 'tblTempUsageDetail_20' ) start [2025-02-20 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521229', 'tblTempUsageDetail_20' ) end [2025-02-20 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521229', 'tblTempVendorCDR_20' ) start [2025-02-20 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521229', 'tblTempVendorCDR_20' ) end [2025-02-20 23:54:17] Production.INFO: ProcessCDR(1,14521229,1,1,2) [2025-02-20 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521229', 'tblTempUsageDetail_20' ) start [2025-02-20 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521229', 'tblTempUsageDetail_20' ) end [2025-02-20 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:54:20] Production.INFO: ==5193== Releasing lock... [2025-02-20 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:54:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:55:05 [end_date_ymd] => 2025-02-20 23:55:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:55:05' and `end` < '2025-02-20 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-02-20 23:55:17] Production.INFO: count ==708 [2025-02-20 23:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:55:05 - End Time 2025-02-20 23:55:05 [2025-02-20 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521234', 'tblTempUsageDetail_20' ) start [2025-02-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521234', 'tblTempUsageDetail_20' ) end [2025-02-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521234', 'tblTempVendorCDR_20' ) start [2025-02-20 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521234', 'tblTempVendorCDR_20' ) end [2025-02-20 23:55:17] Production.INFO: ProcessCDR(1,14521234,1,1,2) [2025-02-20 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521234', 'tblTempUsageDetail_20' ) start [2025-02-20 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521234', 'tblTempUsageDetail_20' ) end [2025-02-20 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:55:20] Production.INFO: ==5268== Releasing lock... [2025-02-20 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:55:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:56:05 [end_date_ymd] => 2025-02-20 23:56:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:56:05' and `end` < '2025-02-20 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-02-20 23:56:17] Production.INFO: count ==703 [2025-02-20 23:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:56:05 - End Time 2025-02-20 23:56:05 [2025-02-20 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521239', 'tblTempUsageDetail_20' ) start [2025-02-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521239', 'tblTempUsageDetail_20' ) end [2025-02-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521239', 'tblTempVendorCDR_20' ) start [2025-02-20 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521239', 'tblTempVendorCDR_20' ) end [2025-02-20 23:56:17] Production.INFO: ProcessCDR(1,14521239,1,1,2) [2025-02-20 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521239', 'tblTempUsageDetail_20' ) start [2025-02-20 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521239', 'tblTempUsageDetail_20' ) end [2025-02-20 23:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:56:20] Production.INFO: ==5346== Releasing lock... [2025-02-20 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:56:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:57:04 [end_date_ymd] => 2025-02-20 23:57:04 [RateCDR] => 1 ) [2025-02-20 23:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:57:04' and `end` < '2025-02-20 23:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:57:16] Production.INFO: count ==700 [2025-02-20 23:57:16] Production.ERROR: pbx CDR StartTime 2025-02-20 20:57:04 - End Time 2025-02-20 23:57:04 [2025-02-20 23:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521244', 'tblTempUsageDetail_20' ) start [2025-02-20 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521244', 'tblTempUsageDetail_20' ) end [2025-02-20 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521244', 'tblTempVendorCDR_20' ) start [2025-02-20 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521244', 'tblTempVendorCDR_20' ) end [2025-02-20 23:57:16] Production.INFO: ProcessCDR(1,14521244,1,1,2) [2025-02-20 23:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521244', 'tblTempUsageDetail_20' ) start [2025-02-20 23:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521244', 'tblTempUsageDetail_20' ) end [2025-02-20 23:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:57:19] Production.INFO: ==5419== Releasing lock... [2025-02-20 23:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:57:19] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:58:05 [end_date_ymd] => 2025-02-20 23:58:05 [RateCDR] => 1 ) [2025-02-20 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 20:58:05' and `end` < '2025-02-20 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-20 23:58:17] Production.INFO: count ==699 [2025-02-20 23:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:58:05 - End Time 2025-02-20 23:58:05 [2025-02-20 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521249', 'tblTempUsageDetail_20' ) start [2025-02-20 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521249', 'tblTempUsageDetail_20' ) end [2025-02-20 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521249', 'tblTempVendorCDR_20' ) start [2025-02-20 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521249', 'tblTempVendorCDR_20' ) end [2025-02-20 23:58:17] Production.INFO: ProcessCDR(1,14521249,1,1,2) [2025-02-20 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521249', 'tblTempUsageDetail_20' ) start [2025-02-20 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521249', 'tblTempUsageDetail_20' ) end [2025-02-20 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:58:20] Production.INFO: ==5496== Releasing lock... [2025-02-20 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:58:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-20 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 20:59:05 [end_date_ymd] => 2025-02-20 23:59:05 [RateCDR] => 1 ) [2025-02-20 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-02-20 20:59:05' and `end` < '2025-02-20 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-02-20 23:59:17] Production.INFO: count ==699 [2025-02-20 23:59:17] Production.ERROR: pbx CDR StartTime 2025-02-20 20:59:05 - End Time 2025-02-20 23:59:05 [2025-02-20 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521254', 'tblTempUsageDetail_20' ) start [2025-02-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521254', 'tblTempUsageDetail_20' ) end [2025-02-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521254', 'tblTempVendorCDR_20' ) start [2025-02-20 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521254', 'tblTempVendorCDR_20' ) end [2025-02-20 23:59:17] Production.INFO: ProcessCDR(1,14521254,1,1,2) [2025-02-20 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-20 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-20 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521254', 'tblTempUsageDetail_20' ) start [2025-02-20 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521254', 'tblTempUsageDetail_20' ) end [2025-02-20 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-20 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-20 23:59:20] Production.INFO: ==5570== Releasing lock... [2025-02-20 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-20 23:59:20] Production.INFO: 32.75 MB #Memory Used#