[2025-06-17 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 21:25:05 [end_date_ymd] => 2025-06-17 00:25:05 [RateCDR] => 1 ) [2025-06-17 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-16 21:25:05' and `end` < '2025-06-17 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 00:25:17] Production.INFO: count ==496 [2025-06-17 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 21:25:05 - End Time 2025-06-17 00:25:05 [2025-06-17 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307871', 'tblTempUsageDetail_20' ) start [2025-06-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307871', 'tblTempUsageDetail_20' ) end [2025-06-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307871', 'tblTempVendorCDR_20' ) start [2025-06-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307871', 'tblTempVendorCDR_20' ) end [2025-06-17 00:25:17] Production.INFO: ProcessCDR(1,15307871,1,1,2) [2025-06-17 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15307871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15307871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15307871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15307871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307871', 'tblTempUsageDetail_20' ) start [2025-06-17 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307871', 'tblTempUsageDetail_20' ) end [2025-06-17 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-17 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-17 00:25:25] Production.INFO: ==17523== Releasing lock... [2025-06-17 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 00:25:25] Production.INFO: 36 MB #Memory Used# [2025-06-17 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 22:25:05 [end_date_ymd] => 2025-06-17 01:25:05 [RateCDR] => 1 ) [2025-06-17 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-16 22:25:05' and `end` < '2025-06-17 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 01:25:17] Production.INFO: count ==479 [2025-06-17 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 22:25:05 - End Time 2025-06-17 01:25:05 [2025-06-17 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308118', 'tblTempUsageDetail_20' ) start [2025-06-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308118', 'tblTempUsageDetail_20' ) end [2025-06-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308118', 'tblTempVendorCDR_20' ) start [2025-06-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308118', 'tblTempVendorCDR_20' ) end [2025-06-17 01:25:17] Production.INFO: ProcessCDR(1,15308118,1,1,2) [2025-06-17 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15308118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15308118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15308118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15308118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308118', 'tblTempUsageDetail_20' ) start [2025-06-17 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308118', 'tblTempUsageDetail_20' ) end [2025-06-17 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-17 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-17 01:25:23] Production.INFO: ==21919== Releasing lock... [2025-06-17 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 01:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-06-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 23:25:05 [end_date_ymd] => 2025-06-17 02:25:05 [RateCDR] => 1 ) [2025-06-17 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-16 23:25:05' and `end` < '2025-06-17 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 02:25:18] Production.INFO: count ==431 [2025-06-17 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-16 23:25:05 - End Time 2025-06-17 02:25:05 [2025-06-17 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308365', 'tblTempUsageDetail_20' ) start [2025-06-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308365', 'tblTempUsageDetail_20' ) end [2025-06-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308365', 'tblTempVendorCDR_20' ) start [2025-06-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308365', 'tblTempVendorCDR_20' ) end [2025-06-17 02:25:18] Production.INFO: ProcessCDR(1,15308365,1,1,2) [2025-06-17 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15308365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15308365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15308365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15308365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308365', 'tblTempUsageDetail_20' ) start [2025-06-17 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308365', 'tblTempUsageDetail_20' ) end [2025-06-17 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-17 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-17 02:25:24] Production.INFO: ==26284== Releasing lock... [2025-06-17 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 02:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-17 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 00:25:05 [end_date_ymd] => 2025-06-17 03:25:05 [RateCDR] => 1 ) [2025-06-17 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 00:25:05' and `end` < '2025-06-17 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 03:25:17] Production.INFO: count ==292 [2025-06-17 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 00:25:05 - End Time 2025-06-17 03:25:05 [2025-06-17 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308612', 'tblTempUsageDetail_20' ) start [2025-06-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308612', 'tblTempUsageDetail_20' ) end [2025-06-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308612', 'tblTempVendorCDR_20' ) start [2025-06-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308612', 'tblTempVendorCDR_20' ) end [2025-06-17 03:25:17] Production.INFO: ProcessCDR(1,15308612,1,1,2) [2025-06-17 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15308612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15308612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15308612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15308612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308612', 'tblTempUsageDetail_20' ) start [2025-06-17 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308612', 'tblTempUsageDetail_20' ) end [2025-06-17 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-17 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-17 03:25:23] Production.INFO: ==31312== Releasing lock... [2025-06-17 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 03:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-06-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 01:25:05 [end_date_ymd] => 2025-06-17 04:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 01:25:05' and `end` < '2025-06-17 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-06-17 04:25:17] Production.INFO: count ==164 [2025-06-17 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 01:25:05 - End Time 2025-06-17 04:25:05 [2025-06-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308860', 'tblTempUsageDetail_20' ) start [2025-06-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15308860', 'tblTempUsageDetail_20' ) end [2025-06-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308860', 'tblTempVendorCDR_20' ) start [2025-06-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15308860', 'tblTempVendorCDR_20' ) end [2025-06-17 04:25:17] Production.INFO: ProcessCDR(1,15308860,1,1,2) [2025-06-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15308860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15308860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15308860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15308860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308860', 'tblTempUsageDetail_20' ) start [2025-06-17 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15308860', 'tblTempUsageDetail_20' ) end [2025-06-17 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-17 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-17 04:25:21] Production.INFO: ==3186== Releasing lock... [2025-06-17 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 04:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-06-17 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 02:25:04 [end_date_ymd] => 2025-06-17 05:25:04 [RateCDR] => 1 ) [2025-06-17 05:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 02:25:04' and `end` < '2025-06-17 05:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 05:25:17] Production.INFO: count ==110 [2025-06-17 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 02:25:04 - End Time 2025-06-17 05:25:04 [2025-06-17 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309108', 'tblTempUsageDetail_20' ) start [2025-06-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309108', 'tblTempUsageDetail_20' ) end [2025-06-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309108', 'tblTempVendorCDR_20' ) start [2025-06-17 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309108', 'tblTempVendorCDR_20' ) end [2025-06-17 05:25:17] Production.INFO: ProcessCDR(1,15309108,1,1,2) [2025-06-17 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15309108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15309108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15309108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15309108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309108', 'tblTempUsageDetail_20' ) start [2025-06-17 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309108', 'tblTempUsageDetail_20' ) end [2025-06-17 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-17 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-17 05:25:23] Production.INFO: ==7533== Releasing lock... [2025-06-17 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 05:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-06-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 03:25:05 [end_date_ymd] => 2025-06-17 06:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 03:25:05' and `end` < '2025-06-17 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-06-17 06:25:17] Production.INFO: count ==95 [2025-06-17 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 03:25:05 - End Time 2025-06-17 06:25:05 [2025-06-17 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309355', 'tblTempUsageDetail_20' ) start [2025-06-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309355', 'tblTempUsageDetail_20' ) end [2025-06-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309355', 'tblTempVendorCDR_20' ) start [2025-06-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309355', 'tblTempVendorCDR_20' ) end [2025-06-17 06:25:17] Production.INFO: ProcessCDR(1,15309355,1,1,2) [2025-06-17 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15309355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15309355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15309355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15309355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309355', 'tblTempUsageDetail_20' ) start [2025-06-17 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309355', 'tblTempUsageDetail_20' ) end [2025-06-17 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-17 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-17 06:25:24] Production.INFO: ==11846== Releasing lock... [2025-06-17 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 06:25:24] Production.INFO: 28.5 MB #Memory Used# [2025-06-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 04:25:05 [end_date_ymd] => 2025-06-17 07:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 04:25:05' and `end` < '2025-06-17 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-06-17 07:25:17] Production.INFO: count ==143 [2025-06-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 04:25:05 - End Time 2025-06-17 07:25:05 [2025-06-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309602', 'tblTempUsageDetail_20' ) start [2025-06-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309602', 'tblTempUsageDetail_20' ) end [2025-06-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309602', 'tblTempVendorCDR_20' ) start [2025-06-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309602', 'tblTempVendorCDR_20' ) end [2025-06-17 07:25:17] Production.INFO: ProcessCDR(1,15309602,1,1,2) [2025-06-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15309602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15309602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15309602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15309602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309602', 'tblTempUsageDetail_20' ) start [2025-06-17 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309602', 'tblTempUsageDetail_20' ) end [2025-06-17 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-17 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-17 07:25:23] Production.INFO: ==18956== Releasing lock... [2025-06-17 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 07:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 05:25:05 [end_date_ymd] => 2025-06-17 08:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 05:25:05' and `end` < '2025-06-17 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-06-17 08:25:18] Production.INFO: count ==424 [2025-06-17 08:25:18] Production.ERROR: pbx CDR StartTime 2025-06-17 05:25:05 - End Time 2025-06-17 08:25:05 [2025-06-17 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309849', 'tblTempUsageDetail_20' ) start [2025-06-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15309849', 'tblTempUsageDetail_20' ) end [2025-06-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309849', 'tblTempVendorCDR_20' ) start [2025-06-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15309849', 'tblTempVendorCDR_20' ) end [2025-06-17 08:25:18] Production.INFO: ProcessCDR(1,15309849,1,1,2) [2025-06-17 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15309849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15309849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15309849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15309849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309849', 'tblTempUsageDetail_20' ) start [2025-06-17 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15309849', 'tblTempUsageDetail_20' ) end [2025-06-17 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-17 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-17 08:25:25] Production.INFO: ==25620== Releasing lock... [2025-06-17 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 08:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-06-17 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 06:25:05 [end_date_ymd] => 2025-06-17 09:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 06:25:05' and `end` < '2025-06-17 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-06-17 09:25:17] Production.INFO: count ==1530 [2025-06-17 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-17 06:25:05 - End Time 2025-06-17 09:25:05 [2025-06-17 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310096', 'tblTempUsageDetail_20' ) start [2025-06-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310096', 'tblTempUsageDetail_20' ) end [2025-06-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310096', 'tblTempVendorCDR_20' ) start [2025-06-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310096', 'tblTempVendorCDR_20' ) end [2025-06-17 09:25:18] Production.INFO: ProcessCDR(1,15310096,1,1,2) [2025-06-17 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15310096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15310096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15310096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15310096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310096', 'tblTempUsageDetail_20' ) start [2025-06-17 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310096', 'tblTempUsageDetail_20' ) end [2025-06-17 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-17 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-17 09:25:26] Production.INFO: ==32286== Releasing lock... [2025-06-17 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 09:25:26] Production.INFO: 39.5 MB #Memory Used# [2025-06-17 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 07:25:06 [end_date_ymd] => 2025-06-17 10:25:06 [RateCDR] => 1 ) [2025-06-17 10: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-06-17 07:25:06' and `end` < '2025-06-17 10: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-06-17 10:25:19] Production.INFO: count ==3449 [2025-06-17 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-17 07:25:06 - End Time 2025-06-17 10:25:06 [2025-06-17 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310343', 'tblTempUsageDetail_20' ) start [2025-06-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310343', 'tblTempUsageDetail_20' ) end [2025-06-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310343', 'tblTempVendorCDR_20' ) start [2025-06-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310343', 'tblTempVendorCDR_20' ) end [2025-06-17 10:25:20] Production.INFO: ProcessCDR(1,15310343,1,1,2) [2025-06-17 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15310343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15310343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15310343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15310343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310343', 'tblTempUsageDetail_20' ) start [2025-06-17 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310343', 'tblTempUsageDetail_20' ) end [2025-06-17 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-17 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-17 10:25:30] Production.INFO: ==6942== Releasing lock... [2025-06-17 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 10:25:30] Production.INFO: 54 MB #Memory Used# [2025-06-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 08:25:05 [end_date_ymd] => 2025-06-17 11:25:05 [RateCDR] => 1 ) [2025-06-17 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 08:25:05' and `end` < '2025-06-17 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 11:25:20] Production.INFO: count ==4836 [2025-06-17 11:25:22] Production.ERROR: pbx CDR StartTime 2025-06-17 08:25:05 - End Time 2025-06-17 11:25:05 [2025-06-17 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310590', 'tblTempUsageDetail_20' ) start [2025-06-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310590', 'tblTempUsageDetail_20' ) end [2025-06-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310590', 'tblTempVendorCDR_20' ) start [2025-06-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310590', 'tblTempVendorCDR_20' ) end [2025-06-17 11:25:23] Production.INFO: ProcessCDR(1,15310590,1,1,2) [2025-06-17 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15310590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15310590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15310590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15310590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310590', 'tblTempUsageDetail_20' ) start [2025-06-17 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310590', 'tblTempUsageDetail_20' ) end [2025-06-17 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-17 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-17 11:25:33] Production.INFO: ==13805== Releasing lock... [2025-06-17 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 11:25:33] Production.INFO: 64.25 MB #Memory Used# [2025-06-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 09:25:05 [end_date_ymd] => 2025-06-17 12:25:05 [RateCDR] => 1 ) [2025-06-17 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 09:25:05' and `end` < '2025-06-17 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 12:25:18] Production.INFO: count ==5491 [2025-06-17 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-17 09:25:05 - End Time 2025-06-17 12:25:05 [2025-06-17 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310837', 'tblTempUsageDetail_20' ) start [2025-06-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15310837', 'tblTempUsageDetail_20' ) end [2025-06-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310837', 'tblTempVendorCDR_20' ) start [2025-06-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15310837', 'tblTempVendorCDR_20' ) end [2025-06-17 12:25:21] Production.INFO: ProcessCDR(1,15310837,1,1,2) [2025-06-17 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15310837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15310837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15310837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15310837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310837', 'tblTempUsageDetail_20' ) start [2025-06-17 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15310837', 'tblTempUsageDetail_20' ) end [2025-06-17 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-17 12:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-17 12:25:31] Production.INFO: ==21770== Releasing lock... [2025-06-17 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 12:25:31] Production.INFO: 69.25 MB #Memory Used# [2025-06-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 10:25:05 [end_date_ymd] => 2025-06-17 13:25:05 [RateCDR] => 1 ) [2025-06-17 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 10:25:05' and `end` < '2025-06-17 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 13:25:23] Production.INFO: count ==5092 [2025-06-17 13:25:25] Production.ERROR: pbx CDR StartTime 2025-06-17 10:25:05 - End Time 2025-06-17 13:25:05 [2025-06-17 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311084', 'tblTempUsageDetail_20' ) start [2025-06-17 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311084', 'tblTempUsageDetail_20' ) end [2025-06-17 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311084', 'tblTempVendorCDR_20' ) start [2025-06-17 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311084', 'tblTempVendorCDR_20' ) end [2025-06-17 13:25:26] Production.INFO: ProcessCDR(1,15311084,1,1,2) [2025-06-17 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15311084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15311084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15311084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15311084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311084', 'tblTempUsageDetail_20' ) start [2025-06-17 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311084', 'tblTempUsageDetail_20' ) end [2025-06-17 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-06-17 13:25:37] Production.ERROR: pbx prc_insertCDR end [2025-06-17 13:25:37] Production.INFO: ==28849== Releasing lock... [2025-06-17 13:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 13:25:37] Production.INFO: 66.25 MB #Memory Used# [2025-06-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 11:25:05 [end_date_ymd] => 2025-06-17 14:25:05 [RateCDR] => 1 ) [2025-06-17 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 11:25:05' and `end` < '2025-06-17 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 14:25:19] Production.INFO: count ==5196 [2025-06-17 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-17 11:25:05 - End Time 2025-06-17 14:25:05 [2025-06-17 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311331', 'tblTempUsageDetail_20' ) start [2025-06-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311331', 'tblTempUsageDetail_20' ) end [2025-06-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311331', 'tblTempVendorCDR_20' ) start [2025-06-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311331', 'tblTempVendorCDR_20' ) end [2025-06-17 14:25:22] Production.INFO: ProcessCDR(1,15311331,1,1,2) [2025-06-17 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15311331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15311331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15311331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15311331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311331', 'tblTempUsageDetail_20' ) start [2025-06-17 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311331', 'tblTempUsageDetail_20' ) end [2025-06-17 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-17 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-17 14:25:32] Production.INFO: ==3146== Releasing lock... [2025-06-17 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 14:25:32] Production.INFO: 67 MB #Memory Used# [2025-06-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 12:25:05 [end_date_ymd] => 2025-06-17 15:25:05 [RateCDR] => 1 ) [2025-06-17 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 12:25:05' and `end` < '2025-06-17 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 15:25:29] Production.INFO: count ==5356 [2025-06-17 15:25:31] Production.ERROR: pbx CDR StartTime 2025-06-17 12:25:05 - End Time 2025-06-17 15:25:05 [2025-06-17 15:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 15:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311578', 'tblTempUsageDetail_20' ) start [2025-06-17 15:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311578', 'tblTempUsageDetail_20' ) end [2025-06-17 15:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311578', 'tblTempVendorCDR_20' ) start [2025-06-17 15:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311578', 'tblTempVendorCDR_20' ) end [2025-06-17 15:25:31] Production.INFO: ProcessCDR(1,15311578,1,1,2) [2025-06-17 15:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15311578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 15:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15311578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 15:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15311578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 15:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15311578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311578', 'tblTempUsageDetail_20' ) start [2025-06-17 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311578', 'tblTempUsageDetail_20' ) end [2025-06-17 15:25:40] Production.ERROR: pbx prc_insertCDR start [2025-06-17 15:25:43] Production.ERROR: pbx prc_insertCDR end [2025-06-17 15:25:43] Production.INFO: ==9871== Releasing lock... [2025-06-17 15:25:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 15:25:43] Production.INFO: 68.25 MB #Memory Used# [2025-06-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 13:25:05 [end_date_ymd] => 2025-06-17 16:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 13:25:05' and `end` < '2025-06-17 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-06-17 16:25:18] Production.INFO: count ==5618 [2025-06-17 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-17 13:25:05 - End Time 2025-06-17 16:25:05 [2025-06-17 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311825', 'tblTempUsageDetail_20' ) start [2025-06-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15311825', 'tblTempUsageDetail_20' ) end [2025-06-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311825', 'tblTempVendorCDR_20' ) start [2025-06-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15311825', 'tblTempVendorCDR_20' ) end [2025-06-17 16:25:21] Production.INFO: ProcessCDR(1,15311825,1,1,2) [2025-06-17 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15311825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15311825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15311825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15311825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311825', 'tblTempUsageDetail_20' ) start [2025-06-17 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15311825', 'tblTempUsageDetail_20' ) end [2025-06-17 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-17 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-17 16:25:32] Production.INFO: ==16921== Releasing lock... [2025-06-17 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 16:25:32] Production.INFO: 70.25 MB #Memory Used# [2025-06-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 14:25:05 [end_date_ymd] => 2025-06-17 17:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 14:25:05' and `end` < '2025-06-17 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-06-17 17:25:19] Production.INFO: count ==5542 [2025-06-17 17:25:22] Production.ERROR: pbx CDR StartTime 2025-06-17 14:25:05 - End Time 2025-06-17 17:25:05 [2025-06-17 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312072', 'tblTempUsageDetail_20' ) start [2025-06-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312072', 'tblTempUsageDetail_20' ) end [2025-06-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312072', 'tblTempVendorCDR_20' ) start [2025-06-17 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312072', 'tblTempVendorCDR_20' ) end [2025-06-17 17:25:22] Production.INFO: ProcessCDR(1,15312072,1,1,2) [2025-06-17 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15312072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15312072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15312072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15312072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312072', 'tblTempUsageDetail_20' ) start [2025-06-17 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312072', 'tblTempUsageDetail_20' ) end [2025-06-17 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-17 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-17 17:25:32] Production.INFO: ==23879== Releasing lock... [2025-06-17 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 17:25:32] Production.INFO: 69.75 MB #Memory Used# [2025-06-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 15:25:05 [end_date_ymd] => 2025-06-17 18:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 15:25:05' and `end` < '2025-06-17 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 18:25:18] Production.INFO: count ==4609 [2025-06-17 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-17 15:25:05 - End Time 2025-06-17 18:25:05 [2025-06-17 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312319', 'tblTempUsageDetail_20' ) start [2025-06-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312319', 'tblTempUsageDetail_20' ) end [2025-06-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312319', 'tblTempVendorCDR_20' ) start [2025-06-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312319', 'tblTempVendorCDR_20' ) end [2025-06-17 18:25:20] Production.INFO: ProcessCDR(1,15312319,1,1,2) [2025-06-17 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15312319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15312319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15312319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15312319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312319', 'tblTempUsageDetail_20' ) start [2025-06-17 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312319', 'tblTempUsageDetail_20' ) end [2025-06-17 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-17 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-17 18:25:28] Production.INFO: ==30623== Releasing lock... [2025-06-17 18:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 18:25:28] Production.INFO: 62.75 MB #Memory Used# [2025-06-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 16:25:05 [end_date_ymd] => 2025-06-17 19:25:05 [RateCDR] => 1 ) [2025-06-17 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 16:25:05' and `end` < '2025-06-17 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 19:25:17] Production.INFO: count ==3718 [2025-06-17 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-17 16:25:05 - End Time 2025-06-17 19:25:05 [2025-06-17 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312563', 'tblTempUsageDetail_20' ) start [2025-06-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312563', 'tblTempUsageDetail_20' ) end [2025-06-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312563', 'tblTempVendorCDR_20' ) start [2025-06-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312563', 'tblTempVendorCDR_20' ) end [2025-06-17 19:25:19] Production.INFO: ProcessCDR(1,15312563,1,1,2) [2025-06-17 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15312563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15312563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15312563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15312563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312563', 'tblTempUsageDetail_20' ) start [2025-06-17 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312563', 'tblTempUsageDetail_20' ) end [2025-06-17 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-17 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-17 19:25:28] Production.INFO: ==6454== Releasing lock... [2025-06-17 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 19:25:28] Production.INFO: 56 MB #Memory Used# [2025-06-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 17:25:05 [end_date_ymd] => 2025-06-17 20:25:05 [RateCDR] => 1 ) [2025-06-17 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-17 17:25:05' and `end` < '2025-06-17 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-17 20:25:17] Production.INFO: count ==2452 [2025-06-17 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-17 17:25:05 - End Time 2025-06-17 20:25:05 [2025-06-17 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312810', 'tblTempUsageDetail_20' ) start [2025-06-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15312810', 'tblTempUsageDetail_20' ) end [2025-06-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312810', 'tblTempVendorCDR_20' ) start [2025-06-17 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15312810', 'tblTempVendorCDR_20' ) end [2025-06-17 20:25:19] Production.INFO: ProcessCDR(1,15312810,1,1,2) [2025-06-17 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15312810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15312810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15312810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15312810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312810', 'tblTempUsageDetail_20' ) start [2025-06-17 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15312810', 'tblTempUsageDetail_20' ) end [2025-06-17 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-17 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-17 20:25:25] Production.INFO: ==13656== Releasing lock... [2025-06-17 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 20:25:25] Production.INFO: 46.5 MB #Memory Used# [2025-06-17 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 18:25:05 [end_date_ymd] => 2025-06-17 21:25:05 [RateCDR] => 1 ) [2025-06-17 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-06-17 18:25:05' and `end` < '2025-06-17 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-06-17 21:25:17] Production.INFO: count ==1994 [2025-06-17 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-17 18:25:05 - End Time 2025-06-17 21:25:05 [2025-06-17 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313057', 'tblTempUsageDetail_20' ) start [2025-06-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313057', 'tblTempUsageDetail_20' ) end [2025-06-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313057', 'tblTempVendorCDR_20' ) start [2025-06-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313057', 'tblTempVendorCDR_20' ) end [2025-06-17 21:25:18] Production.INFO: ProcessCDR(1,15313057,1,1,2) [2025-06-17 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15313057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15313057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15313057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15313057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313057', 'tblTempUsageDetail_20' ) start [2025-06-17 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313057', 'tblTempUsageDetail_20' ) end [2025-06-17 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-17 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-17 21:25:26] Production.INFO: ==20396== Releasing lock... [2025-06-17 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 21:25:26] Production.INFO: 43.25 MB #Memory Used# [2025-06-17 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 19:25:04 [end_date_ymd] => 2025-06-17 22:25:04 [RateCDR] => 1 ) [2025-06-17 22: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-06-17 19:25:04' and `end` < '2025-06-17 22: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-06-17 22:25:17] Production.INFO: count ==1289 [2025-06-17 22:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 19:25:04 - End Time 2025-06-17 22:25:04 [2025-06-17 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313304', 'tblTempUsageDetail_20' ) start [2025-06-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313304', 'tblTempUsageDetail_20' ) end [2025-06-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313304', 'tblTempVendorCDR_20' ) start [2025-06-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313304', 'tblTempVendorCDR_20' ) end [2025-06-17 22:25:17] Production.INFO: ProcessCDR(1,15313304,1,1,2) [2025-06-17 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15313304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15313304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15313304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15313304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313304', 'tblTempUsageDetail_20' ) start [2025-06-17 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313304', 'tblTempUsageDetail_20' ) end [2025-06-17 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-17 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-17 22:25:24] Production.INFO: ==27222== Releasing lock... [2025-06-17 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 22:25:24] Production.INFO: 38 MB #Memory Used# [2025-06-17 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-17 20:25:04 [end_date_ymd] => 2025-06-17 23:25:04 [RateCDR] => 1 ) [2025-06-17 23: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-06-17 20:25:04' and `end` < '2025-06-17 23: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-06-17 23:25:17] Production.INFO: count ==1051 [2025-06-17 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-17 20:25:04 - End Time 2025-06-17 23:25:04 [2025-06-17 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-17 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313551', 'tblTempUsageDetail_20' ) start [2025-06-17 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15313551', 'tblTempUsageDetail_20' ) end [2025-06-17 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313551', 'tblTempVendorCDR_20' ) start [2025-06-17 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15313551', 'tblTempVendorCDR_20' ) end [2025-06-17 23:25:17] Production.INFO: ProcessCDR(1,15313551,1,1,2) [2025-06-17 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15313551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15313551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-17 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15313551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15313551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-17 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313551', 'tblTempUsageDetail_20' ) start [2025-06-17 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15313551', 'tblTempUsageDetail_20' ) end [2025-06-17 23:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-17 23:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-17 23:25:23] Production.INFO: ==1554== Releasing lock... [2025-06-17 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-17 23:25:23] Production.INFO: 36.5 MB #Memory Used#